Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
3cf4f41f
Commit
3cf4f41f
authored
Oct 28, 2016
by
Daniel W Bond
Browse files
moved location of one error rendering block to be above form field
parent
ce2bd3a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/templates/update_student.html
View file @
3cf4f41f
...
...
@@ -157,7 +157,7 @@
<hr
/>
{% if my_form.non_field_errors %}
<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>
{% endfor %}
</ul>
...
...
@@ -235,13 +235,8 @@
</div>
</div>
<hr
/>
{% if form.major.errors %}
{% for error in 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 %}
{% if my_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 %}
...
...
@@ -253,6 +248,11 @@
{{ my_form.major }}
</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=
"col-lg-3 col-md-3 col-sm-4 col-xs-6"
>
<label
for=
"{{ my_form.graduating_year.id_for_label }}"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment