Expose quickie lookup for butterball theme
This commit is contained in:
parent
9a841ba5e2
commit
b98d651144
|
@ -736,31 +736,20 @@
|
|||
|
||||
<div style="display: flex; gap: 0.5rem;">
|
||||
|
||||
## ## 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">
|
||||
## <b-input name="entry"
|
||||
## placeholder="${quickie.placeholder}"
|
||||
## autocomplete="off">
|
||||
## </b-input>
|
||||
## </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
|
||||
## Quickie Lookup
|
||||
% if quickie is not Undefined and quickie and request.has_perm(quickie.perm):
|
||||
${h.form(quickie.url, method='get', style='display: flex; gap: 0.5rem; margin-right: 1rem;')}
|
||||
<b-input name="entry"
|
||||
placeholder="${quickie.placeholder}"
|
||||
autocomplete="off">
|
||||
</b-input>
|
||||
<o-button variant="primary"
|
||||
native-type="submit"
|
||||
icon-left="search">
|
||||
Lookup
|
||||
</o-button>
|
||||
${h.end_form()}
|
||||
% endif
|
||||
|
||||
% if master and master.configurable and master.has_perm('configure'):
|
||||
% if not request.matched_route.name.endswith('.configure'):
|
||||
|
|
Loading…
Reference in a new issue