mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 15:21:52 +00:00
b950ee70f7
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8175 by aaron @ 1/18/2009 4:42 AM
62 lines
2.0 KiB
HTML
62 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
CUCC expedition calendar:
|
|
{% if expedition %}
|
|
{{ expedition.year }}
|
|
{% else %}
|
|
choose a year
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block javascript %}
|
|
<style type="text/css">
|
|
<!--
|
|
td.yes { background: #7f96e8; width: 80pt; font-size: 10pt }
|
|
td.no { background: #ff6666; width: 80pt; font-size: 10pt }
|
|
td.name { background: #7f96e8; width: 80pt; text-align:right; font-size: 10pt }
|
|
-->
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if expedition %}
|
|
<table>
|
|
<tr><td />
|
|
{% for date in expedition.ListDays %}
|
|
{% ifchanged date.month %}
|
|
<td class="h">{{ date|date:"F" }}</td>
|
|
{% else %}
|
|
<td class="h"></td>
|
|
{% endifchanged %}
|
|
{% endfor %}
|
|
</tr>
|
|
<tr><td />
|
|
{% for date in expedition.ListDays %}
|
|
<td class="h">{{ date|date:"D" }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
<tr><td />
|
|
{% for date in expedition.ListDays %}
|
|
<td class="h">{{ date|date:"d" }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
|
|
{% for personexpedition in expedition.personexpedition_set.all %}
|
|
<tr>
|
|
<td class="name">
|
|
{{ personexpedition.person }}
|
|
</td>
|
|
{% for dateTF in personexpedition.ListDaysTF %}
|
|
<td {{ dateTF|yesno:"class='yes',class='no'"|safe }}></td>
|
|
{% empty %}
|
|
<td colspan="{{ expedition.ListDays|length }}">No data yet.</td>
|
|
{% endfor %}
|
|
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% endblock %} |