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.

62 lines
2.7 KiB

{% extends "ovpnconsole/base.html" %}
{% block title %}Détail de l'utilisateur {{ object.name }}{% endblock %}
{% block menu_top %}
{% if user.is_authenticated %}
<li><a href="{% url admin_page %}">Administration</a></li>
<li><a href="{% url logout %}">Deconnexion</a></li>
{% else %}
<li><a href="{% url login %}">Connexion</a></li>
{% endif %}
{% endblock %}
{% block navigation %}
<i>{{ object.ovpnserver.ovpnauthority.ovpnsite }} : {{ object.ovpnserver.ovpnauthority }} : {{ object.ovpnserver }} : {{ object }}</i>
{% endblock %}
{% block menu %}
<a href="/ovpnconsole/user/modify/{{object.id}}/"><img src="{{ MEDIA_URL }}images/modify_properties.png" alt="modifier" title="Modifier"/> Modifier les propri&eacute;t&eacute;s</a>
{% if object.is_valid %}
<a href="/ovpnconsole/user/changepasswd/{{object.id}}/"><img src="{{ MEDIA_URL }}images/password.png" alt="Changer mot de passe" title="Changer mot de passe"/> Changer le mot de passe </a>
<a href="/ovpnconsole/user/notify/{{object.id}}/"><img src="{{ MEDIA_URL }}images/send_email.png" alt="" title="Envoi des informations"/> Envoi des informations</a>
<a href="/ovpnconsole/user/delete/{{object.id}}/"><img src="{{ MEDIA_URL }}images/delete.png" alt="Supprimer" title="Supprimer"/> Supprimer l'utilisateur</a>
{% endif %}
<a href="/ovpnconsole/server/{{object.ovpnserver.id}}/"><img src="{{ MEDIA_URL }}images/back.png" /> Retour</a>
{% endblock %}
{% block contenu %}
<h2>D&eacute;tail de l'utilisateur {{ object.name }} ({{ object.ovpnserver.ovpnauthority.ovpnsite }} / {{ object.ovpnserver }}) </h2>
<p>Name : {{ object.name }}</p>
<p>EMail : {{ object.email }}</p>
<h3>Informations sur le certificat</h3>
<p><textarea name="" rows="14" cols="80" readonly="yes">{{ object.user_crt_content }}</textarea></p>
<h3>Historique des connexions</h3>
<div id="element_list">
<table>
<tr>
<th>Utilisateur</th>
<th>IP r&eacute;elle</th>
<th>Adresse VPN</th>
<th>Connection</th>
<th>Deconnexion</th>
<th>Etat</th>
</tr>
{% for line in ovpnserver_connhist %}
<tr>
<td>{{ line.user_name }}</td>
<td>{{ line.real_ip }}</td>
<td>{{ line.virt_ip }}</td>
<td>{{ line.conn_date }}</td>
<td>{{ line.disc_date }}</td>
{% ifequal line.state 'c' %}
<td class="status_ok">
{% else %}
<td class="status_nok">
{% endifequal %}
{{ line.get_state_display }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}