forked from expo/troggle
72 lines
2.3 KiB
HTML
72 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
CUCC expedition calendar:
|
|
{% if expedition %}
|
|
{{ expedition.year }}
|
|
{% else %}
|
|
choose a year
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block head %}
|
|
<style type="text/css">
|
|
<!--
|
|
.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 }
|
|
-->
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
{% 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%}
|
|
|
|
{% block content %}
|
|
{% if expedition %}
|
|
<table>
|
|
<tr><td />
|
|
{% for date in listdays %}
|
|
{% ifchanged date.month %}
|
|
<td class="date">{{ date|date:"F" }}</td>
|
|
{% else %}
|
|
<td class="date"></td>
|
|
{% endifchanged %}
|
|
{% endfor %}
|
|
</tr>
|
|
<tr><td />
|
|
{% for date in listdays %}
|
|
<td class="date">{{ date|date:"D" }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
<tr><td />
|
|
{% for date in listdays %}
|
|
<td class="date">{{ date|date:"d" }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
|
|
{% for personexpedition, pelistdays in personexpeditiondays %}
|
|
<tr>
|
|
<td class="name">
|
|
<a href="{{ personexpedition.person.get_absolute_url }}">{{ personexpedition.person }}</a>
|
|
</td>
|
|
{% for peday in pelistdays %}
|
|
<td {{ peday|yesno:"class='yes',class='no'"|safe }}></td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% endblock %}
|