summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-12-14 01:41:26 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-12-14 01:41:26 +0000
commit1d3b8d44b473c11c78743e6cb4631bbc20bdc9b1 (patch)
treebce4ddb24e5ea588dfd97ea6bd1c8cfe3acaa049 /templates
parentcfc7a4b9f6de8d9df35fd2e4ad67e9330f6bfa90 (diff)
downloadtroggle-1d3b8d44b473c11c78743e6cb4631bbc20bdc9b1.tar.gz
troggle-1d3b8d44b473c11c78743e6cb4631bbc20bdc9b1.tar.bz2
troggle-1d3b8d44b473c11c78743e6cb4631bbc20bdc9b1.zip
More form layout chnages for Django v5
Diffstat (limited to 'templates')
-rw-r--r--templates/editcave.html15
-rw-r--r--templates/html_editor_scripts_css.html5
2 files changed, 14 insertions, 6 deletions
diff --git a/templates/editcave.html b/templates/editcave.html
index 05fc243..28fcccc 100644
--- a/templates/editcave.html
+++ b/templates/editcave.html
@@ -54,14 +54,19 @@ and these same fields appear in the alternative file upload process as described
{% endif %}
{% include 'html_editor_pop_ups.html' %}
-<!-- If you are looking for the furniture that creates the fields on this form, you need to look
-at troggle/core/forms.py ass this uses a Django magic form creation thinggy. -->
-<h2>{{message}}</h2>
+<h2><!-- file saving error message if any -->{{message}}</h2>
+<style>
+# In Django v5 forms are rendered as <div> not as a table. The layout is different.
+div > label {
+ display:block;
+ font-weight: bold;
+ margin-top: 5px; }
+</style>
<form action="" method="post">{% csrf_token %}
- {% if tabletype == 'table' %}<table>{% else %}<div>{% endif %}
+ {% if tabletype == 'table' %}<table>{% endif %}
{{ form }}
- {% if tabletype == 'table' %}</table>{% else %}</div>{% endif %}
+ {% if tabletype == 'table' %}</table>{% endif %}
<p><input style="font-weight: bold; font-size: 200%; font-variant-caps: small-caps; margin-left: 40%;" type="submit" value="Submit" /></p>
</form>
diff --git a/templates/html_editor_scripts_css.html b/templates/html_editor_scripts_css.html
index d16cdaf..b67c915 100644
--- a/templates/html_editor_scripts_css.html
+++ b/templates/html_editor_scripts_css.html
@@ -32,7 +32,10 @@
z-index: 20;
}
- .HTMLarea { width:100%;}
+ .HTMLarea {
+ width:100%; # width:130%;
+ # margin-left: -235px
+ }
.popup-overlay.active {
/*displays pop-up when "active" class is present*/