]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/searchbox.tpl
DE translation update
[friendica.git] / view / theme / frio / templates / searchbox.tpl
index 95673698b4c022b814fef94e2fd604d440b3c12a..5c80f9b6a34b0ddf206139f33da2cf29c666a850 100644 (file)
@@ -11,7 +11,7 @@ Some parts of this template will be moved by js to other places (see theme.js) -
 
                                        <div class="form-group form-group-search">
                                                <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}}" />
-                                               <button id="search-submit" class="btn btn-default btn-sm form-button-search" type="submit" name="submit" value="{{$search_label}}">{{$search_label}}</button>
+                                               <button id="search-submit" class="btn btn-default btn-sm form-button-search" type="submit">{{$search_label}}</button>
                                        </div>
 
                                        <div class="col-md-4"></div>
@@ -47,8 +47,15 @@ Some parts of this template will be moved by js to other places (see theme.js) -
                </form>
        </div>
        {{* This form is inserted as experiment to move the search-save button to the second navbar with js *}}
+       {{if $savedsearch}}
        <form id="search-save-form" action="{{$action_url}}" method="get" >
                <input type="hidden" name="search" value="{{$s}}" />
-               <button class="btn btn-primary btn-sm btn-main pull-right" type="submit" name="save" id="search-save" value="{{$save_label}}"><i class="fa fa-floppy-o fa-2x" aria-hidden="true"></i></button>
+               {{* In dependence of the search content we show different buttons *}}
+               {{if $mode == "tag"}}
+               <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>
+               {{else}}
+               <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>
+               {{/if}}
        </form>
+       {{/if}}
 </div>