Always show flash-error-style message when form has errors

probably will regret this and change it back soon, we'll see
This commit is contained in:
Lance Edgar 2018-02-22 11:13:29 -06:00
parent ff7341d272
commit e1a9da0716

View file

@ -6,9 +6,18 @@ ${h.form(form.action_url, id=dform.formid, method='post', enctype='multipart/for
${h.csrf_token(request)} ${h.csrf_token(request)}
% endif % endif
## % for error in fieldset.errors.get(None, []): % if dform.error:
## <div class="fieldset-error">${error}</div> <div class="error-messages">
## % endfor <div class="ui-state-error ui-corner-all">
<span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
Please see errors below.
</div>
<div class="ui-state-error ui-corner-all">
<span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
${dform.error}
</div>
</div>
% endif
% for field in form.fields: % for field in form.fields: