41 lines
2.0 KiB
HTML
41 lines
2.0 KiB
HTML
|
{% extends "base.html" %}
|
||
|
|
||
|
{% block title %} Administration {% endblock %}
|
||
|
|
||
|
{% block titre %} Administration : Éditer un utilisateur {% endblock %}
|
||
|
|
||
|
{% block contenu %}
|
||
|
<div id="zone-de-contenu">
|
||
|
<form method="POST" action="">
|
||
|
<div style="width:100%;margin:20px;"> </div>
|
||
|
|
||
|
<fieldset class="fieldset"><legend style="font-size:25px;">Utilisateur</legend>
|
||
|
{% for message in get_flashed_messages() %}
|
||
|
<div class="alert alert-warning">
|
||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
|
{{ message }}
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
<table width=100%>
|
||
|
<tr><td>Nom d'utilisateur : </td><td> <input type="text" name="username" placeholder="jean.dupont" {% if useredit is not none %} value="{{useredit.login}}" readonly="readonly"{% endif %} /></td></tr>
|
||
|
<tr><td>Nom complet : </td><td> <input type="text" name="name" placeholder="Mr Jean Dupont" {% if useredit is not none %} value="{{useredit.name}}" {% endif %} /></td></tr>
|
||
|
<tr><td> Mot de passe : </td><td> <input type="password" name="password" placeholder="Mot de passe"/></td></tr>
|
||
|
<tr><td> Droits : </td><td> <select name="level">
|
||
|
{% for e in levels_users %}
|
||
|
{% if useredit is none %}
|
||
|
<option value="{{ levels_users[e] }}" {% if e == 'Simple user' %}selected{% endif %}>{{ e }}</option>
|
||
|
{% else %}
|
||
|
<option value="{{ levels_users[e] }}" {% if useredit.level == levels_users[e] %}selected{% endif %}>{{ e }}</option>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</td></tr>
|
||
|
<tr><td> </td> <td><input id="submit" type="submit" value=" Entrer "></td></tr>
|
||
|
</table>
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
{% endblock %}
|
||
|
|