1
1
Fork 0
friendica_2019-12_sharedHos.../view/templates/searchbox.tpl
Hypolite Petovan 22598fc7e8 Improve search box
- Use new saved search module
- Use dynamic search option loop
- Use "q" instead of "search" for search query string parameter
2019-10-07 14:27:46 -04:00

19 lines
622 B
Smarty

<div id="{{$id}}" class="input-group">
<form action="search" method="get">
{{strip}}
<input type="text" name="q" id="search-text" placeholder="{{$search_label}}" value="{{$s}}">
{{if $search_options}}
<select name="search-option" id="search-options">
{{foreach $search_options as $value => $label}}
<option value="{{$value}}">{{$label}}</option>
{{/foreach}}
</select>
{{/if}}
<input type="submit" name="submit" id="search-submit" value="{{$search_label}}"/>
{{if $s}}
<a href="search/saved/add/{{$q}}?return_url={{$return_url}}">{{$save_label}}</a>
{{/if}}
{{/strip}}
</form>
</div>