2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 16:51:54 +00:00
troggle/templates/expedition.html

91 lines
3.1 KiB
HTML
Raw Normal View History

2011-07-11 02:10:22 +01:00
{% extends "base.html" %}
2022-03-10 18:58:58 +00:00
<!-- templates/expedition.html - this text visible because this template has been included -->
2011-07-11 02:10:22 +01:00
{% block title %}Expedition {{expedition.name}}{% endblock %}
{% block related %}
{% endblock %}
{% block content %}
<h2>{{expedition.name}}</h2>
<p><b>Other years:</b>
{% for otherexpedition in expeditions %}
{% if otherexpedition == expedition %}
2011-07-11 02:10:22 +01:00
| <b>{{otherexpedition.year}}</b>
{% else %}
| <a href="{{otherexpedition.get_absolute_url}}">{{ otherexpedition.year }}</a>
{% endif %}
2011-07-11 02:10:22 +01:00
{% endfor %}
</p>
<p>See also the <a href="/years/{{expedition.year}}/">documentation index</a> for this Expo
2022-08-01 15:32:35 +01:00
<p>See also the <a href="/wallets/year/{{expedition.year}}">wallet completion status</a> for this Expo
{% if logged_in %}
2021-04-10 02:12:13 +01:00
<p>Reparse and reload this year's logbook by clicking here: <a href="/expedition/{{expedition.year}}?reload">RELOAD</a>
{% endif %}
2021-04-10 02:12:13 +01:00
2011-07-11 02:10:22 +01:00
<p><b>At a single glance:</b> The table shows all expo cavers and their recorded trips.
The columns are the date in the month (July or August), with a "T" for a logbook entry, and
an "S" for a survey trip. The colours are the same for people on the same trip.</p>
<table class="expeditionpersonlist">
<tr>
<th>Caver</th>
{% for expeditionday in expedition.expeditionday_set.all %}
<th>
{{expeditionday.date.day}}
</th>
{% endfor %}
</tr>
{% for personexpeditionday in personexpeditiondays %}
<tr>
2019-06-26 18:36:08 +01:00
<td><a href="{{ personexpeditionday.personexpedition.get_absolute_url }}">{{personexpeditionday.personexpedition.person|safe}}</a></td>
2011-07-11 02:10:22 +01:00
{% for persondayactivities in personexpeditionday.personrow %}
{% if persondayactivities.persontrips or persondayactivities.survexblocks %}
<td class="persondayactivity">
{% for persontrip in persondayactivities.persontrips %}
<a href="{{persontrip.logbook_entry.get_absolute_url}}" class="dayindexlog-1">T</a>
2011-07-11 02:10:22 +01:00
{% endfor %}
<br/>
{% for survexblock in persondayactivities.survexblocks %}
<a href="{% url "svx" survexblock.survexfile.path %}" class="dayindexsurvex-{{survexblock.DayIndex}}">S</a>
2011-07-11 02:10:22 +01:00
{% endfor %}
</td>
{% else %}
<td class="persondayactivity-nothing">
</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>
{% if logged_in %}
<form action="" method="GET"><input type="submit" name="reload" value="Reload from logbook"></form>
{% endif %}
2011-07-11 02:10:22 +01:00
<h3>Logbooks and survey trips per day</h3>
2020-07-26 03:22:37 +01:00
2011-07-11 02:10:22 +01:00
<table class="expeditionlogbooks">
2021-05-01 00:18:39 +01:00
<tr><th>Date</th><th>Logged trips</th><th>Surveys</th><th>Wallets</th></tr>
2011-07-11 02:10:22 +01:00
{% regroup dateditems|dictsort:"date" by date as dates %}
{% for date in dates %}
<tr>
<td>{{date.grouper|date:"D d M Y"}}</td>
2011-07-11 02:10:22 +01:00
<td>{% for item in date.list %}
{% if item.isLogbookEntry %}<a href="{{ item.get_absolute_url }}">{{item.title|safe}}</a><br/>{% endif %}
{% endfor %}</td>
<td>{% for item in date.list %}
{% if item.isSurvexBlock %}<a href="{% url "svx" item.survexfile.path %}">{{item.name}}</a><br/>{% endif %}
2011-07-11 02:10:22 +01:00
{% endfor %}</td>
2021-05-01 00:18:39 +01:00
<td>{% for item in date.list %}
{% if item.isSurvexBlock %}
<a href="{{item.scanswallet.get_absolute_url}}">{{item.scanswallet.walletname}}</a><br/>
{% endif %}
{% endfor %}</td></tr>
2011-07-11 02:10:22 +01:00
{% endfor %}
</table>
{% endblock %}