]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/searchbox.tpl
Fix review points
[friendica.git] / view / theme / frio / templates / searchbox.tpl
1
2 {{* important notes: The frio theme hides under certain conditions some parts of the templates through css.
3 Some parts of this template will be moved by js to other places (see theme.js) - E.g. the save-search button *}}
4
5 <div id="{{$id}}" {{* class="input-group" *}}>
6         <div id="search-wrapper">
7                 <form action="search" method="get">
8                         <div class="row">
9                                 <div class="col-md-2"></div>
10                                 <div class="col-md-8 ">
11
12                                         <div class="form-group form-group-search">
13                                                 <input type="text" name="q" id="search-text" class="search-input form-control form-search" data-toggle="tooltip" title="{{$search_hint}}" placeholder="{{$search_label}}" value="{{$s}}" />
14                                                 <button id="search-submit" class="btn btn-default btn-sm form-button-search" type="submit">{{$search_label}}</button>
15                                         </div>
16
17                                         <div class="col-md-4"></div>
18                                         <div class="col-md-8">
19                                                 {{* The button to save searches *}}
20                                                 {{if $s}}
21                                                 <a href="search/saved/add?term={{$q}}&amp;return_url={{$return_url}}" class="btn btn-primary btn-small pull-right">{{$save_label}}</a>
22                                                 {{/if}}
23
24                                                 {{* The select popup menu to select what kind of results the user would like to search for *}}
25                                                 {{if $search_options}}
26                                                 <div class="col-md-6 pull-right">
27                                                         <div class="form-group field select">
28                                                                 <select name="search-option" id="search-options" class="form-control form-control-sm">
29                                 {{foreach $search_options as $value => $label}}
30                                                                         <option value="{{$value}}">{{$label}}</option>
31                                 {{/foreach}}
32                                                                 </select>
33                                                         </div>
34                                                 </div>
35                                                 {{/if}}
36                                                 
37                                         </div>
38                                 </div>
39                                 <div class="col-md-2"></div>
40
41                                 <div class="clearfix"></div>
42
43                         </div>
44                         
45                 </form>
46         </div>
47
48 {{if $s}}
49         <a href="search/saved/add?term={{$q}}&amp;return_url={{$return_url}}" class="btn btn-sm btn-primary pull-right" id="search-save" title="{{$save_label}}" aria-label="{{$save_label}}" value="{{$save_label}}" data-toggle="tooltip">
50         {{if $mode == "tag"}}
51                 <i class="fa fa-plus fa-2x" aria-hidden="true"></i>
52         {{else}}
53                 <i class="fa fa-floppy-o fa-2x" aria-hidden="true"></i>
54         {{/if}}
55                 <span class="sr-only">{{$save_label}}</span>
56         </a>
57 {{/if}}
58 </div>