ui/twig/common/actionbar/default.html.twig line 1

Open in your IDE?
  1. {% set search = _args.search %}
  2. {% if search.active() %}
  3.     <div class="alert alert-info">
  4.         <p>
  5.             This view is currently filtered/sorted and may not reflect all data.
  6.             <a href="#" data-campussuite-search-clear><strong>Clear</strong></a> the filters to show the default dashboard view.
  7.         </p>
  8.     </div>
  9. {% endif %}
  10. <div class="action-bar">
  11.     <div class="action-filters">
  12.         {% block checks %}{% endblock %}
  13.         {% set show = false %}
  14.         {% for filter in search.filters %}
  15.             {% if filter.option('hidden', false) is same as(false) %}
  16.                 {% set show = true %}
  17.             {% endif %}
  18.         {% endfor %}
  19.         {% if show %}
  20.             <div class="dropdown action-item">
  21.                 <a class="btn btn-filter dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
  22.                     <span>Filter</span>
  23.                     <i class="fa fa-chevron-down"></i>
  24.                 </a>
  25.                 <div class="dropdown-menu" style="width: 360px">
  26.                     <form class="dropdown-form">
  27.                         {% for filter in search.filters %}
  28.                             {% if filter.option('hidden', false) is not same as(true) %}
  29.                                 <div class="form-group col-sm-12">
  30.                                     <label>{{ filter.option('label', filter.field) }}</label>
  31.                                     {% include filter.view with {
  32.                                         term: filter
  33.                                     } %}
  34.                                 </div>
  35.                             {% endif %}
  36.                         {% endfor %}
  37.                         <div class="form-group form-actions col-sm-12">
  38.                             <a class="btn btn-link" href="#" data-campussuite-search-submit>APPLY</a>
  39.                             <a class="btn btn-link" href="#" data-campussuite-search-clear>CLEAR</a>
  40.                         </div>
  41.                     </form>
  42.                 </div>
  43.             </div>
  44.         {% endif %}
  45.         {% if search.sorts|length > 0 %}
  46.             {% include search.sort(0).view with {
  47.                 term: search.sort(0)
  48.             } %}
  49.         {% endif %}
  50.         {% block extras %}{% endblock %}
  51.     </div>
  52.     {% if block('searchbox') is not empty %}
  53.         <div class="action-search">
  54.             {% block searchbox %}{% endblock %}
  55.         </div>
  56.     {% endif %}
  57. </div>