diff templates/sat_website/adhesion_form.html @ 57:bfa8009f0769

improve the subscription form
author souliane <souliane@mailoo.org>
date Thu, 14 May 2015 22:46:57 +0200
parents a1e457ac6871
children
line wrap: on
line diff
--- a/templates/sat_website/adhesion_form.html	Sun May 10 15:48:04 2015 +0200
+++ b/templates/sat_website/adhesion_form.html	Thu May 14 22:46:57 2015 +0200
@@ -53,7 +53,10 @@
                         <div class="checkbox">
                             <label>
                                 {% autoescape off %}
-                                {{ field }}{{ field.label }} <span class="glyphicon glyphicon-asterisk"></span>
+                                {{ field }}{{ field.label }}
+                                {% if field.field.required %}
+                                    <span class="glyphicon glyphicon-asterisk"></span>
+                                {% endif %}
                                 {% endautoescape %}
                             </label>
                         </div>