2024-08-24 18:23:27 +00:00
|
|
|
{{*
|
|
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*}}
|
2016-06-07 13:29:38 +00:00
|
|
|
|
2016-06-10 18:34:25 +00:00
|
|
|
{{* important notes: The frio theme hides under certain conditions some parts of the templates through css.
|
2016-06-14 08:41:14 +00:00
|
|
|
Some parts of this template will be moved by js to other places (see theme.js) - E.g. the save-search button *}}
|
2016-06-10 18:34:25 +00:00
|
|
|
|
2016-06-07 13:29:38 +00:00
|
|
|
<div id="{{$id}}" {{* class="input-group" *}}>
|
|
|
|
<div id="search-wrapper">
|
2019-10-07 18:19:50 +00:00
|
|
|
<form action="search" method="get">
|
2016-06-07 13:29:38 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-2"></div>
|
|
|
|
<div class="col-md-8 ">
|
|
|
|
|
|
|
|
<div class="form-group form-group-search">
|
2019-10-07 18:19:50 +00:00
|
|
|
<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}}" />
|
2016-12-10 20:25:40 +00:00
|
|
|
<button id="search-submit" class="btn btn-default btn-sm form-button-search" type="submit">{{$search_label}}</button>
|
2016-06-07 13:29:38 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4"></div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
{{* The button to save searches *}}
|
2019-10-07 18:19:50 +00:00
|
|
|
{{if $s}}
|
2019-10-13 12:39:41 +00:00
|
|
|
<a href="search/saved/add?term={{$q}}&return_url={{$return_url}}" class="btn btn-primary btn-small pull-right">{{$save_label}}</a>
|
2016-06-07 13:29:38 +00:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{* The select popup menu to select what kind of results the user would like to search for *}}
|
2019-10-07 18:19:50 +00:00
|
|
|
{{if $search_options}}
|
2016-06-07 13:29:38 +00:00
|
|
|
<div class="col-md-6 pull-right">
|
|
|
|
<div class="form-group field select">
|
|
|
|
<select name="search-option" id="search-options" class="form-control form-control-sm">
|
2019-10-07 18:19:50 +00:00
|
|
|
{{foreach $search_options as $value => $label}}
|
|
|
|
<option value="{{$value}}">{{$label}}</option>
|
|
|
|
{{/foreach}}
|
2016-06-07 13:29:38 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-2"></div>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-02-16 01:26:02 +00:00
|
|
|
|
2019-10-07 18:19:50 +00:00
|
|
|
{{if $s}}
|
2020-04-27 13:43:46 +00:00
|
|
|
<a href="search/saved/add?term={{$q}}&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">
|
2019-02-16 01:26:02 +00:00
|
|
|
{{if $mode == "tag"}}
|
2019-10-13 12:39:41 +00:00
|
|
|
<i class="fa fa-plus fa-2x" aria-hidden="true"></i>
|
2019-02-16 01:26:02 +00:00
|
|
|
{{else}}
|
2019-10-13 12:39:41 +00:00
|
|
|
<i class="fa fa-floppy-o fa-2x" aria-hidden="true"></i>
|
2018-01-02 14:48:11 +00:00
|
|
|
{{/if}}
|
2019-10-13 12:39:41 +00:00
|
|
|
<span class="sr-only">{{$save_label}}</span>
|
|
|
|
</a>
|
2019-02-16 01:26:02 +00:00
|
|
|
{{/if}}
|
2016-06-07 13:29:38 +00:00
|
|
|
</div>
|