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.

51 lines
1.4 KiB

{% extends "ovpnconsole/base.html" %}
{% block title %}
{% if ovpnsite_object %}
Modification du site {{ ovpnsite_object.name }}
{% else %}
Ajout d'un nouveau site
{% endif %}
{% 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>Ajout d'un nouveau site</i>
{% endblock %}
{% block menu %}
{% if ovpnsite_object %}
<h2>Modification de {{ ovpnsite_object.name }}</h2>
<a href="/ovpnconsole/site/{{ ovpnsite_object.id }}/"><img src="{{ MEDIA_URL }}images/back.png" /> Retour sur le site {{ ovpnsite_object.name }}</a>
{% else %}
<h2>Ajout d'un site</h2>
<a href="/ovpnconsole/">Retour</a>
{% endif %}
{% endblock %}
{% block contenu %}
{% if ovpnsite_object %}
<h2>Modification du site {{ ovpnsite_object.name }} </h2>
<form action="" method="post">
<table>
{{ form.as_table }}
<tr><th></th><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>
{% else %}
<h2>Ajout d'un nouveau site </h2>
<form action="" method="post">
<table>
{{ form.as_table }}
<tr><th></th><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>
{% endif %}
{% endblock %}