mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
24 lines
803 B
Smarty
24 lines
803 B
Smarty
{{*
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*}}
|
|
<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?term={{$q}}&return_url={{$return_url}}">{{$save_label}}</a>
|
|
{{/if}}
|
|
{{/strip}}
|
|
</form>
|
|
</div>
|