diff options
author | Martin Green <martin.speleo@gmail.com> | 2012-08-10 19:34:44 +0200 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2012-08-10 19:34:44 +0200 |
commit | 6d5babd3319fec50f404bf7ad044962bd1f192e9 (patch) | |
tree | 2155b3d20843988f247a7674f3ce2cd72aea196e /templates | |
parent | 79b7d326644a931c431c2b51dfb783ff15af31de (diff) | |
download | troggle-6d5babd3319fec50f404bf7ad044962bd1f192e9.tar.gz troggle-6d5babd3319fec50f404bf7ad044962bd1f192e9.tar.bz2 troggle-6d5babd3319fec50f404bf7ad044962bd1f192e9.zip |
Prospecting template
Diffstat (limited to 'templates')
-rw-r--r-- | templates/plainbase.html | 12 | ||||
-rw-r--r-- | templates/prospecting.html | 70 |
2 files changed, 82 insertions, 0 deletions
diff --git a/templates/plainbase.html b/templates/plainbase.html new file mode 100644 index 0000000..64b1d20 --- /dev/null +++ b/templates/plainbase.html @@ -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 %} diff --git a/templates/prospecting.html b/templates/prospecting.html new file mode 100644 index 0000000..c329e5c --- /dev/null +++ b/templates/prospecting.html @@ -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 %} |