Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.3KB

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