templates/_structure/menu-tabs-groups.html.twig line 1

Open in your IDE?
  1. <nav class="nav nav-tabs d-flex mb-0">
  2.     <a class="flex-fill text-center rounded-0 border-0 bg-grey-10 nav-link frivol-xhr {{ app.request.attributes.get('_route') == 'app_groups_index_top' ? 'active' : '' }}" href="{{ path('app_groups_index_top') }}">Beliebt</a>
  3.     <a class="flex-fill text-center rounded-0 border-0 bg-grey-10 nav-link frivol-xhr {{ app.request.attributes.get('_route') == 'app_groups_index_publicindex' ? 'active' : '' }}" href="{{ path('app_groups_index_publicindex') }}">Öffentlich</a>
  4.     {% if is_granted('ROLE_MEMBER') %}
  5.         <a class="flex-fill text-center rounded-0 border-0 bg-grey-10 nav-link frivol-xhr {{ app.request.attributes.get('_route') == 'app_groups_index_inviteonly' ? 'active' : '' }}" href="{{ path('app_groups_index_inviteonly') }}">Privat</a>
  6.         <a class="flex-fill text-center rounded-0 border-0 bg-grey-10 nav-link frivol-xhr {{ app.request.attributes.get('_route') == 'app_groups_index_mygroups' ? 'active' : '' }}" href="{{ path('app_groups_index_mygroups') }}">Meine Gruppen</a>
  7.     {% endif %}
  8. </nav>
  9. <div class="filter row align-items-center bg-grey-10 py-3 mx-0 mb-3">
  10.     <h6 class="col-3 mb-0">Filter:</h6>
  11.     <form class="col-9">
  12.         <label for="group-category-selector" class="d-none">
  13.             Kategorie
  14.         </label>
  15.         <select class="col-12 form-control custom-select js-onchange-reload-location" size="1" id="group-category-selector" required>
  16.             <option value="0" {{ app.request.attributes.get('category') == 0 ? 'selected="selected"' : '' }}>Kategorie: bitte wählen</option>
  17.             {% for value, label in getGroupCategories() %}
  18.                 <option value="{{ path(app.request.attributes.get('_route'), {category: value, page: 1}) }}" {{ app.request.attributes.get('category') == value ? 'selected="selected"' : '' }}>{{ label }}</option>
  19.             {% endfor %}
  20.         </select>
  21.     </form>
  22. </div>
  23. {% if is_granted('ROLE_MEMBER') %}
  24.     <a href="{{ path('app_groups_group_create') }}" class="btn btn-primary mb-3 frivol-xhr">
  25.         <i class="fas fa-plus-square"></i>
  26.         Gruppe erstellen
  27.     </a>
  28. {% endif %}