Use bulma-style notifications for bobcat theme
instead of previous one, which was sort of pseudo-jquery i guess?
This commit is contained in:
parent
1fa56aa683
commit
0ba1d65b11
|
@ -78,14 +78,14 @@
|
|||
</div>
|
||||
% endif
|
||||
|
||||
## Help
|
||||
## Help Button
|
||||
% if help_url is not Undefined and help_url:
|
||||
<div class="level-item">
|
||||
${h.link_to("Help", help_url, target='_blank', class_='button')}
|
||||
</div>
|
||||
% endif
|
||||
|
||||
## Feedback
|
||||
## Feedback Button
|
||||
<div class="level-item">
|
||||
<button type="button" id="feedback">Feedback</button>
|
||||
</div>
|
||||
|
@ -105,25 +105,21 @@
|
|||
<section>
|
||||
|
||||
% if request.session.peek_flash('error'):
|
||||
<div class="error-messages">
|
||||
% for error in request.session.pop_flash('error'):
|
||||
<div class="ui-state-error ui-corner-all">
|
||||
<span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
|
||||
${error}
|
||||
<div class="notification is-warning">
|
||||
<button class="delete"></button>
|
||||
${error|n}
|
||||
</div>
|
||||
% endfor
|
||||
</div>
|
||||
% endif
|
||||
|
||||
% if request.session.peek_flash():
|
||||
<div class="flash-messages">
|
||||
% for msg in request.session.pop_flash():
|
||||
<div class="ui-state-highlight ui-corner-all">
|
||||
<span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-info"></span>
|
||||
<div class="notification is-info">
|
||||
<button class="delete"></button>
|
||||
${msg|n}
|
||||
</div>
|
||||
% endfor
|
||||
</div>
|
||||
% endif
|
||||
|
||||
${self.body()}
|
||||
|
|
Loading…
Reference in a new issue