]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/searchbox.tpl
Frio: add input for login backround image in admin settings
[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="{{$action_url}}" 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="search" 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 $savedsearch}}
21                                                 <button class="btn btn-primary btn-small pull-right" type="submit" name="save" value="{{$save_label}}">{{$save_label}}</button>
22                                                 {{/if}}
23
24                                                 {{* The select popup menu to select what kind of results the user would like to search for *}}
25                                                 {{if $searchoption}}
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                                                                         <option value="fulltext">{{$searchoption.0}}</option>
30                                                                         <option value="tags">{{$searchoption.1}}</option>
31                                                                         <option value="contacts">{{$searchoption.2}}</option>
32                                                                         {{if $searchoption.3}}<option value="forums">{{$searchoption.3}}</option>{{/if}}
33                                                                 </select>
34
35                                                         </div>
36                                                 </div>
37                                                 {{/if}}
38                                                 
39                                         </div>
40                                 </div>
41                                 <div class="col-md-2"></div>
42
43                                 <div class="clearfix"></div>
44
45                         </div>
46                         
47                 </form>
48         </div>
49         {{* This form is inserted as experiment to move the search-save button to the second navbar with js *}}
50         {{if $savedsearch}}
51         <form id="search-save-form" action="{{$action_url}}" method="get" >
52                 <input type="hidden" name="search" value="{{$s}}" />
53                 {{* In dependence of the search content we show different buttons *}}
54                 {{if $mode == "tag"}}
55                 <button class="btn btn-primary btn-sm btn-main pull-right" type="submit" name="save" id="search-save" title="{{$save_label}}" value="{{$save_label}}" data-toggle="tooltip"><i class="fa fa-plus fa-2x" aria-hidden="true"></i></button>
56                 {{else}}
57                 <button class="btn btn-primary btn-sm btn-main pull-right" type="submit" name="save" id="search-save" title="{{$save_label}}" value="{{$save_label}}" data-toggle="tooltip"><i class="fa fa-floppy-o fa-2x" aria-hidden="true"></i></button>
58                 {{/if}}
59         </form>
60         {{/if}}
61 </div>