From a6c47b26546fdcc07f80b74f30ba114d160a83a8 Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@gmail.com> Date: Sat, 29 Jun 2024 09:25:53 +0300 Subject: [PATCH] <caveslg> now taken from filename not <caveslug> field --- templates/dataformat/cave.xml | 2 +- templates/editcave.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/dataformat/cave.xml b/templates/dataformat/cave.xml index e8c6b5f..5725af8 100644 --- a/templates/dataformat/cave.xml +++ b/templates/dataformat/cave.xml @@ -17,7 +17,7 @@ the form documented at <cave> <non_public>{{ cave.non_public }}</non_public>{% for slug in cave.caveslug_set.all %}<!-- 'False' or 'True'. True if the cave should only be visible to logged-in users. Caves are normally public, so enter 'False' unless you know otherwise. --> -<caveslug>{{ slug.slug|default_if_none:"1623-000"|safe }}</caveslug>{% endfor %}<!--No longer required, we use the filename instead e.g. 1623-315 for 1623-315.html --> +<caveslug>{{ slug.slug|default_if_none:"1623-000"|safe }}</caveslug>{% endfor %}<!-- Ignored. No longer required, we use the filename instead e.g. 1623-315 for 1623-315.html --> <official_name>{{ cave.official_name|default_if_none:""|safe }}</official_name><!-- Name of the cave (normally in German) Use ü for u+Umlaut and ö for o+umlaut eg Höhle for Hohle and Glück for Gluck--> <area>{{cave.areacode |safe }}</area><!-- e.g. "1623" --> <kataster_code>{{ cave.kataster_code|default_if_none:"-"|safe }}</kataster_code><!-- 'length-or-depth/type exploration' diff --git a/templates/editcave.html b/templates/editcave.html index 61448bf..6f7b741 100644 --- a/templates/editcave.html +++ b/templates/editcave.html @@ -61,7 +61,7 @@ at troggle/core/forms.py ass this uses a Django magic form creation thinggy. --> <form action="" method="post">{% csrf_token %} <table>{{ form }} <!-- begin caveAndEntranceFormSet-->{{caveAndEntranceFormSet}}<!--end caveAndEntranceFormSet--></table> - <p><input type="submit" value="Submit" /></p> + <p><input style="font-weight: bold; font-size: 200%; font-variant-caps: small-caps; margin-left: 40%;" type="submit" value="Submit" /></p> </form> <h3>Kataster code</h3>