mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Hide entry box for changing password
This commit is contained in:
		| @@ -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', | ||||
|         ] | ||||
|   | ||||
| @@ -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 %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user