2009-01-18 01:15:34 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
CUCC expedition calendar:
|
|
|
|
{% if expedition %}
|
|
|
|
{{ expedition.year }}
|
|
|
|
{% else %}
|
|
|
|
choose a year
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2009-01-19 08:28:59 +00:00
|
|
|
{% block head %}
|
2009-01-18 01:15:34 +00:00
|
|
|
<style type="text/css">
|
|
|
|
<!--
|
2009-01-19 08:28:59 +00:00
|
|
|
.no { background: #7f96e8; width: 80pt; font-size: 10pt }
|
|
|
|
.yes { background: #ff6666; width: 80pt; font-size: 10pt }
|
|
|
|
.name { background: #999; width: 80pt; text-align:right; font-size: 10pt }
|
|
|
|
.date { background: #999; width: 80pt; text-align:right; font-size: 10pt }
|
2009-01-18 01:15:34 +00:00
|
|
|
-->
|
|
|
|
</style>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if expedition %}
|
|
|
|
<table>
|
2009-01-18 04:42:54 +00:00
|
|
|
<tr><td />
|
2009-01-18 01:15:34 +00:00
|
|
|
{% for date in expedition.ListDays %}
|
|
|
|
{% ifchanged date.month %}
|
2009-01-19 08:28:59 +00:00
|
|
|
<td class="date">{{ date|date:"F" }}</td>
|
2009-01-18 01:15:34 +00:00
|
|
|
{% else %}
|
2009-01-19 08:28:59 +00:00
|
|
|
<td class="date"></td>
|
2009-01-18 01:15:34 +00:00
|
|
|
{% endifchanged %}
|
|
|
|
{% endfor %}
|
2009-01-18 04:42:54 +00:00
|
|
|
</tr>
|
|
|
|
<tr><td />
|
2009-01-18 01:15:34 +00:00
|
|
|
{% for date in expedition.ListDays %}
|
2009-01-19 08:28:59 +00:00
|
|
|
<td class="date">{{ date|date:"D" }}</td>
|
2009-01-18 01:15:34 +00:00
|
|
|
{% endfor %}
|
2009-01-18 04:42:54 +00:00
|
|
|
</tr>
|
|
|
|
<tr><td />
|
2009-01-18 01:15:34 +00:00
|
|
|
{% for date in expedition.ListDays %}
|
2009-01-19 08:28:59 +00:00
|
|
|
<td class="date">{{ date|date:"d" }}</td>
|
2009-01-18 01:15:34 +00:00
|
|
|
{% endfor %}
|
2009-01-18 04:42:54 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% for personexpedition in expedition.personexpedition_set.all %}
|
|
|
|
<tr>
|
|
|
|
<td class="name">
|
|
|
|
{{ personexpedition.person }}
|
|
|
|
</td>
|
2009-01-20 05:36:45 +00:00
|
|
|
{% if personexpedition.ListDaysTF %}
|
2009-01-18 04:42:54 +00:00
|
|
|
{% for dateTF in personexpedition.ListDaysTF %}
|
|
|
|
<td {{ dateTF|yesno:"class='yes',class='no'"|safe }}></td>
|
|
|
|
{% endfor %}
|
2009-01-20 05:36:45 +00:00
|
|
|
{% else %}
|
|
|
|
<td colspan="{{ expedition.ListDays|length }}"><center>No data.</center></td>
|
|
|
|
{% endif %}
|
2009-01-18 04:42:54 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2009-01-18 01:15:34 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|