mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
Detecting data in field on cave
This commit is contained in:
parent
d333ebe88e
commit
026d959aeb
@ -686,10 +686,11 @@ def ent(request, cave_id, ent_letter):
|
|||||||
|
|
||||||
def cave_debug(request):
|
def cave_debug(request):
|
||||||
ents = Entrance.objects.all().order_by('id')
|
ents = Entrance.objects.all().order_by('id')
|
||||||
|
caves = Cave.objects.all().order_by('id')
|
||||||
return render(
|
return render(
|
||||||
request,
|
request,
|
||||||
"cave_debug.html",
|
"cave_debug.html",
|
||||||
{"ents": ents},
|
{"ents": ents, "caves": caves},
|
||||||
)
|
)
|
||||||
|
|
||||||
def caveslist(request):
|
def caveslist(request):
|
||||||
|
@ -5,14 +5,15 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h2 id="cmult">Entrances</h2>
|
<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.
|
<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>
|
<table>
|
||||||
<tr><th>entrance</th>
|
<tr><th>entrance</th>
|
||||||
<th>ent slug</th>
|
<th>ent slug</th>
|
||||||
<th>Best station </th>
|
<th>Best station </th>
|
||||||
<th>Location</th>
|
<th>Location</th>
|
||||||
<<th>Bearings</th>
|
<th>Bearings</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for ent in ents %}
|
{% for ent in ents %}
|
||||||
{% if ent.bearings %}
|
{% if ent.bearings %}
|
||||||
@ -37,5 +38,26 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</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.underground_centre_line %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{c}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href="{{c.url}}">{{c.slug}}</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{c.underground_centre_line|safe}}
|
||||||
|
</td>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user