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:
parent
ff7341d272
commit
e1a9da0716
|
@ -6,9 +6,18 @@ ${h.form(form.action_url, id=dform.formid, method='post', enctype='multipart/for
|
|||
${h.csrf_token(request)}
|
||||
% endif
|
||||
|
||||
## % for error in fieldset.errors.get(None, []):
|
||||
## <div class="fieldset-error">${error}</div>
|
||||
## % endfor
|
||||
% if dform.error:
|
||||
<div class="error-messages">
|
||||
<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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue