Console OpenVPN, développée en Django Permet de gérer des instances, serveurs, et comptes OpenVPN
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

{% extends "ovpnconsole/base.html" %}
{% block title %}Administration{% endblock %}
{% block menu_top %}
<li><a href="{% url admin_page %}">Administration</a></li>
<li><a href="{% url logout %}">Deconnexion</a></li>
{% endblock %}
{% block navigation %}
<i>Gestion des utilisateurs</i>
{% endblock %}
{% block menu %}
<a href="/ovpnconsole/admin/adduser/"><img src="{{ MEDIA_URL }}images/add.png" />Cr&eacute;er un utilisateur</a>
<a href="/ovpnconsole/"><img src="{{ MEDIA_URL }}images/back.png" /> Retour &agrave; la page d'accueil</a>
{% endblock %}
{% block contenu %}
<h2>Gestion des utilisateurs</h2>
<div id="element_list">
<table>
<tr>
<th>Login</th><th>Actif</th><th>SuperUser</th><th>Action</th><th>Connexion</th>
</tr>
{% for user in user_list %}
<tr>
<td>{{ user }} : {{ user.email }} </td>
<td>
{% ifequal user.is_active 1 %}
<img src="{{ MEDIA_URL }}images/state_ok.png" alt="Ok" title="Ok"/>
{% endifequal %}
</td>
<td>
{% ifequal user.is_superuser 1 %}
<img src="{{ MEDIA_URL }}images/state_ok.png" alt="Ok" title="Ok"/>
{% endifequal %}
</td>
<td class="action_img">
<a href="/ovpnconsole/admin/changeuser/{{ user.id }}/"><img src="{{ MEDIA_URL }}images/modify_properties.png" alt="modifier" title="Modifier"/>
<a href="/ovpnconsole/admin/deleteuser/{{ user.id }}/"><img src="{{ MEDIA_URL }}images/delete.png" alt="supprimer" title="supprimer"/>
</td>
<td> {{ user.last_login }} </td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}