Hide entry box for changing password

This commit is contained in:
Oliver Walters 2022-04-27 22:03:55 +10:00
parent fc4de6c7b8
commit 06da120ef3
2 changed files with 4 additions and 4 deletions

View File

@ -150,13 +150,13 @@ class DeleteForm(forms.Form):
class EditUserForm(HelperForm):
""" Form for editing user information
"""
Form for editing user information
"""
class Meta:
model = User
fields = [
'username',
'first_name',
'last_name',
]

View File

@ -14,14 +14,14 @@
{% block actions %}
{% 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" %}'>
<span class='fas fa-key'></span> {% trans "Set Password" %}
</div>
{% endif %}
<div class='btn btn-primary' type='button' id='edit-user' title='{% trans "Edit User Information" %}'>
<span class='fas fa-user-cog'></span> {% trans "Edit" %}
</div>
{% endif %}
{% endblock %}
{% block content %}