mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
More tweaks
This commit is contained in:
parent
fc9ca5e481
commit
a3889c709e
@ -807,19 +807,19 @@ class InvenTreeSetting(BaseInvenTreeSetting):
|
|||||||
# login / SSO
|
# login / SSO
|
||||||
'LOGIN_ENABLE_PWD_FORGOT': {
|
'LOGIN_ENABLE_PWD_FORGOT': {
|
||||||
'name': _('Enable password forgot'),
|
'name': _('Enable password forgot'),
|
||||||
'description': _('Enable password forgot function on the login-pages'),
|
'description': _('Enable password forgot function on the login pages'),
|
||||||
'default': True,
|
'default': True,
|
||||||
'validator': bool,
|
'validator': bool,
|
||||||
},
|
},
|
||||||
'LOGIN_ENABLE_REG': {
|
'LOGIN_ENABLE_REG': {
|
||||||
'name': _('Enable registration'),
|
'name': _('Enable registration'),
|
||||||
'description': _('Enable self-registration for users on the login-pages'),
|
'description': _('Enable self-registration for users on the login pages'),
|
||||||
'default': False,
|
'default': False,
|
||||||
'validator': bool,
|
'validator': bool,
|
||||||
},
|
},
|
||||||
'LOGIN_ENABLE_SSO': {
|
'LOGIN_ENABLE_SSO': {
|
||||||
'name': _('Enable SSO'),
|
'name': _('Enable SSO'),
|
||||||
'description': _('Enable SSO on the login-pages'),
|
'description': _('Enable SSO on the login pages'),
|
||||||
'default': False,
|
'default': False,
|
||||||
'validator': bool,
|
'validator': bool,
|
||||||
},
|
},
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
{% include "InvenTree/settings/setting.html" with key="LOGIN_ENABLE_PWD_FORGOT" icon="fa-info-circle" %}
|
{% include "InvenTree/settings/setting.html" with key="LOGIN_ENABLE_PWD_FORGOT" icon="fa-info-circle" %}
|
||||||
{% include "InvenTree/settings/setting.html" with key="LOGIN_MAIL_REQUIRED" icon="fa-info-circle" %}
|
{% include "InvenTree/settings/setting.html" with key="LOGIN_MAIL_REQUIRED" icon="fa-info-circle" %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans 'Signup' %}</td>
|
<th><h5>{% trans 'Signup' %}</h5></th>
|
||||||
<td colspan='4'></td>
|
<td colspan='4'></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% include "InvenTree/settings/setting.html" with key="LOGIN_ENABLE_REG" icon="fa-info-circle" %}
|
{% include "InvenTree/settings/setting.html" with key="LOGIN_ENABLE_REG" icon="fa-info-circle" %}
|
||||||
|
@ -21,15 +21,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div id='setting-{{ setting.pk }}'>
|
<div id='setting-{{ setting.pk }}'>
|
||||||
<strong>
|
|
||||||
<span id='setting-value-{{ setting.key.upper }}' fieldname='{{ setting.key.upper }}'>
|
<span id='setting-value-{{ setting.key.upper }}' fieldname='{{ setting.key.upper }}'>
|
||||||
{% if setting.value %}
|
{% if setting.value %}
|
||||||
{{ setting.value }}
|
<strong>{{ setting.value }}</strong>
|
||||||
{% else %}
|
{% else %}
|
||||||
<em>{% trans "No value set" %}</em>
|
<em style='color: #855;'>{% trans "No value set" %}</em>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
|
||||||
{{ setting.units }}
|
{{ setting.units }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user