summaryrefslogtreecommitdiffstats
path: root/templates/cave.html
blob: 12e83b4b3c2ff076f3bed6650f204f3ad2e09f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{% extends "cavebase.html" %}


{% block content %}
{% block contentheader %}
<table id="cavepage">
<tr>
    <th id="kat_no">
        {% if cave.kataster_number %}
            {{ cave.kataster_number|safe }}
            {% if cave.entrancelist %}
                - {{ cave.entrancelist|safe }}
            {% endif %}
            {% if cave.unofficial_number %}
                <br />({{ cave.unofficial_number|safe }})
            {% endif %}
        {% endif %}
    </th>
    <th id="name">
         {{ cave.official_name|safe }}
    </th>
    <th id="status">
         {{ cave.kataster_code|safe }}
    </th>
</tr>
</table>
{% block related %}
{% endblock %}{% endblock %}

<div id="tabs">
	<ul>
		<li><a href="#entrances">Entrances</a></li>
		<li><a href="#cave">Cave</a></li>
		<li><a href="#logbook">Logbook</a></li>
		<li><a href="#qms">QMs</a></li>
	</ul>
	<div id="entrances">
		<p>{% if cave.entrances %}
    <h2>Entrances</h2>
    {% for ent in cave.entrances %}
        <a href = "./{{ ent.entrance_letter|safe }}">{{ ent.entrance_letter|safe }}</a>
        {% if ent.entrance.marking %}
            Marking: {{ ent.entrance.marking_val|safe }}
        {% endif %}
        <br>
    {% endfor %}
{% endif %}</p>
	</div>
	<div id="cave">
		<p>{% if cave.explorers %}
    <h2>Explorers</h2>
    {{ cave.explorers|safe }}
{% endif %}
{% if cave.underground_description %}
    <h2>Underground Description</h2>
    {{ cave.underground_description|safe }}
{% endif %}
{% if cave.equipment %}
    <h2>Equipment</h2>
    {{ cave.equipment|safe }}
{% endif %}
{% if cave.references %}
    <h2>References</h2>
    {{ cave.references|safe }}
{% endif %}
{% if cave.survey %}
    <h2>Survey</h2>
    {{ cave.survey|safe }}
{% endif %}
{% if cave.kataster_status %}
    <h2>Kataster_status</h2>
    {{ cave.kataster_status|safe }}
{% endif %}
{% if cave.underground_centre_line %}
    <h2>Underground Centre Line</h2>
    {{ cave.underground_centre_line|safe }}
{% endif %}
{% if cave.survex_file %}
    <h2>Survex File</h2>
    {{ cave.survex_file|safe }}
{% endif %}
{% if cave.notes %}
    <h2>Notes</h2>
    {{ cave.notes|safe }}
{% endif %}</p>
	</div>
	<div id="logbook">
		<p>  
<table>
  {% for logbookentry in cave.logbookentry_set.all %}
  {% if logbookentry.title %}
    <tr>
      <td>{{logbookentry.date}}</td>
      <td><a href="{{ logbookentry.get_absolute_url }}">{{logbookentry.title|safe}}</a></td>
    </tr>
  {% endif %}
  {% endfor %}
  </table>
</p>
	</div>
	<div id="qms">
		<p>{% if cave.get_QMs %}
	<h2>Question marks</h2>
    <h3>Extant</h3>
    <ul id="cavelist">
    {% for QM in cave.get_QMs %}
        {% if QM.ticked_off_by %}
        {% else %}
        <li><a href="{{QM.get_absolute_url}}">{{QM}}</a></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></li>
        {% endif %}
    {% endfor %}
    </ul>
{% endif %}</p>
	</div>
</div>


{% endblock %}