1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-30 06:31:11 +02:00

Remove user states

This commit is contained in:
Alexandre Iooss
2019-08-02 21:14:16 +02:00
parent 0ff7a1ea3b
commit b541f7025c
7 changed files with 50 additions and 29 deletions

View File

@ -93,12 +93,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</tr>
<tr>
<th>Statut</th>
{% if user.state == 0 %}
{% if user.is_active %}
<td><font color="green">Actif</font></td>
{% elif user.state == 1 %}
<td><font color="red">Désactivé</font></td>
{% else %}
<td><font color="orange">Archivé</font></td>
<td><font color="red">Désactivé</font></td>
{% endif %}
<th>Dernière connexion</th>
<td>{{ user.last_login }}</td>