diff options
Diffstat (limited to 'templates/cave_kataster.html')
-rw-r--r-- | templates/cave_kataster.html | 15 |
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 → </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> ⚒ <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 → + </button> +</form> {% endblock %} |