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 %} + + + +{% block title %}{% endblock %} +{% block extrahead %}{% endblock %} + + +{% block body %}{% endblock %} + + +{% 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 %} + +

Prospecting Guide

+

Notes:

+ + +{% for name, area in areas %} +

{{name|safe}}

+ + + + + + + {% for cave in area.cave_set.all %} + {% if cave.singleentrance %} + + + + + + + + + + + + {% else %} + + + + + + + + + + + + {% for caveandentrance in cave.caveandentrance_set.all %} + + + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} + +
Cave NumberNameFinishedSurvey
Data
Survey
Drawn
MarkedPhotoPositionLocation
{{ cave }}{{ cave.official_name|safe }}{{ cave.kataster_code }}{{ cave.hassurveydata }}{{ cave.hassurvey }}{{ cave.caveandentrance_set.all.0.entrance.marking_val }}{{ cave.caveandentrance_set.all.0.entrance.has_photo }} {{ cave.caveandentrance_set.all.0.entrance.find_location }}{% 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 %}
{{ cave }}{{ cave.official_name|safe }}{{ cave.kataster_code }}{{ cave.hassurveydata }}{{ cave.hassurvey }}
{{ caveandentrance.entrance_letter}}{{ caveandentrance.entrance.name|safe }}{{ caveandentrance.entrance.marking_val }}{{ caveandentrance.entrance.has_photo }} {{ caveandentrance.entrance.find_location|safe }}{% 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 %}
+{% endfor %} + +{% endblock %}