mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Hide entry box for changing password
This commit is contained in:
parent
fc4de6c7b8
commit
06da120ef3
@ -150,13 +150,13 @@ class DeleteForm(forms.Form):
|
|||||||
|
|
||||||
|
|
||||||
class EditUserForm(HelperForm):
|
class EditUserForm(HelperForm):
|
||||||
""" Form for editing user information
|
"""
|
||||||
|
Form for editing user information
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = User
|
model = User
|
||||||
fields = [
|
fields = [
|
||||||
'username',
|
|
||||||
'first_name',
|
'first_name',
|
||||||
'last_name',
|
'last_name',
|
||||||
]
|
]
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
|
|
||||||
{% block actions %}
|
{% block actions %}
|
||||||
{% inventree_customize 'hide_password_reset' as hide_password_reset %}
|
{% inventree_customize 'hide_password_reset' as hide_password_reset %}
|
||||||
{% if hide_password_reset %}
|
{% if not hide_password_reset %}
|
||||||
<div class='btn btn-outline-primary' type='button' id='edit-password' title='{% trans "Change Password" %}'>
|
<div class='btn btn-outline-primary' type='button' id='edit-password' title='{% trans "Change Password" %}'>
|
||||||
<span class='fas fa-key'></span> {% trans "Set Password" %}
|
<span class='fas fa-key'></span> {% trans "Set Password" %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div class='btn btn-primary' type='button' id='edit-user' title='{% trans "Edit User Information" %}'>
|
<div class='btn btn-primary' type='button' id='edit-user' title='{% trans "Edit User Information" %}'>
|
||||||
<span class='fas fa-user-cog'></span> {% trans "Edit" %}
|
<span class='fas fa-user-cog'></span> {% trans "Edit" %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user