Add support for "quickie" search in falafel theme
This commit is contained in:
parent
789512de55
commit
73eec8f112
|
@ -129,6 +129,29 @@
|
|||
</div><!-- level-left -->
|
||||
<div class="level-right">
|
||||
|
||||
## Quickie Lookup
|
||||
% if quickie is not Undefined and quickie and request.has_perm(quickie.perm):
|
||||
<div class="level-item">
|
||||
${h.form(quickie.url, method="get")}
|
||||
<div class="level">
|
||||
<div class="level-right">
|
||||
<div class="level-item">
|
||||
${h.text('entry', placeholder=quickie.placeholder, autocomplete='off')}
|
||||
</div>
|
||||
<div class="level-item">
|
||||
<button type="submit" class="button is-primary">
|
||||
<span class="icon is-small">
|
||||
<i class="fas fa-search"></i>
|
||||
</span>
|
||||
<span>Lookup</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
${h.end_form()}
|
||||
</div>
|
||||
% endif
|
||||
|
||||
## Theme Picker
|
||||
% if expose_theme_picker and request.has_perm('common.change_app_theme'):
|
||||
<div class="level-item">
|
||||
|
|
Loading…
Reference in a new issue