{% extends "base.html" %}
{% load link %}
{% block title %} QM: {{qm|safe}} {% endblock %}
{% block contentheader %}
    <h2>Question marks for <a href="/{{cave.url}}">{{cave.kataster_number}} - {{cave.official_name|safe}}</a> - {{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="{% url 'caveQMs' '1623-161' %}">1623-161 QMs</a> Maybe OUT OF DATE. See <a href="/1623/161/qmdone.htm">the manually curated list <b>instead</b></a>
    <li><a href="{% url 'caveQMs' '1623-204' %}">1623-204 QMs</a> Maybe OUT OF DATE. See <a href=" /1623/204/qm.html">the manually curated list <b>instead</b></a>
    <li><a href="{% url 'caveQMs' '1623-234' %}">1623-234 QMs</a>
    </ul>
    <p>QMs are also loaded directly from the survex files, e.g. see
    <ul>
    <li><a href="{% url 'caveQMs' '1623-264' %}">1623-264 QMs</a> Balkon
    <li><a href="{% url 'caveQMs' '1623-258' %}">1623-258 QMs</a> Tunnocks
    <li><a href="{% url 'caveQMs' '1623-290' %}">1623-290 QMs</a> Fischgesicht
    <li><a href="{% url 'caveQMs' '1623-291' %}">1623-291 QMs</a> Happy Butterfly
    <li><a href="{% url 'caveQMs' '1626-359' %}">1626-359 QMs</a> Homecoming
   </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>    
    {% for QM in cave.get_QMs %}
        {% if QM.ticked %}
        {% else %}
        <li><a href="{{QM.get_absolute_url}}">{{QM}}</a>  :: {{QM.nearest_station_description}} {{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 %}
    {% endfor %}
    </ul>
    <h3>Ticked off</h3>
    <ul>
    {% for QM in cave.get_QMs %}
        {% if QM.ticked %}
        <li><a href="{{QM.get_absolute_url}}">{{QM}}</a>  :: {{QM.nearest_station_description}} {{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 %}
         


    {% endfor %}
    </ul>
{% endif %}</p>
{% endblock %}