Commits

Luke Plant committed 1b7b1d0

Changed display of required fields in forms to use bold, rather than a star

  • Participants
  • Parent commits 1f41001
  • Branches bookings

Comments (0)

Files changed (3)

File cciw/cciwmain/forms.py

     start_template = u'<div class="form">'
     end_template = u'</div>'
 
-    required_text = u' <span class="required" title="This field is required">*</span>'
-
     def as_p(self):
         "Returns this form rendered as HTML <p>s."
 
                     if label_text[-1] not in ':?.!':
                         label_text += self.label_suffix
                 if field.required:
-                    label_text += self.required_text
                     label_attrs = {'class':'required'}
                 else:
                     label_attrs = {}

File cciw/cciwmain/static/css/style.css

     margin-bottom: 6px;
 }
 
+label.required {
+    font-weight: bold;
+}
+
 .successMessage
 {
     border: 1px solid #007633;

File templates/cciw/bookings/add_place.html

      <p>Details for <b>{{ form.instance.name }}</b>:</p>
      {% else %}
      <p>Please enter the details needed to book a place on a camp. Required fields
-       are starred.</p>
+       are <b>in bold</b>.</p>
      {% endif %}
 
   {% endif %}