Move error messages to top

This commit is contained in:
Yingtong Li 2019-03-06 10:54:59 +11:00
parent b8bd3facc3
commit 9139d1f81a
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -29,6 +29,13 @@
<p>Please check the following details and update them if necessary:</p>
<form class="ui form" method="POST" action="{{ url('mimport_save') }}">
{% if errors %}
<div class="ui visible error message"><ul>
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul></div>
{% endif %}
<div class="ui required inline grid field">
<label class="three wide column">Student ID</label>
<input class="nine wide column" type="text" name="student_id" value="{{ member.student_id }}">
@ -95,13 +102,6 @@
</div>
</div>
<div class="ui divider"></div>
{% if errors %}
<div class="ui visible error message"><ul>
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul></div>
{% endif %}
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
<input type="hidden" name="email_orig" value="{{ email_orig }}">
<input type="hidden" name="sig" value="{{ sig }}">