Commit 3cf4f41f authored by Daniel W Bond's avatar Daniel W Bond
Browse files

moved location of one error rendering block to be above form field

parent ce2bd3a7
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<hr /> <hr />
{% if my_form.non_field_errors %} {% if my_form.non_field_errors %}
<ul class="text-center"> <ul class="text-center">
{% for error in form.non_field_errors %} {% for error in my_form.non_field_errors %}
<li class="text-danger"><i class="fa fa-exclamation-triangle fa-fw"></i> {{ error }}</li> <li class="text-danger"><i class="fa fa-exclamation-triangle fa-fw"></i> {{ error }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
...@@ -235,13 +235,8 @@ ...@@ -235,13 +235,8 @@
</div> </div>
</div> </div>
<hr /> <hr />
{% if form.major.errors %} {% if my_form.major.errors %}
{% for error in form.major.errors %} {% for error in my_form.major.errors %}
<p class="text-danger"><i class="fa fa-exclamation-triangle fa-fw"></i> {{ error }}</p>
{% endfor %}
{% endif %}
{% if form.graduating_year.errors %}
{% for error in form.graduating_year.errors %}
<p class="text-danger"><i class="fa fa-exclamation-triangle fa-fw"></i> {{ error }}</p> <p class="text-danger"><i class="fa fa-exclamation-triangle fa-fw"></i> {{ error }}</p>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
...@@ -253,6 +248,11 @@ ...@@ -253,6 +248,11 @@
{{ my_form.major }} {{ my_form.major }}
</div> </div>
</div> </div>
{% if form.graduating_year.errors %}
{% for error in form.graduating_year.errors %}
<p class="text-danger"><i class="fa fa-exclamation-triangle fa-fw"></i> {{ error }}</p>
{% endfor %}
{% endif %}
<div class="form-group"> <div class="form-group">
<div class="col-lg-3 col-md-3 col-sm-4 col-xs-6"> <div class="col-lg-3 col-md-3 col-sm-4 col-xs-6">
<label for="{{ my_form.graduating_year.id_for_label }}"> <label for="{{ my_form.graduating_year.id_for_label }}">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment