Add basic support for "quickie" search

a master view can "support" quickie search, which means it will setup a route
suitable for the quickie search form action.  and/or it can "expose" quickie
search which means it will actually show a quickie search form on its views
This commit is contained in:
Lance Edgar 2019-05-06 18:34:42 -05:00
parent 35158204c5
commit a3ca6abb7a
3 changed files with 47 additions and 0 deletions

View file

@ -84,6 +84,15 @@
</div>
% endif
% if quickie is not Undefined and quickie and request.has_perm(quickie.perm):
<div class="after-feedback">
${h.form(quickie.url, name="quickie", method="get")}
${h.text('entry', placeholder=quickie.placeholder, autocomplete='off')}
<button type="submit" id="submit-quickie">Lookup</button>
${h.end_form()}
</div>
% endif
</div><!-- global -->
<div class="page">