summaryrefslogtreecommitdiffstats
path: root/templates/calendar.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/calendar.html')
-rw-r--r--templates/calendar.html19
1 files changed, 7 insertions, 12 deletions
diff --git a/templates/calendar.html b/templates/calendar.html
index 0bc7dfd..4e22e78 100644
--- a/templates/calendar.html
+++ b/templates/calendar.html
@@ -37,7 +37,7 @@
{% if expedition %}
<table>
<tr><td />
- {% for date in expedition.ListDays %}
+ {% for date in listdays %}
{% ifchanged date.month %}
<td class="date">{{ date|date:"F" }}</td>
{% else %}
@@ -46,31 +46,26 @@
{% endfor %}
</tr>
<tr><td />
- {% for date in expedition.ListDays %}
+ {% for date in listdays %}
<td class="date">{{ date|date:"D" }}</td>
{% endfor %}
</tr>
<tr><td />
- {% for date in expedition.ListDays %}
+ {% for date in listdays %}
<td class="date">{{ date|date:"d" }}</td>
{% endfor %}
</tr>
- {% for personexpedition in expedition.personexpedition_set.all %}
+ {% for personexpedition, pelistdays in personexpeditiondays %}
<tr>
<td class="name">
<a href="{{ personexpedition.person.get_absolute_url }}">{{ personexpedition.person }}</a>
-
</td>
- {% if personexpedition.ListDaysTF %}
- {% for dateTF in personexpedition.ListDaysTF %}
- <td {{ dateTF|yesno:"class='yes',class='no'"|safe }}></td>
+ {% for peday in pelistdays %}
+ <td {{ peday|yesno:"class='yes',class='no'"|safe }}></td>
{% endfor %}
- {% else %}
- <td colspan="{{ expedition.ListDays|length }}"><center>No data.</center></td>
- {% endif %}
</tr>
{% endfor %}
</table>
{% endif %}
-{% endblock %} \ No newline at end of file
+{% endblock %}