display form errors before the hidden form (#18594)

This commit is contained in:
Thomas NOËL 2017-09-11 17:26:24 +02:00
parent 3a6f9f10d5
commit cb3f5ac0f2
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,8 @@
{% render_table table "fargo/table.html" %}
<form id="send-file" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.non_field_errors }}
{{ form.content.errors }}
<div style="display: none">
{{ form.as_p }}
<input type="submit" name="submit" value="Upload">

View File

@ -8,6 +8,8 @@
{% render_table table "fargo/pick_table.html" %}
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.non_field_errors }}
{{ form.content.errors }}
<div style="display: none">
{{ form.as_p }}
</div>