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.
90 lines
3.7 KiB
90 lines
3.7 KiB
|
13 years ago
|
{% extends "ovpnconsole/base.html" %}
|
||
|
|
|
||
|
|
{% block title %}Détail de l'authorité de certification{% 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.ovpnsite }} : {{ object.name }}</i>
|
||
|
|
{% endblock %}
|
||
|
|
|
||
|
|
{% block menu %}
|
||
|
|
<a href="{% url ovpnserver_create object.id %}"> <img src="{{ MEDIA_URL }}images/add.png" /> Ajouter un nouveau serveur</a>
|
||
|
|
{% if detail %}
|
||
|
|
<a href="{% url ovpnauthority_delete object.id %}"> <img src="{{ MEDIA_URL }}images/delete.png" /> Supprimer l'authorité de certification</a>
|
||
|
|
<a href="{% url ovpnauthority_property object.id %}"><img src="{{ MEDIA_URL }}images/back.png" /> Retour</a>
|
||
|
|
{% else %}
|
||
|
|
<a href="{% url ovpnauthority_details object.id %}"><img src="{{ MEDIA_URL }}images/properties.png" /> Voir les Détails</a>
|
||
|
|
<a href="{% url ovpnauthority_delete object.id %}"><img src="{{ MEDIA_URL }}images/delete.png" /> Supprimer l'authorité de certification</a>
|
||
|
|
<a href="{% url ovpnsite_details object.ovpnsite.id %}"><img src="{{ MEDIA_URL }}images/back.png" /> Retour</a>
|
||
|
|
{% endif %}
|
||
|
|
{% endblock %}
|
||
|
|
|
||
|
|
{% block contenu %}
|
||
|
|
{% if detail %}
|
||
|
|
<h2>Détail de l'authorité de certification {{ object.name }} ({{ object.ovpnsite }}) </h2>
|
||
|
|
<h3>Informations sur le certificat</h3>
|
||
|
|
<p>Name : {{ object.name }}</p>
|
||
|
|
<p>Site : {{ object.ovpnsite }}</p>
|
||
|
|
<p>Country : {{ object.country }}</p>
|
||
|
|
<p>State : {{ object.state }}</p>
|
||
|
|
<p>City : {{ object.city }}</p>
|
||
|
|
<p>Organization : {{ object.organization }}</p>
|
||
|
|
<p>Validity : {{ object.expiration_date }}</p>
|
||
|
|
<p><textarea name="" rows="14" cols="80" readonly="yes">{{ object.certificate_content }}</textarea></p>
|
||
|
|
{% else %}
|
||
|
|
<h2>Liste des serveurs</h2>
|
||
|
|
<div id="element_list">
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th>Server</th>
|
||
|
|
<th>Etat</th>
|
||
|
|
<th>Actions</th>
|
||
|
|
<th>Infos</th>
|
||
|
|
</tr>
|
||
|
|
{% for server in object.ovpnserver_set.all %}
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
{% ifequal server.is_configured 1 %}
|
||
|
|
<div class="img">
|
||
|
|
<a href="{% url ovpnserver_details server.id %}"><img src="{{ MEDIA_URL }}images/server.png"/>
|
||
|
|
<div class="img_desc">{{ server.name }}</div>
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
{% else %}
|
||
|
|
<div class="img">
|
||
|
|
<img src="{{ MEDIA_URL }}images/server.png"/>
|
||
|
|
<div class="img_desc">{{ server.name }}</div>
|
||
|
|
</div>
|
||
|
|
{% endifequal %}
|
||
|
|
</td>
|
||
|
|
{% ifequal server.is_up_to_date 1 %}
|
||
|
|
<td><img src="{{ MEDIA_URL }}images/state_ok.png" alt="Changements appliqués" title="Changements appliqués"/> </td>
|
||
|
|
{% else %}
|
||
|
|
<td><img src="{{ MEDIA_URL }}images/state_nok.png" alt="Changements non appliqués" title="Changements non appliqués"/> </td>
|
||
|
|
{% endifequal %}
|
||
|
|
|
||
|
|
<td>
|
||
|
|
<div class="action_img">
|
||
|
|
{% ifequal server.is_configured 1 %}
|
||
|
|
<a href="{% url ovpnserver_config_apply server.id %}"> <img src="{{ MEDIA_URL }}images/apply.png" alt="Appliquer" title="Appliquer" /></a>
|
||
|
|
{% endifequal %}
|
||
|
|
<a href="{% url ovpnserver_settings server.id %}"><img src="{{ MEDIA_URL }}images/configure.png" alt="Configurer" title="Configurer"/></a>
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ server.ovpnuser_set.all.count }} Utilisateur(s), {{ server.get_connected_users_num }} Utilisateur(s) connecté(s)
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
{% endif %}
|
||
|
|
{% endblock %}
|