2009-05-13 05:35:11 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
CUCC expedition calendar:
|
|
|
|
{% if expedition %}
|
|
|
|
{{ expedition.year }}
|
|
|
|
{% else %}
|
|
|
|
choose a year
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2009-05-13 05:40:56 +01:00
|
|
|
{% block head %}
|
2009-05-13 05:35:11 +01:00
|
|
|
<style type="text/css">
|
|
|
|
<!--
|
2009-05-13 05:40:56 +01: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-05-13 05:35:11 +01:00
|
|
|
-->
|
|
|
|
</style>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2009-05-13 05:52:15 +01:00
|
|
|
{% block contentheader %}
|
|
|
|
<h2>Expedition members present calendar for {{ expedition.year }}</h2>
|
|
|
|
<table style="margin:0 auto">
|
|
|
|
<tr>
|
|
|
|
<td class='yes' width="10"></td><td>Expedition member present in Austria</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='no' width="10"></td><td>Expedition member absent in Austria</td>
|
|
|
|
</tr></table>
|
|
|
|
<br />
|
|
|
|
{% endblock%}
|
|
|
|
|
2009-05-13 05:35:11 +01:00
|
|
|
{% block content %}
|
|
|
|
{% if expedition %}
|
|
|
|
<table>
|
2009-05-13 05:35:29 +01:00
|
|
|
<tr><td />
|
2009-07-27 13:42:54 +01:00
|
|
|
{% for date in listdays %}
|
2009-05-13 05:35:11 +01:00
|
|
|
{% ifchanged date.month %}
|
2009-05-13 05:40:56 +01:00
|
|
|
<td class="date">{{ date|date:"F" }}</td>
|
2009-05-13 05:35:11 +01:00
|
|
|
{% else %}
|
2009-05-13 05:40:56 +01:00
|
|
|
<td class="date"></td>
|
2009-05-13 05:35:11 +01:00
|
|
|
{% endifchanged %}
|
|
|
|
{% endfor %}
|
2009-05-13 05:35:29 +01:00
|
|
|
</tr>
|
|
|
|
<tr><td />
|
2009-07-27 13:42:54 +01:00
|
|
|
{% for date in listdays %}
|
2009-05-13 05:40:56 +01:00
|
|
|
<td class="date">{{ date|date:"D" }}</td>
|
2009-05-13 05:35:11 +01:00
|
|
|
{% endfor %}
|
2009-05-13 05:35:29 +01:00
|
|
|
</tr>
|
|
|
|
<tr><td />
|
2009-07-27 13:42:54 +01:00
|
|
|
{% for date in listdays %}
|
2009-05-13 05:40:56 +01:00
|
|
|
<td class="date">{{ date|date:"d" }}</td>
|
2009-05-13 05:35:11 +01:00
|
|
|
{% endfor %}
|
2009-05-13 05:35:29 +01:00
|
|
|
</tr>
|
|
|
|
|
2009-07-27 13:42:54 +01:00
|
|
|
{% for personexpedition, pelistdays in personexpeditiondays %}
|
2009-05-13 05:35:29 +01:00
|
|
|
<tr>
|
|
|
|
<td class="name">
|
2009-07-22 16:18:00 +01:00
|
|
|
<a href="{{ personexpedition.person.get_absolute_url }}">{{ personexpedition.person }}</a>
|
2009-05-13 05:35:29 +01:00
|
|
|
</td>
|
2009-07-27 13:42:54 +01:00
|
|
|
{% for peday in pelistdays %}
|
|
|
|
<td {{ peday|yesno:"class='yes',class='no'"|safe }}></td>
|
2009-05-13 05:35:29 +01:00
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2009-05-13 05:35:11 +01:00
|
|
|
{% endif %}
|
2009-07-27 13:42:54 +01:00
|
|
|
{% endblock %}
|