Commits

Luke Plant committed 2aebcac

Used placeholder text for 'YYYY-MM-DD'

Comments (0)

Files changed (2)

cciw/bookings/forms.py

         return Camp.objects.get(id=int(camp_id))
 
 AddPlaceForm.base_fields['agreement'].required = True
+AddPlaceForm.base_fields['date_of_birth'].widget.attrs['placeholder'] = 'YYYY-MM-DD'
+AddPlaceForm.base_fields['last_tetanus_injection'].widget.attrs['placeholder'] = 'YYYY-MM-DD'

templates/cciw/bookings/add_place.html

  <input type="submit" id="id_use_existing_btn" value="Use previous data" style="display:none; float: right;">
 {% cciw_form_field form 'name' 'Name' %}
 {% cciw_form_field form 'sex' 'Sex' %}
-{% cciw_form_field form 'date_of_birth' 'Date of birth (YYYY-MM-DD)' %}
+{% cciw_form_field form 'date_of_birth' 'Date of birth' %}
 {% cciw_form_field form 'address' 'Address' %} <input style="display:none;" type="submit" id="id_use_account_1_btn" value="Use account address">
 {% cciw_form_field form 'post_code' 'Post code' %}
 {% cciw_form_field form 'phone_number' 'Phone number' %}
 <h2>Medical details</h2>
 
 {% cciw_form_field form 'medical_card_number' 'Medical card number' %}
-{% cciw_form_field form 'last_tetanus_injection' 'Last tetanus injection (if any) (YYYY-MM-DD)' %}
+{% cciw_form_field form 'last_tetanus_injection' 'Last tetanus injection (if any)' %}
 {% cciw_form_field form 'allergies' 'Allergies (including medication)' %}
 {% cciw_form_field form 'regular_medication_required' 'Regular medication required' %}
 {% cciw_form_field form 'illnesses' 'Illnesses (e.g. asthma, epilepsy)' %}