Browse Source

Use form labels in template (CSS needs to be adapted)

Baptiste Jonglez 10 years ago
parent
commit
3b1ac7aac5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      coin/vpn/templates/vpn/vpn.html

+ 3 - 3
coin/vpn/templates/vpn/vpn.html

@@ -20,7 +20,7 @@
                     </td>
                 </tr>
                 {% endblock %}<tr class="flatfield">
-                    <td class="center"><span class="label">Commentaire</span></td>
+                    <td class="center">{{ form.comment.label_tag }}</td>
                     <td>{{ form.comment }}</td>
                 </tr>
                 <tr>
@@ -40,11 +40,11 @@
             <table class="full-width">
               {{ form.non_field_errors }}
                 <tr class="flatfield">
-                    <td class="center"><span class="label">IPv4</span></td>
+                    <td class="center">{{ form.ipv4_endpoint.label_tag }}</td>
                     <td>{{ form.ipv4_endpoint }} {{ form.ipv4_endpoint.errors }}</td>
                 </tr>
                 <tr class="flatfield">
-                    <td class="center"><span class="label">IPv6</span></td>
+                    <td class="center">{{ form.ipv6_endpoint.label_tag }}</td>
                     <td>{{ form.ipv6_endpoint }} {{ form.ipv6_endpoint.errors }}</td>
                 </tr>
                 <tr>