Source

cciw-website / templates / cciw / camps / detail.html

{% extends "cciw/standard.html" %}
{% load url from future %}

{% block content %}
	<br/>
{% if camp.is_past %}
	<h2>Links</h2>
	<ul>
		<li><a href="{{ camp.get_absolute_url }}forum/">Forum</a></li>
		<li><a href="{{ camp.get_absolute_url }}photos/">Photos</a></li>
	</ul>
{% endif %}
<h2>Information</h2>
<table class="sideheaders">
	<tr>
		<th scope="row">Location:</th>
		<td><a href="{{ camp.site.get_absolute_url }}">{{ camp.site.short_name }}</a></td>
	</tr>
	<tr>
		<th scope="row">Date:</th>
		<td>{{ camp.start_date|date:"d M"}} - {{ camp.end_date|date:"d M Y" }}</td>
	</tr>
	<tr>
		<th scope="row">Age:</th>
		<td>{{ camp.age }}</td>
	</tr>
	{% if camp.next_camps.all %}
	<tr>
		<th scope="row">Following camp:</th>
		<td>
			{% for next_camp in camp.next_camps.all %}
				{{ next_camp.get_link }}<br/>
			{% endfor %}
		</td>
	</tr>
	{% endif %}
	{% if camp.previous_camp %}
	<tr>
		<th scope="row">Previous camp:</th>
		<td>
			{{ camp.previous_camp.get_link }}
		</td>
	</tr>
	{% endif %}
	<tr>
		<th scope="row">Leaders:</th>
		<td>
			<ul class="leaderlist">
				{% for leader in camp.leaders.all %}
					<li>{{ leader.name }}:<br/>
					{{ leader.info|escape|linebreaksbr }}</li>
				{% endfor %}
                                {% if camp.chaplain %}
                                        <li>{{ camp.chaplain.name }}:<br/>
        				{{ camp.chaplain.info|escape|linebreaksbr }}</li>
                                {% endif %}
			</ul>
		</td>
	</tr>
        {% if camp.year == thisyear and camp.is_booking_open %}
        <tr>
               <th scope="row">Places:</th>
               <td>
                 {% with total=camp.get_places_left.0 %}
                 {% if total > 0 %}
                     {{ total }} places still available:<br/><br/> <a class="booknow" href="{% url 'cciw.bookings.views.start' %}">Book online now!</a><br/><br/>
                     <a href="{% url 'cciw.bookings.views.index' %}">See other booking options and prices</a>
                 {% else %}
                     No more places available on this camp, sorry.
                 {% endif %}
                 {% endwith %}
               </td>
        </tr>
        {% endif %}
</table>
{% 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.