Skip to content

Commit

Permalink
Moved the HTML error list from uni_form.html to errors.html and inclu…
Browse files Browse the repository at this point in the history
…de it in uni_form.html

Signed-off-by: Daniel Greenfeld <pydanny@gmail.com>
  • Loading branch information
root authored and pydanny committed Aug 4, 2009
1 parent b07233e commit 8a1bac9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions uni_form/templates/uni_form/errors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% if form.non_field_errors %}
<div id="errorMsg">
<ul>
{{ form.non_field_errors|unordered_list }}
</ul>
</div>
{% endif %}
8 changes: 1 addition & 7 deletions uni_form/templates/uni_form/uni_form.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{% if form.non_field_errors %}
<div id="errorMsg">
<ul>
{{ form.non_field_errors|unordered_list }}
</ul>
</div>
{% endif %}
{% include "uni_form/errors.html" %}
{% for field in form %}
{% include "uni_form/field.html" %}
{% endfor %}
Expand Down

0 comments on commit 8a1bac9

Please sign in to comment.