2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 14:17:42 +00:00

add 'lastvisit' field to entrances, for the date

This commit is contained in:
Philip Sargent
2022-10-12 23:12:55 +03:00
parent 45f06293f5
commit e0ac09d5ec
6 changed files with 65 additions and 49 deletions

View File

@@ -24,6 +24,9 @@
{% if ent.entrance.location_description %}
<dt>Location</dt><dd>{{ ent.entrance.location_description|safe }}</dd>
{% endif %}
{% if ent.entrance.lastvisit %}
<dt>Location</dt><dd>{{ ent.entrance.lastvisit|safe }}</dd>
{% endif %}
{% if ent.entrance.approach %}
<dt>Approach</dt><dd>{{ ent.entrance.approach|safe }}</dd>
{% endif %}

View File

@@ -22,6 +22,7 @@
<explorers>{{ entrance.explorers|default_if_none:""|safe }}</explorers>
<map_description>{{ entrance.map_description|default_if_none:""|safe }}</map_description>
<location_description>{{ entrance.location_description|default_if_none:""|safe }}</location_description>
<lastvisit>{{ entrance.lastvisit|default_if_none:""|safe }}</lastvisit>
<approach>{{ entrance.approach|default_if_none:""|safe }}</approach>
<underground_description>{{ entrance.underground_description|default_if_none:""|safe }}</underground_description>
<photo>{{ entrance.photo|default_if_none:"<img src='/1623/000/000.jpg' />"|safe }}</photo>

View File

@@ -45,6 +45,10 @@
<h2>Location Description</h2>
{{ entrance.location_description|safe }}
{% endif %}
{% if entrance.lastvisit %}
<h2>Last Visit Date</h2>
{{ entrance.llastvisit|safe }}
{% endif %}
{% if entrance.approach %}
<h2>Approach</h2>
{{ entrance.approach|safe }}