summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-01-31 19:19:04 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2025-01-31 19:19:04 +0000
commit062ab3e5f80648fe727cb41a0a7c0b2d500de79d (patch)
treeee9ff7f0ebb64a63d251b3e223fc283def46c592 /templates
parent43634fb47547a5fbfbc2af1ead93f8597f4925a3 (diff)
downloadtroggle-062ab3e5f80648fe727cb41a0a7c0b2d500de79d.tar.gz
troggle-062ab3e5f80648fe727cb41a0a7c0b2d500de79d.tar.bz2
troggle-062ab3e5f80648fe727cb41a0a7c0b2d500de79d.zip
renaming script
Diffstat (limited to 'templates')
-rw-r--r--templates/cave_kataster.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/templates/cave_kataster.html b/templates/cave_kataster.html
index 771f89e..d8d57ae 100644
--- a/templates/cave_kataster.html
+++ b/templates/cave_kataster.html
@@ -11,20 +11,20 @@
<h3>Cave <a href="/{{cave.url|safe}}">{{cave.slug|safe}}</a> '{{cave.official_name|safe}}'</h3>
-
+ <form action="{% url 'kataster' cave.slug %}" method="post">
<p>
{% if cave.kataster_number %}
<b>This cave has already been "katastered". area:{{cave.areacode |safe}} number:{{cave.kataster_number |safe}}
</b>
{% else %}
This cave needs to be "katastered". If you have the new number issued by the Austrians, we can do it now.
- <form action="{% url 'kataster' cave.slug %}" method="post">
+
{% csrf_token %}
{{form.as_p}}
<button class="fancybutton" style="padding: 0.5em 25px; font-size: 100%;" type = "submit" >
See what the edits look like &rarr;
</button>
-</form>
+
{% endif %}
<h3>Rename the .html files in <var>expoweb</var></h3>
@@ -121,7 +121,14 @@ OR we can do an online rename of the "Cave" object in the database [code yet to
<p>
<p>Ideally you do this renumbering on a standalone instance of troggle running on a <var> &#9874; <a href="/handbook/troggle/troglaptop.html">troggle development laptop</a></var> and you don't push any of the git commits to the server until you have got all the niggles out of the conversion, i.e. the databaseReset runs locally without any warnings or errors introduced by your renaming <em>and</em> 'cavern' runs without any new survex errors.
<p>
-<textarea id="script" name="script" rows="15" cols="100" style="font-size:small">
+
+<textarea id="script" name="script" rows="{{rows}}" cols="100" style="font-size:small; font-weight: bold; background-color: LemonChiffon">
{{script}}
</textarea>
+<br />
+<!-- duplicate button at bottom of long page -->
+ <button class="fancybutton" style="padding: 0.5em 25px; font-size: 100%;" type = "submit" >
+ See what the edits look like &rarr;
+ </button>
+</form>
{% endblock %}