add cave column to wallets report

This commit is contained in:
Philip Sargent 2021-05-01 00:19:04 +01:00
parent 425b534c30
commit 100209ea16

View File

@ -10,7 +10,7 @@ plans and elevations. It also contains scans of centre-line survex output on whi
hand-drawn passage sections are drawn. These hand-drawn passages will eventually be
traced to produce Tunnel or Therion drawings and eventually the final complete cave survey.
<table width=95%>
<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th></tr>
<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th><th>Cave</th></tr>
{% for scanswallet in manywallets %}
<tr>
<td style="padding:2px"><a href="{{scanswallet.get_absolute_url}}">{{scanswallet.walletname}}</a></td>
@ -20,6 +20,14 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a>
{% endfor %}
</td>
<td style="padding:2px">
{% for survexblock in scanswallet.survexblock_set.all %}
{% ifchanged survexblock.survexfile.cave %}
<a href="{% url "cave" survexblock.survexfile.cave %}">{{survexblock.survexfile.cave}}</a>
{% endifchanged %}
{% endfor %}
</td>
</tr>
{% endfor %}
</table>