From facc530e1deeb0de224677abd7f4ece50d35b7db Mon Sep 17 00:00:00 2001
From: Philip Sargent
Date: Sun, 30 Jun 2024 18:50:16 +0300
Subject: [PATCH] updated templates
---
templates/cave_data.html | 60 -----------------------------
templates/cave_data.xml | 60 +++++++++++++++++++++++++++++
templates/entrance.xml | 57 ++++++++++++++++++++++++++++
templates/entrance_data.html | 73 ------------------------------------
4 files changed, 117 insertions(+), 133 deletions(-)
delete mode 100644 templates/cave_data.html
create mode 100644 templates/cave_data.xml
create mode 100644 templates/entrance.xml
delete mode 100644 templates/entrance_data.html
diff --git a/templates/cave_data.html b/templates/cave_data.html
deleted file mode 100644
index 72647ed7b..000000000
--- a/templates/cave_data.html
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/templates/cave_data.xml b/templates/cave_data.xml
new file mode 100644
index 000000000..c6032f0ff
--- /dev/null
+++ b/templates/cave_data.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+This file is generated by troggle on {{date}} UTC using the form documented at
+the form documented at
+handbook/survey/caveentry.html
+
+
+
+{{ cave.non_public }}{% for slug in cave.caveslug_set.all %}
+
+{{ cave.official_name|default_if_none:""|safe }}
+{{cave.areacode |safe }}
+{{ cave.kataster_code|default_if_none:"-"|safe }}
+{{ cave.kataster_number|default_if_none:""|safe }}
+{{ cave.unofficial_number|default_if_none:""|safe }}
+{% for ce in cave.entrances.all %}
+
+ {{ ce.entrance.slug|default_if_none:""|safe }}
+ {{ ce.entranceletter|default_if_none:""|safe }}
+
+{% endfor %}
+{{ cave.explorers|default_if_none:""|safe }}
+{{ cave.survex_file|default_if_none:"caves-1623/000/000.svx"|safe }}
+{{ cave.underground_description|default_if_none:""|safe }}
+{{ cave.equipment|default_if_none:""|safe }}
+{{ cave.references|default_if_none:""|safe }}
+{{ cave.survey|default_if_none:""|safe }}
+{{ cave.notes|default_if_none:""|safe }}
+{{ cave.length|default_if_none:""|safe }}
+{{ cave.depth|default_if_none:""|safe }}
+{{cave.extent|default_if_none:""|safe }}
+
+{{ cave.description_file|default_if_none:""|safe }}
+
+
+
diff --git a/templates/entrance.xml b/templates/entrance.xml
new file mode 100644
index 000000000..6e4834379
--- /dev/null
+++ b/templates/entrance.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+This file is generated by troggle on {{date}} UTC using the form documented at
+handbook/survey/ententry.html
+
+
+{{ entrance.non_public }}
+{{ entrance.slug|safe }}
+{{ entrance.name|default_if_none:""|safe }}
+{{ entrance.entrance_description|default_if_none:""|safe }}
+{{ entrance.explorers|default_if_none:""|safe }}
+{{ entrance.location_description|default_if_none:""|safe }}
+{{ entrance.lastvisit|default_if_none:""|safe }}
+{{ entrance.approach|default_if_none:""|safe }}
+{{ entrance.underground_description|default_if_none:""|safe }}
+{{ entrance.photo|default_if_none:""|safe }}
+
+{{ entrance.marking|default_if_none:"?"|safe }}
+{{ entrance.marking_comment|default_if_none:""|safe }}
+
+{{ entrance.findability|default_if_none:"?"|safe }}
+{{ entrance.findability_description|default_if_none:""|safe }}
+{{ entrance.alt|default_if_none:""|safe }}
+{{ entrance.lat_wgs84|default_if_none:""|safe }}
+{{ entrance.long_wgs84|default_if_none:""|safe }}
+{{ entrance.tag_station|default_if_none:""|safe }}
+{{ entrance.other_station|default_if_none:""|safe }}
+{{ entrance.other_description|default_if_none:""|safe }}
+{{ entrance.bearings|default_if_none:""|safe }}
+
+
+
diff --git a/templates/entrance_data.html b/templates/entrance_data.html
deleted file mode 100644
index 120df1af6..000000000
--- a/templates/entrance_data.html
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-