Source

cciw-website / templates / cciw / bookings / add_place.html

{% extends 'cciw/bookings/standard.html' %}
{% load cciwform static %}
{% load url from future %}

{% block extraheader %}
{{ block.super }}
<script type="text/javascript" src="{% static "bookings/js/add_place.js" %}"></script>
{% endblock %}


{% block content %}
{% if not booking_open %}

<p>Booking for {{ thisyear }} cannot continue because prices have not been set.</p>

{% else %}

<form action="" method="POST" id="id_addplaceform" name="addplaceform" class="ajaxify">
{% csrf_token %}
<input id="readonly" type="hidden" value="{% if readonly %}1{% else %}0{% endif %}">
<input id="placesJsonUrl" type="hidden" value='{% url "cciw.bookings.views.places_json" %}'>
<input id="accountJsonUrl" type="hidden" value='{% url "cciw.bookings.views.account_json" %}'>
<input id="formInstanceId" type="hidden" value='{{ form.instance.id }}'>

{% if form.errors %}
<div class="userError">The details could not be saved - please correct the
  errors flagged below:

{{ form.non_field_errors }}
</div>
{% else %}

  {% if read_only %}
     <p>This place has been approved or booked, and information here
       can only be changed by an admin.</p>

  {% else %}

     {% if form.instance.id %}
     <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 <b>in bold</b>.</p>
     {% endif %}

  {% endif %}


{% endif %}

<h2>Camp</h2>
{% cciw_form_field form 'camp' 'Choose camp:' %}

<h2>Price</h2>
<p>The 2nd child from the same family is eligible for '2nd child discount'.
Subsequent children from the same family are eligible for '3rd child
discount'.</p>

<p>If you will struggle to pay the full fee, you can also apply for a custom
  discount. The exact price will have to be arranged by contacting the booking
  secretary, and you will not be able to complete the booking process online
  until this has been done if you choose this option.</p>

{% cciw_form_field form 'price_type' 'Price' %}

<h2>Camper details</h2>
 <input type="submit" class="use_existing_btn" value="Use previous data" style="display:none; float: right;">
{% cciw_form_field form 'first_name' 'First name' %}
{% cciw_form_field form 'last_name' 'Surname' %}
{% cciw_form_field form 'sex' 'Sex' %}
{% 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' %}
{% cciw_form_field form 'email' 'Email' %}

<h2>Church</h2>

{% cciw_form_field form 'church' 'Name of church (if any)' %}


<h2>Transport</h2>

<p>If you require transport from South Wales on the CCIW minibus, please tick
this box. The cost for this transport is an additional £{{ south_wales_surcharge }}.</p>

{% cciw_form_field form 'south_wales_transport' 'South Wales transport required' %}
<br/><br/>

{% if south_wales_transport_exclude_camps %}
<p><strong>NOTE:</strong> This is <strong>not available</strong> for new places on the following
camps:</p>
<ul>
{% for c in south_wales_transport_exclude_camps %}
<li>{{ c }}{% if not forloop.last %},{% endif %}</li>
{% endfor %}
</ul>
{% endif %}


<h2>Contact details</h2>

<p>Please enter a contact name and number that can be used <strong>during the week of camp</strong> in case of emergency.</p>

{% cciw_form_field form 'contact_address' 'Address' %} <input style="display:none;" type="submit" id="id_use_account_2_btn" value="Use account address">
{% cciw_form_field form 'contact_post_code' 'Post code' %}
{% cciw_form_field form 'contact_phone_number' 'Phone number' %}

<h2>Dietary requirements</h2>

<p>Please enter any special dietary requirements here (e.g. vegetarian).</p>
{% cciw_form_field form 'dietary_requirements' 'Dietary requirements' %}

<h2>GP details</h2>
 <input type="submit" class="use_existing_btn" value="Use previous data" style="display:none; float: right;">

<p>Please enter the details of the camper's GP:</p>

{% cciw_form_field form 'gp_name' 'Name' %}
{% cciw_form_field form 'gp_address' 'Address' %}
{% cciw_form_field form 'gp_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)' %}
{% 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)' %}
{% cciw_form_field form 'learning_difficulties' 'Any learning/behavioural difficulties' %}

<p>If the illnesses, allergies or learning/behavioural difficulties above
include conditions that would affect the safety of camp or our ability to look
after the camper, please indicate below.</p>

<p>This includes, for example, significant deafness or blindness, unstabilised
diabetes or epilepsy, life-threatening allergies, or other conditions which
would normally require supervision in school life, such as autism. You do not
need to tick this box for conditions that are easily managed by medication,
where the camper can administer the medication themselves.</p>

<p>If the box is ticked, a camp leader will then have to manually approve this
place before booking and payment can proceed. This system is needed to avoid
disappointment in the case where we will not be able to cater for the camper's
condition on camp.</p>

{% cciw_form_field form 'serious_illness' 'Serious condition/illness' %}

<h2>Agreements</h2>

<h3>Camper agreement</h3>

<p>The camper must agree to observe the camp's code of conduct. Failure to obey
camp rules can result in the camper being sent home, with no refund.</p>

<h3>Parent/guardian agreement</h3>

<p>In the event of any medical treatment becoming necessary during the camp
every effort will be made to contact the parent/guardian. However, parents are
required to authorise the leadership team to act in their absence where urgent
treatment becomes necessary.</p>

<p>If both camper and parent/guardian agree, tick the box to continue:</p>

{% cciw_form_field form 'agreement' 'Agree to above condtions' %}

{% if not read_only %}

<h2>Save</h2>

<p>All done! now just:


<input type="submit" name="submit" value="Save place details" id="id_save_btn" />

{% endif %}

</form>

<div id="id_use_existing_data_popup" class="inlinepopup" style="display:none;">
<div class="closebar">
<a href="#" id="id_popup_close_btn">Close</a>
</div>
<div class="popupbody">
<p>You can copy information previously entered to save time. Please check
 the data after using this to ensure it is all up to date.
 <b>NB: This will overwrite existing data on this form!</b>
</p>

<table>
<tr>
<th>Select previous booking to copy from</th>
<th>Choose which information to copy</th>
</tr>
<tr>
<td>
  <div style="max-height: 20em; overflow: auto;";>
    <form name="select_place">
    <div id="id_use_existing_radio_container">
    </div>
    </form>
  </div>
</td>
<td style="vertical-align:top; text-align:center;">
  <input type="submit" id="id_use_all_btn" value="Use all personal information" /> <br/>
  <input type="submit" id="id_use_address_btn" value="Use address and contact information" /> <br/>
  <input type="submit" id="id_use_gp_info_btn" value="Use GP information" />
</td>

</tr>
</table>
</div>
</div>

<div class="inlinepopup_background" id="id_popup_background"></div>

<div style="display:nonex;">
</div>

{% endif %}
{% endblock %}
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.