{% extends "base.html" %}
{% load link %}
{% block title %} QM: {{qm|safe}} {% endblock %}
{% block contentheader %}
    <h2>Question marks for {{cave.kataster_number}} - {{cave.official_name|safe}} - {{cave.unofficial_number}}</h2>
    
    <p>Note that QMs loaded for 1623-161, 1623-204 and 1623-234 are imported from CSV files . 
    
    <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>.
{% endblock %}
{% block content %}
    <h3>Extant</h3>
    <p>{% if cave.get_QMs %}
    <ul id="cavelist">
    {% for QM in cave.get_QMs %}
        {% if QM.ticked_off_by %}
        {% else %}
        <li><a href="{{QM.get_absolute_url}}">{{QM}}</a>  :: {{QM.nearest_station_description}} {{QM.location_description}} <b>{{QM.grade}}</b></li>
        {% endif %}
    {% endfor %}
    </ul>
    <h3>Ticked off</h3>
    <ul>
    {% for QM in cave.get_QMs %}
        {% if QM.ticked_off_by %}
        <li><a href="{{QM.get_absolute_url}}">{{QM}}</a>  :: {{QM.nearest_station_description}} {{QM.location_description}} <b>{{QM.grade}}</b></li>
        {% endif %}
    {% endfor %}
    </ul>
{% endif %}</p>
{% endblock %}