+ <!-- Sort -->
+ {% if sortForm is not null %}
+ <div id="sort" class="side-nav right-aligned">
+ <form action="{{ path('all') }}">
+ <h4 class="center">{{ 'entry.sort.title'|trans }}</h4>
+
+ <div class="row">
+ <div class="input-field col s6 with-checkbox">
+ {{ form_widget(sortForm.sortType) }}
+ {{ form_label(sortForm.sortType) }}
+ </div>
+
+ <div class="col s12">
+ <div class="switch">
+ <label>Ascendant
+ {{ form_widget(sortForm.sortOrder) }} <span class="lever"></span>
+ Descendant
+ </label>
+ </div>
+ </div>
+
+ <div class="col s12">
+ <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>
+ </div>
+ </div>
+ </form>
+ </div>
+ {% endif %}
+