2011-07-11 02:10:22 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load wiki_markup %}
|
|
|
|
{% load link %}
|
|
|
|
|
|
|
|
{% block title %}List of survex files{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<h1>Surveys for {{cave}}</h1>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
{% for survexdirectory in cave.survexdirectory_set.all %}
|
|
|
|
<a href="#T_{{survexdirectory.primarysurvexfile.path}}">{{survexdirectory.path}}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% for survexdirectory in cave.survexdirectory_set.all %}
|
|
|
|
<h3 id="T_{{survexdirectory.primarysurvexfile.path}}">{{survexdirectory.path}}</h3>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr><th>Survex file</th><th>Block</th><th>Date</th><th>Explorers</th><th>length</th><th>Titles</th><th>Scans</th></tr>
|
|
|
|
|
|
|
|
{% for survexfile in survexdirectory.survexfile_set.all %}
|
|
|
|
<tr>
|
|
|
|
{% if survexfile.exists %}
|
|
|
|
<td rowspan="{{survexfile.survexblock_set.all|length|plusone}}">
|
|
|
|
{% else %}
|
|
|
|
<td class="survexnewfile" rowspan="{{survexfile.survexblock_set.all|length|plusone}}">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% ifequal survexfile survexdirectory.primarysurvexfile %}
|
2018-04-11 22:02:57 +01:00
|
|
|
<a href="{% url "svx" survexfile.path %}"><b>{{survexfile.path}}</b></a>
|
2011-07-11 02:10:22 +01:00
|
|
|
{% else %}
|
2018-04-11 22:02:57 +01:00
|
|
|
<a href="{% url "svx" survexfile.path %}">{{survexfile.path}}</a>
|
2011-07-11 02:10:22 +01:00
|
|
|
{% endifequal %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% for survexblock in survexfile.survexblock_set.all %}
|
|
|
|
<tr>
|
2020-07-05 17:22:26 +01:00
|
|
|
<td style="width:10 em">{{survexblock.name}}</td>
|
|
|
|
<td style="white-space:nowrap">
|
2011-07-11 02:10:22 +01:00
|
|
|
{% if survexblock.expedition %}
|
2019-06-26 18:36:08 +01:00
|
|
|
<a href="{{survexblock.expedition.get_absolute_url}}">{{survexblock.date|date:"D d M Y"}}</a>
|
2011-07-11 02:10:22 +01:00
|
|
|
{% else %}
|
2020-07-05 17:22:26 +01:00
|
|
|
<!--{{survexblock.date}}-->
|
2011-07-11 02:10:22 +01:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2020-07-06 01:24:43 +01:00
|
|
|
{% for personrole in survexblock.survexpersonrole_set.all %}
|
2011-07-11 02:10:22 +01:00
|
|
|
{% if personrole.personexpedition %}
|
|
|
|
<a href="{{personrole.personexpedition.get_absolute_url}}">{{personrole.personname}}</a>
|
|
|
|
{% else %}
|
|
|
|
{{personrole.personname}}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
|
2020-07-05 17:22:26 +01:00
|
|
|
<td style="padding-right: 3px; text-align:right">{{survexblock.legslength|stringformat:".1f"}}</td>
|
2011-07-11 02:10:22 +01:00
|
|
|
|
2020-07-05 17:22:26 +01:00
|
|
|
<td style="padding-left: 3px;">
|
|
|
|
{{survexblock.title}}
|
2011-07-11 02:10:22 +01:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2020-06-23 23:46:33 +01:00
|
|
|
{% if survexblock.scansfolder %}
|
|
|
|
<b><a href="{{survexblock.scansfolder.get_absolute_url}}">{{survexblock.scansfolder.walletname}}</a></b>
|
2011-07-11 02:10:22 +01:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|