1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-01 19:45:24 +02:00
documize/gui/app/templates/components/search/search-view.hbs
McMatts c49707d160 Make popups close on doble-click + quote @size attrs
1. Popups should close on subsequent trigger clicks
2. @attrs should be quoted as oper linter warnings.
2019-05-28 10:59:48 +01:00

16 lines
596 B
Handlebars

<div class="view-search">
<form onsubmit={{action "onSearch"}} class="form-inline">
<div class="form-group">
{{focus-input type="text" value=keywords class="form-control mr-3 search-box" placeholder="keywords, tags"}}
</div>
<div class="form-group">
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Search onClick=(action "onSearch")}}
</div>
</form>
{{#if validSearch}}
{{search/search-results results=results keywords=keywords}}
{{else}}
<Ui::UiSpacer @size="300" />
<p class="color-red-700">Your search query is too short</p>
{{/if}}
</div>