|
@@ -7,6 +7,7 @@
|
|
|
<div class="large-6 columns">
|
|
|
<div class="panel">
|
|
|
<h3>Statut</h3>
|
|
|
+ <form action="{{ object.get_absolute_url }}" method="post">{% csrf_token %}
|
|
|
<table class="full-width">
|
|
|
<tr>
|
|
|
<td class="center"><span class="label">Identifiant</span></td>
|
|
@@ -20,7 +21,7 @@
|
|
|
</tr>
|
|
|
{% endblock %}<tr class="flatfield">
|
|
|
<td class="center"><span class="label">Commentaire</span></td>
|
|
|
- <td><input type="text" value="{{object.comment}}" /></td>
|
|
|
+ <td>{{ form.comment }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="center boolviewer" colspan="2">
|
|
@@ -28,6 +29,7 @@
|
|
|
<span>Ce VPN est {% if object.activated %}activé{% else %}désactivé{% endif %}</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr><td class="center" colspan="2"><input type="submit" value="Valider" /></td></tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -36,13 +38,14 @@
|
|
|
<div class="panel">
|
|
|
<h3>Adresses IP</h3>
|
|
|
<table class="full-width">
|
|
|
+ {{ form.non_field_errors }}
|
|
|
<tr class="flatfield">
|
|
|
<td class="center"><span class="label">IPv4</span></td>
|
|
|
- <td><input type="text" name="endpoint4" {% if object.ipv4_endpoint %}value="{{ object.ipv4_endpoint }}" {% endif %} placeholder="Aucune adresse"/></td>
|
|
|
+ <td>{{ form.ipv4_endpoint }} {{ form.ipv4_endpoint.errors }}</td>
|
|
|
</tr>
|
|
|
<tr class="flatfield">
|
|
|
<td class="center"><span class="label">IPv6</span></td>
|
|
|
- <td><input type="text" name="endpoint6" {% if object.ipv6_endpoint %}value="{{ object.ipv6_endpoint }}" {% endif %} placeholder="Aucune adresse"/></td>
|
|
|
+ <td>{{ form.ipv6_endpoint }} {{ form.ipv6_endpoint.errors }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="center"><span class="label">Sous-réseaux</span></td>
|
|
@@ -50,9 +53,11 @@
|
|
|
{% for subnet in object.administrative_subscription.ip_subnet.all %}{{ subnet }}<br/>{% endfor %}
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr><td class="center" colspan="2"><input type="submit" value="Valider" /></td></tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|