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)' %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.