forked from expo/troggle
Prospecting template
This commit is contained in:
parent
52736ca1b3
commit
5ff163efaa
12
templates/plainbase.html
Normal file
12
templates/plainbase.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% autoescape off %}
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
{% block extrahead %}{% endblock %}
|
||||
</head>
|
||||
<body {% block bodyattrs %}{% endblock %}>
|
||||
{% block body %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
{% endautoescape %}
|
70
templates/prospecting.html
Normal file
70
templates/prospecting.html
Normal file
@ -0,0 +1,70 @@
|
||||
{% 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 in areas %}
|
||||
<h2>{{name|safe}}</h2>
|
||||
<table border=\"1\" width="100%">
|
||||
<col><col><col><col><col><col><col><col><col width="35%">
|
||||
<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><th>Location</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for cave in area.cave_set.all %}
|
||||
{% if cave.singleentrance %}
|
||||
<tr{% if cave.ours %} class="ours"{% else %} class="notours"{% endif %}>
|
||||
<td>{{ cave }}</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>
|
||||
<td>{% if cave.caveandentrance_set.all.0.entrance.location_description %}Location: {{ cave.caveandentrance_set.all.0.entrance.location_description|safe }}{% endif %}
|
||||
{% if cave.caveandentrance_set.all.0.entrance.map_description %}Map: {{ cave.caveandentrance_set.all.0.entrance.map_description|safe }}{% endif %}
|
||||
{% if cave.caveandentrance_set.all.0.entrance.approach %}Approach: {{ cave.caveandentrance_set.all.0.entrance.approach|safe }}{% endif %}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr{% if cave.ours %} class="ours"{% else %} class="notours"{% endif %}>
|
||||
<td>{{ cave }}</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>
|
||||
{% for caveandentrance in cave.caveandentrance_set.all %}
|
||||
<tr{% if cave.ours %} class="ours"{% else %} class="notours"{% endif %}>
|
||||
<td>{{ caveandentrance.entrance_letter}}</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>
|
||||
<td>{% if cave.caveandentrance_set.all.0.entrance.location_description %}Location: {{ cave.caveandentrance_set.all.0.entrance.location_description|safe }}{% endif %}
|
||||
{% if cave.caveandentrance_set.all.0.entrance.map_description %}Map: {{ cave.caveandentrance_set.all.0.entrance.map_description|safe }}{% endif %}
|
||||
{% if cave.caveandentrance_set.all.0.entrance.approach %}Approach: {{ cave.caveandentrance_set.all.0.entrance.approach|safe }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user