scribeengine/scribeengine/templates/errors.mako

17 lines
480 B
Plaintext
Raw Normal View History

2010-01-15 20:55:30 +00:00
% if c.form_errors and len(c.form_errors) > 0:
<div id="form-errors">
<p>The following errors occurred:</p>
<ul>
% for field, message in c.form_errors.iteritems():
<li>${message}</li>
% endfor
</ul>
</div>
% else:
<div id="form-errors" class="hidden">
2010-01-15 20:55:30 +00:00
<p>The following errors occurred:</p>
<ul>
</ul>
</div>
% endif