8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 15:12:25 +00:00

Affiche l'attribut dernière connexion

This commit is contained in:
chirac 2016-11-04 03:03:15 +01:00
parent 55cd3b3dbb
commit d4e8da7115

View file

@ -67,11 +67,11 @@
{% endif %} {% endif %}
</tr> </tr>
<tr> <tr>
<th>Connexion</th> <th>Accès internet</th>
{% if user.has_access == True %} {% if user.has_access == True %}
<td><font color="green">Active</font></td> <td><font color="green">Actif</font></td>
{% else %} {% else %}
<td><font color="red">Désactivée</font></td> <td><font color="red">Désactivé</font></td>
{% endif %} {% endif %}
<th>Droits</th> <th>Droits</th>
{% if list_droits %} {% if list_droits %}
@ -79,6 +79,10 @@
{% else %} {% else %}
<td>Aucun</td> <td>Aucun</td>
{% endif %} {% endif %}
<tr>
<th>Dernière connexion</th>
<td>{{ user.last_login }}</td>
</tr>
</table> </table>
<h2>Machines :</h2> <h2>Machines :</h2>
<h4><a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:new-machine' user.id %}"><i class="glyphicon glyphicon-phone"></i> Ajouter une machine</a></h4> <h4><a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:new-machine' user.id %}"><i class="glyphicon glyphicon-phone"></i> Ajouter une machine</a></h4>