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>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
## Help
|
## Help Button
|
||||||
% if help_url is not Undefined and help_url:
|
% if help_url is not Undefined and help_url:
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
${h.link_to("Help", help_url, target='_blank', class_='button')}
|
${h.link_to("Help", help_url, target='_blank', class_='button')}
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
## Feedback
|
## Feedback Button
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<button type="button" id="feedback">Feedback</button>
|
<button type="button" id="feedback">Feedback</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -105,25 +105,21 @@
|
||||||
<section>
|
<section>
|
||||||
|
|
||||||
% if request.session.peek_flash('error'):
|
% if request.session.peek_flash('error'):
|
||||||
<div class="error-messages">
|
% for error in request.session.pop_flash('error'):
|
||||||
% for error in request.session.pop_flash('error'):
|
<div class="notification is-warning">
|
||||||
<div class="ui-state-error ui-corner-all">
|
<button class="delete"></button>
|
||||||
<span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
|
${error|n}
|
||||||
${error}
|
</div>
|
||||||
</div>
|
% endfor
|
||||||
% endfor
|
|
||||||
</div>
|
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
% if request.session.peek_flash():
|
% if request.session.peek_flash():
|
||||||
<div class="flash-messages">
|
% for msg in request.session.pop_flash():
|
||||||
% for msg in request.session.pop_flash():
|
<div class="notification is-info">
|
||||||
<div class="ui-state-highlight ui-corner-all">
|
<button class="delete"></button>
|
||||||
<span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-info"></span>
|
${msg|n}
|
||||||
${msg|n}
|
</div>
|
||||||
</div>
|
% endfor
|
||||||
% endfor
|
|
||||||
</div>
|
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
${self.body()}
|
${self.body()}
|
||||||
|
|
Loading…
Reference in a new issue