mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
has_access et pas actif
This commit is contained in:
parent
684a44aae0
commit
29cebaaeed
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@
|
||||||
<li>{{ request_user.name }} {{ request_user.surname }}</li>
|
<li>{{ request_user.name }} {{ request_user.surname }}</li>
|
||||||
<li>Pseudo : {{ request_user.pseudo }}</li>
|
<li>Pseudo : {{ request_user.pseudo }}</li>
|
||||||
<li>Chambre : {{ request_user.room }}</li>
|
<li>Chambre : {{ request_user.room }}</li>
|
||||||
<li>Connexion : {% if request_user.actif == True %}<font color="green">Active</font>{% else %}<font color="red">Désactivée</font>{% endif %}</li>
|
<li>Connexion : {% if request_user.has_access == True %}<font color="green">Active</font>{% else %}<font color="red">Désactivée</font>{% endif %}</li>
|
||||||
<li>Fin d'adhésion : {% if request_user.end_adhesion != None %}<font color="green">{{ request_user.end_adhesion }}</font>{% else %}<font color="red">Non adhérent</font>{% endif %}</li>
|
<li>Fin d'adhésion : {% if request_user.end_adhesion != None %}<font color="green">{{ request_user.end_adhesion }}</font>{% else %}<font color="red">Non adhérent</font>{% endif %}</li>
|
||||||
<p><a href="{% url "users:mon-profil" %}">Voir mon profil</a></p>
|
<p><a href="{% url "users:mon-profil" %}">Voir mon profil</a></p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Connexion</th>
|
<th>Connexion</th>
|
||||||
{% if user.actif == True %}
|
{% if user.has_access == True %}
|
||||||
<td><font color="green">Active</font></td>
|
<td><font color="green">Active</font></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td><font color="red">Désactivée</font></td>
|
<td><font color="red">Désactivée</font></td>
|
||||||
|
|
Loading…
Reference in a new issue