2021-12-28 16:17:07 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% extends "base.j2" %}
|
2021-10-16 23:22:03 +02:00
|
|
|
{% import 'bootstrap/wtf.html' as wtf %}
|
|
|
|
|
2021-10-30 12:05:51 +02:00
|
|
|
{% macro render_field(field, auth_name=None) %}
|
2021-10-16 23:22:03 +02:00
|
|
|
<tr style="">
|
2023-01-30 22:25:17 +01:00
|
|
|
{% if auth_name %}
|
2023-03-03 14:33:26 +01:00
|
|
|
<td class="wtf-field"> {{ field.label }}<span style="font-weight:700;"> (compte {{ auth_name }}):</span></td>
|
2021-10-30 12:05:51 +02:00
|
|
|
{% else %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<td class="wtf-field">{{ field.label }}</td>
|
|
|
|
{% endif %}
|
2021-10-16 23:22:03 +02:00
|
|
|
<td class="wtf-field">{{ field(**kwargs)|safe }}
|
|
|
|
{% if field.errors %}
|
|
|
|
<ul class=errors>
|
|
|
|
{% for error in field.errors %}
|
|
|
|
<li>{{ error }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
2021-10-17 11:19:01 +02:00
|
|
|
<h1>Modification du compte ScoDoc <tt>{{form.user_name.data}}</tt></h1>
|
2023-01-30 22:25:17 +01:00
|
|
|
<div class="help">
|
2022-01-07 15:19:34 +01:00
|
|
|
<p>Identifiez-vous avec votre mot de passe actuel</p>
|
2023-01-30 22:25:17 +01:00
|
|
|
</div>
|
|
|
|
<form method=post>
|
|
|
|
{{ form.user_name }}
|
|
|
|
{{ form.csrf_token }}
|
|
|
|
<table class="tf">
|
|
|
|
<tbody>
|
2021-10-30 12:05:51 +02:00
|
|
|
{{ render_field(form.old_password, size=14, auth_name=auth_username,
|
2021-10-17 11:19:01 +02:00
|
|
|
style="padding:1px; margin-left: 1em; margin-top: 4px;") }}
|
2021-10-30 12:05:51 +02:00
|
|
|
<tr>
|
2023-01-30 22:25:17 +01:00
|
|
|
<td colspan="" 2">
|
|
|
|
<p>Vous pouvez changer le mot de passe et/ou l'adresse email.</p>
|
|
|
|
<p>Les champs laissés vides ne seront pas modifiés.</p>
|
2021-10-30 12:05:51 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ render_field(form.new_password, size=14,
|
2021-10-17 11:19:01 +02:00
|
|
|
style="padding:1px; margin-left: 1em; margin-top: 12px;") }}
|
2023-01-30 22:25:17 +01:00
|
|
|
{{ render_field(form.bis_password, size=14,
|
2021-10-17 11:19:01 +02:00
|
|
|
style="padding:1px; margin-left: 1em; margin-top: 4px;") }}
|
2023-01-30 22:25:17 +01:00
|
|
|
{{ render_field(form.email, size=40,
|
2021-10-17 11:19:01 +02:00
|
|
|
style="padding:1px; margin-top: 12px;margin-bottom: 16px; margin-left: 1em;") }}
|
2023-01-30 22:25:17 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<input type="submit" value="Valider">
|
|
|
|
<input type="submit" name="cancel" value="Annuler" style="margin-left: 1em;>
|
2021-10-16 23:22:03 +02:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|