1. Andres Vargas
  2. surveys

Commits

Andres Vargas  committed 4a3d4b0

new forms style

  • Participants
  • Parent commits ecd8a09
  • Branches default

Comments (0)

Files changed (4)

File media/css/media.css

View file
 #signup input, #signup select  {
 margin-left:10px;
 }
+
+
+.errorlist{
+margin-top: 10px;
+margin-bottom: 10px;
+}
 #signup p
 {
     margin:0px;

File profiles/forms.py

View file
         widget=forms.CheckboxSelectMultiple(), label = "¿Qué te gusta?")
     terms = forms.BooleanField(required=True, label = u"Aceptó terminos.",
         help_text = """ 
-            Afirmo haber leido y estar de acuerdo con los términos y condiciones del servicio
-        y el aviso de privacidad
+            Afirmo haber leido y estar de acuerdo con los <a href="http://www.megamedia.com.mx/privacidad">términos y condiciones del servicio
+        y el aviso de privacidad</a>
         """
         )
     captcha = ReCaptchaField()

File profiles/templates/profiles/index.html

View file
     <p>
     {{ field.label_tag }} 
     {{ field }}<br>
-    <small>{{field.help_text}}</small>
+        <small>{{field.help_text|safe}}</small>
     </p>
     {% endif %}
     {% endfor %}

File templates/userena/signup_form.html

View file
 
 {% block content %}
 </div>
-<div class="grid_6 suffix_5 prefix_5 ">
-<form action="" method="post" id="signup">
-  {% csrf_token %}
-  <fieldset>
-    <legend>Signup</legend>
-    {% for field in form %}
-    {{ field.errors }}
-    {% comment %} Displaying checkboxes differently {% endcomment %}
-    {% if field.name == 'tos' %}
-    <p class="checkbox">
-    <label for="id_{{ field.name }}">{{ field }} {{ field.label }}</label>
-    </p>
-    {% else %}
-    <p>
-    {{ field.label_tag }} 
-    {{ field }}
-    </p>
-    {% endif %}
-    {% endfor %}
-  </fieldset>
-  <input type="submit" value="{% trans "Signup"%}" />
-</form>
+<div class="grid_7 prefix_4 ">
+    <form action="" method="post" id="signup">
+      {% csrf_token %}
+      <fieldset>
+        <legend>Signup</legend>
+        {% for field in form %}
+            {{ field.errors }}
+        <p>
+            {{ field.label_tag }} 
+            {{ field }} 
+            {% if field.help_text %}
+            <br>  <small>{{field.help_text|safe}}</small>
+            {% endif %}
+        </p>
+        {% endfor %}
+      </fieldset>
+      <input type="submit" value="{% trans "Signup"%}" />
+    </form>
 </div>
 {% endblock %}