summaryrefslogtreecommitdiffstats
path: root/templates/cave_debug.html
blob: 6aae306277621f6a66f5e12a6cba3007c0f7aace (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
{% extends "base.html" %}
{% block title %}DEBUG page
<!-- cave_debug.html - this text visible because this template has been included -->
{% endblock %}

{% block content %}

<h2>Entrances</h2>
<p>These are Entrances read from the <var>expoweb/entrance_data/*.html</var> files. 
These are NOT the *entrance data points in the survex files.
<table>
<tr><th>entrance</th>
<th>ent map</th>
</tr>
{% for ent in ents %}
{% if ent.map_description %}
<tr>
  <td>
     #{{ent.id}} <a href="{{ent.firstcave.url}}">{{ent}}</a>
  </td>
  <td>
    {{ent.map_description}} 
  </td>
</tr>
{% endif %}
{% endfor %}
</table>

<table>
<tr><th>entrance</th>
<th>ent slug</th>
<th>Best station </th>
<th>Location</th>
<th>Bearings</th>
</tr>
{% for ent in ents %}
{% if ent.bearings %}
<tr>

  <td>
     #{{ent.id}} {{ent}}
  </td>
  <td>
    {{ent.slug}} 
  </td>
    <td>
{% if ent.best_station %}{{ent.best_station}}{% endif %}
  </td>
    <td>    
{% if ent.best_station %}{{ent.best_station_object.latlong}}{% endif %}
  </td>
  <td>
    {{ent.bearings|safe}} 
  </td>
{% endif %}
{% endfor %}
</table>

<h2>Caves with a specific field set</h2>
<table>
<tr><th>Cave</th>
<th>slug</th>
<th>underground_centre_line</th>
</tr>
{% for c in caves%}
{% if c.kataster_status %}
<tr>
  <td>
     {{c}} 
  </td>
  <td>
    <a href="{{c.url}}">{{c.slug}}</a>
  </td>
  <td>
    {{c.kataster_status |safe}} 
  </td>
{% endif %}
{% endfor %}
</table>

{% endblock %}