mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2025-01-11 10:44:29 +00:00
Formulaire pour le changement de mot de passe
This commit is contained in:
parent
7d5b4bbe1e
commit
97fff5d606
1 changed files with 19 additions and 0 deletions
|
@ -57,6 +57,23 @@ function submitBday() {
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
|
{% if action_name == 'Change the password' %}
|
||||||
|
<div class="form-group">
|
||||||
|
{{ userform.selfpasswd.label_tag }}
|
||||||
|
{% render_field userform.selfpasswd class="form-control" requiered=True %}
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
{{ userform.passwd1.label_tag }}
|
||||||
|
{% render_field userform.passwd1 class="form-control" requiered=True %}
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
{{ userform.passwd2.label_tag }}
|
||||||
|
{% render_field userform.passwd2 class="form-control" requiered=True %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
<h3>Informations générales</h3>
|
<h3>Informations générales</h3>
|
||||||
|
|
||||||
{% if action_name == 'Create a user' %}
|
{% if action_name == 'Create a user' %}
|
||||||
|
@ -194,6 +211,8 @@ function submitBday() {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<button class="btn btn-success" type="submit">{{ action_name }}</button>
|
<button class="btn btn-success" type="submit">{{ action_name }}</button>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue