mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 13:18:15 +00:00
More form layout chnages for Django v5
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user