Add 'warning' flash messages to old jquery base template

This commit is contained in:
Lance Edgar 2022-08-27 23:36:09 -05:00
parent 187fea6d1b
commit 6ea8a02b57

View file

@ -138,6 +138,17 @@
</div> </div>
% endif % endif
% if request.session.peek_flash('warning'):
<div class="error-messages">
% for msg in request.session.pop_flash('warning'):
<div class="ui-state-error ui-corner-all">
<span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
${msg}
</div>
% endfor
</div>
% endif
% if request.session.peek_flash(): % if request.session.peek_flash():
<div class="flash-messages"> <div class="flash-messages">
% for msg in request.session.pop_flash(): % for msg in request.session.pop_flash():