summaryrefslogtreecommitdiffstats
path: root/templates/prospecting.html
blob: 53cfef952357854ba11f8cdbc52bb82bd7f50c35 (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
{% extends "plainbase.html" %}

{% block title %}Prospecting{% endblock %}

{% block body %}

<h1>Prospecting Guide</h1>
<p><b>Notes:</b></p>
<ul><li>A marking status of "Retag" means a tag is in place but it carries a provisional number, or in some cases an incorrect number, and needs replacing with a new tag.</li>
<li>Kataster status codes indicate the size of a cave, its character and its exploration status, as described <a href="../katast.htm">here</a>.</li>
<li>For more info on each cave, see the links to detailed description pages.</li>
</ul>

{% for name, area, caves in areas %}
 <h2>{{name|safe}}</h2>
 <table border="1" width="100%">
 <col><col><col><col><col><col><col><col><col>
 <thead>
 <tr><th>Cave Number</th><th>Name</th><th>Finished</th><th>Survey<br>Data</th><th>Survey<br>Drawn</th><th>Marked</th><th>Photo</th><th>Position</th></tr>
 </thead>
 <tbody>  
 {% for cave in caves %}
  {% if cave.singleentrance %}
   <tr{% if cave.ours %} class="ours"{% else %} class="notours"{% endif %}>
     <td><a href="/{{ cave.url }}">{{ cave }}</a></td>
     <td>{{ cave.official_name|safe }}</td>
     <td>{{ cave.kataster_code }}</td>
     <td>{{ cave.hassurveydata }}</td>
     <td>{{ cave.hassurvey }}</td>
     <td>{{ cave.caveandentrance_set.all.0.entrance.marking_val }}</td>
     <td>{{ cave.caveandentrance_set.all.0.entrance.has_photo }} </td>
     <td>{{ cave.caveandentrance_set.all.0.entrance.find_location }}</td>
   </tr>
   {% if cave.caveandentrance_set.all.0.entrance.location_description %}
       <tr><th>Location</th><td colspan="9">{{ cave.caveandentrance_set.all.0.entrance.location_description|safe }}</td></tr>
   {% endif %}
   {% if cave.caveandentrance_set.all.0.entrance.map_description %}
       <tr><th>Map</th><td colspan="9">{{ cave.caveandentrance_set.all.0.entrance.map_description|safe }}</td></tr>
   {% endif %}	
   {% if cave.caveandentrance_set.all.0.entrance.approach %}
       <tr><th>Approach</th><td colspan="9">{{ cave.caveandentrance_set.all.0.entrance.approach|safe }}</td></tr>
   {% endif %}
   {% if cave.caveandentrance_set.all.0.entrance.findability_description %}
       <tr><th>Findability</th><td colspan="9">{{ cave.caveandentrance_set.all.0.entrance.findability_description|safe }}</td></tr>
   {% endif %}
   {% if cave.caveandentrance_set.all.0.entrance.marking_comment %}
       <tr><th>Marking</th><td colspan="9">{{ cave.caveandentrance_set.all.0.entrance.marking_comment|safe }}</td></tr>
   {% endif %}
   {% if cave.caveandentrance_set.all.0.entrance.entrance_description %}
       <tr><th>Ent Desc</th><td colspan="9">{{ cave.caveandentrance_set.all.0.entrance.entrance_description|safe }}</td></tr>
   {% endif %}
   {% if cave.underground_description %}
       <tr><th>Under Desc</th><td colspan="9">{{ cave.underground_description|truncatewords_html:80 }}</td></tr>
   {% endif %}

  {% else %}
   <tr{% if cave.ours %} class="ours"{% else %} class="notours"{% endif %}>
     <td><a href="/{{ cave.url }}">{{ cave }}</a></td>
     <td>{{ cave.official_name|safe }}</td>
     <td>{{ cave.kataster_code }}</td>
     <td>{{ cave.hassurveydata }}</td>
     <td>{{ cave.hassurvey }}</td>
     <td></td>
     <td></td>
     <td></td>
     <td></td>
    </tr>
   {% if cave.underground_description %}
       <tr><th>Under Desc</th><td colspan="9">{{ cave.underground_description|truncatewords_html:80 }}</td></tr>
   {% endif %}
   {% for caveandentrance in cave.caveandentrance_set.all %} 
    <tr{% if cave.ours %} class="ours"{% else %} class="notours"{% endif %}>
     <td><a href="/{{ cave.url }}">{{ caveandentrance.entrance_letter}}</a></td>
     <td>{{ caveandentrance.entrance.name|safe }}</td>
     <td></td>
     <td></td>
     <td></td>
     <td>{{ caveandentrance.entrance.marking_val }}</td>
     <td>{{ caveandentrance.entrance.has_photo }} </td>
     <td>{{ caveandentrance.entrance.find_location|safe }}</td> 
    </tr>
    <tr>
    {% if caveandentrance.entrance.location_description %}
      <tr><td>Location</td><td colspan="9">{{ caveandentrance.entrance.location_description|safe }}</td></tr>
    {% endif %}
    {% if caveandentrance.entrance.map_description %}
      <tr><td>Map</td><td colspan="9">{{ caveandentrance.entrance.map_description|safe }}</td></tr>
    {% endif %}
    {% if caveandentrance.entrance.approach %}
      <tr><td>Approach</td><td colspan="9">{{ caveandentrance.entrance.approach|safe }}</td></tr>
    {% endif %}
    {% if caveandentrance.entrance.findability_description %}
        <tr><th>Findability</th><td colspan="9">{{ caveandentrance.entrance.findability_description|safe }}</td></tr>
    {% endif %}
   {% if caveandentrance.entrance.marking_comment %}
       <tr><th>Marking</th><td colspan="9">{{ caveandentrance.entrance.marking_comment|safe }}</td></tr>
   {% endif %}
   {% if cave.caveandentrance_set.all.0.entrance.entrance_description %}
       <tr><th>Ent Desc</th><td colspan="9">{{ caveandentrance.entrance.entrance_description|safe }}</td></tr>
   {% endif %}
   {% endfor %}
  {% endif %}
 {% endfor %}
 </tbody>
 </table>
{% endfor %}

{% endblock %}