summaryrefslogtreecommitdiffstats
path: root/templates/cave_qms.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/cave_qms.html')
-rw-r--r--templates/cave_qms.html43
1 files changed, 23 insertions, 20 deletions
diff --git a/templates/cave_qms.html b/templates/cave_qms.html
index 8b042d3..f55ce9b 100644
--- a/templates/cave_qms.html
+++ b/templates/cave_qms.html
@@ -20,39 +20,42 @@
<li><a href="{% url 'caveQMs' '1626-359' %}">1626-359 QMs</a> Homecoming
</ul>
+ <p>For how to set up your own QMs, see <a href="/handbook/survey/qmentry.html">Adding QMs </a>.
<p>For full explanation of the current status of the QM system(s), see <a href="/handbook/troggle/scriptsqms.html">scriptsqms page</a>.
{% endblock %}
{% block content %}
- <h3>Extant</h3>
- <p>{% if cave.get_QMs %}
- <ul>
- {% for QM in cave.get_QMs %}
- {% if QM.ticked %}
- {% else %}
+ <h3>Open leads</h3>
+ <ul>{% for QM in cave.get_open_QMs %}
<li><a href="{{QM.get_absolute_url}}">{{QM}}</a>
- {% if QM.nearest_station_description %}&vellip;<em>{{QM.nearest_station_description}}</em>&vellip;{% endif %} {{QM.location_description}} <b>{{QM.grade}}</b>
+ {% if QM.nearest_station_name %}&sect;<em>{{QM.nearest_station_name}}</em>&sect;{% endif %}
+{{QM.location_description}} <b>{{QM.grade}}</b>
{% if QM.block %} <a href="/survexfile/{{QM.block.survexfile.path}}.svx">{{QM.block}}.svx</a> {{QM.block.date}} {% endif %}</li>
- {% endif %}
+ {% empty %}
+ <li>No open leads.
{% endfor %}
</ul>
+
+&sect; QM.nearest_station_name<br />
+&star; QM.resolution_station_name<br />
<h3>Ticked off</h3>
- <ul>
- {% for QM in cave.get_QMs %}
- {% if QM.ticked %}
+ <ul>{% for QM in cave.get_ticked_QMs %}
<li><a href="{{QM.get_absolute_url}}">{{QM}}</a>
- {% if QM.nearest_station %}&vellip;<em>{{QM.nearest_station}}</em>&vellip;{% endif %}
- {% if QM.nearest_station_name %}&vellip;<em>{{QM.nearest_station_name}}</em>&vellip;{% endif %}
- {% if QM.nearest_station_description %}&vellip;<em>{{QM.nearest_station_description}}</em>&vellip;{% endif %} {{QM.location_description}} <b>{{QM.grade}}</b>
+ {% if QM.nearest_station_name %}&sect;<em>{{QM.nearest_station_name}}</em>&sect;{% endif %}
+ {% if QM.resolution_station_name %}&star;<em>{{QM.resolution_station_name}}</em>&star;{% endif %}
+ {{QM.location_description}} <b>{{QM.grade}}</b>
{% if QM.block %} <a href="/survexfile/{{QM.block.survexfile.path}}.svx">{{QM.block}}.svx</a> {{QM.block.date}} {% endif %}
{% if QM.completion_description %}
Completion page: <a href="/{{QM.get_completion_url}}">{{QM.completion_description}}</a>
- {% endif %}
- {% endif %}
-
-
-
+ {% endif %}
+ {% if QM.comment %}
+ Comment: <a href="/{{QM.get_completion_url}}">{{QM.comment}}</a>
+ {% endif %}
+ {% empty %}
+ <li>No ticked leads.
{% endfor %}
</ul>
-{% endif %}</p>
+</p>
+&sect; QM.nearest_station_name<br />
+&star; QM.resolution_station_name<br />
{% endblock %} \ No newline at end of file