From 8073aca5d29d61e1291f8a4d2dba5382c91e0415 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 30 Jan 2025 20:20:20 +0000 Subject: [PATCH] more to-do --- core/views/cave_kataster.py | 4 ++++ media/css/trog3.css | 8 ++++++++ templates/cave_kataster.html | 25 ++++++++++++++----------- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/core/views/cave_kataster.py b/core/views/cave_kataster.py index dc06ea6..3c7e027 100644 --- a/core/views/cave_kataster.py +++ b/core/views/cave_kataster.py @@ -52,6 +52,7 @@ def kataster(request, slug): "form": form, "cave": cave, "cave_data": cave_data, "entrance_data": entrance_data, + "knum": "999", }, ) @@ -69,6 +70,9 @@ class KatasterForm(forms.Form): kataster_status = models.TextField(blank=True, null=True) official_name = models.CharField(max_length=160) survex_file = models.CharField(max_length=100, blank=True, null=True) # should be a foreign key? + unofficial_number = models.CharField(max_length=60, blank=True, null=True) + url = models.CharField(max_length=300, blank=True, null=True, unique = True) + SURVEX_DATA = REPOS_ROOT_PATH / "loser" EXPOWEB = REPOS_ROOT_PATH / "expoweb" CAVEDESCRIPTIONS = EXPOWEB / "cave_data" diff --git a/media/css/trog3.css b/media/css/trog3.css index 3d7ab48..3ab8faa 100644 --- a/media/css/trog3.css +++ b/media/css/trog3.css @@ -608,6 +608,14 @@ margin-top:5px; margin-bottom: 5px; } +/* added 2020-04-24 by Philip Sargent +# to match but inline when documenting systems */ +var { + font-family: monospace; + font-style: italic; + font-size: 0.9em; + background-color: #eee; +} /*The below are stolen from django admin css*/ .addlink { diff --git a/templates/cave_kataster.html b/templates/cave_kataster.html index 38c8c81..532827e 100644 --- a/templates/cave_kataster.html +++ b/templates/cave_kataster.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}Cave Kataster status report +{% block title %}Cave re-labelling from unofficial identifier to official Kataster number {% endblock %} @@ -7,9 +7,9 @@ -

Cave kataster status

-

Cave

-{{cave.slug}} +

Cave re-labelling from unofficial identifier to official Kataster number

+

Cave '{{cave.official_name}}'

+{{cave.slug|safe}}

@@ -21,20 +21,23 @@ This cave needs to be "katastered". If you have the new number issued by the Aus

Rename the .html files

-{{cave_data}} +{{cave_data|safe}}

{% for e in entrance_data %} -{{e}}
+{{e|safe}}
{% endfor %}

+

Finally

+

It is then vital to do a complete databaseReset as troggle has internally indexed all those {{cave.slug}} files, the indexes are now out of date and horrible things will happen when people try to use troggle with any cave that has been altered. {% endblock %}