{% extends "base.html" %}
{% load link %}
{% block title %} QM: {{qm|safe}} {% endblock %}
{% block contentheader %}
<h3>QMs  available for these caves from CSV import</h3>
    <ul>
    <li><a href="/cave/qms/1623-161">1623-161 QMs</a>
    <li><a href="/cave/qms/1623-204">1623-204 QMs</a>
    <li><a href="/cave/qms/1623-234">1623-234 QMs</a>
    </ul>
    <p>QMs are also loaded directly from the survex files (possibly buggy, July 2022), e.g. see
    <ul>
    <li><a href="/cave/qms/1623-264">1623-264 QMs</a>
    <li><a href="/cave/qms/1623-290">1623-290 QMs</a>
   </ul>

    <p>For full explanation of the current status of the QM system(s), see <a href="/handbook/troggle/scriptsqms.html">scriptsqms page</a>.

<table id="cavepage">
<tr>
<th id="kat_no"><a href="{{qm.get_previous_by_id.get_absolute_url}}">Previous</a></th>
<th id="name">{{qm|safe}}</th>
<th id="status"><a href="{{qm.get_next_by_id.get_absolute_url}}">Next</a></th>
</tr>
</table>
{% endblock %}

{% block related %}

{% endblock %}
<h2>Related items</h2>
  
Parent cave: {{qm.found_by.cave|link}}
{% block content %}

<h3>Location</h3>
{{qm.location_description}}

<h3>Grade</h3>
{{qm.grade}}

<h3>Creation</h3>
Found by <a href="{{qm.found_by.get_absolute_url}}">{{qm.found_by}}</a> on {{qm.found_by.date}}.

<h3>Completion</h3>
{% if ticked_off_by %}
{{qm.completion_description}}
Ticked off by: <a href="{{qm.ticked_off_by.get_absolute_url}}">{{qm.ticked_off_by}}</a><br />
Description: {{qm.completion_description}}
{% else %}
None yet- STILL EXTANT.
{% endif %}

<h3>Comment</h3>
{{qm.comment}}

{% endblock %}