mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Refactor "user account" page
This commit is contained in:
parent
489d085de8
commit
d1f2d960be
@ -11,17 +11,17 @@
|
|||||||
{% trans "Account Settings" %}
|
{% trans "Account Settings" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block actions %}
|
||||||
{% mail_configured as mail_conf %}
|
|
||||||
|
|
||||||
<div class='btn-group' style='float: right;'>
|
|
||||||
<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>
|
||||||
<div class='btn btn-primary' type='button' id='edit-password' title='{% trans "Change Password" %}'>
|
<div class='btn btn-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>
|
||||||
</div>
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% mail_configured as mail_conf %}
|
||||||
|
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed'>
|
||||||
<tr>
|
<tr>
|
||||||
@ -39,7 +39,10 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class='panel-heading'>
|
<div class='panel-heading'>
|
||||||
|
<div class='d-flex flex-span'>
|
||||||
<h4>{% trans "Email" %}</h4>
|
<h4>{% trans "Email" %}</h4>
|
||||||
|
{% include "spacer.html" %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
@ -89,8 +92,18 @@
|
|||||||
|
|
||||||
<form method="post" action="{% url 'account_email' %}" class="add_email">
|
<form method="post" action="{% url 'account_email' %}" class="add_email">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ add_email_form|crispy }}
|
|
||||||
|
<label for="id_email" class=" requiredField">
|
||||||
|
E-mail<span class="asteriskField">*</span>
|
||||||
|
</label>
|
||||||
|
<div id="div_id_email" class="form-group input-group mb-3">
|
||||||
|
<div class='input-group-prepend'><span class='input-group-text'>@</span></div>
|
||||||
|
<input type="email" name="email" placeholder='{% trans "Enter e-mail address" %}' class="textinput textInput form-control" required="" id="id_email">
|
||||||
|
<div class='input-group-append'>
|
||||||
<button class="btn btn-primary" name="action_add" type="submit">{% trans "Add Email" %}</button>
|
<button class="btn btn-primary" name="action_add" type="submit">{% trans "Add Email" %}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user