{% extends "Global/layout.html.twig" %} {% if is_granted('ROLE_ADMINISTRATOR') %} {% set pagetitle = 'Manage events' | trans %} {% elseif is_granted('ROLE_ORGANIZER') %} {% set pagetitle = 'My events' | trans %} {% endif %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{"current":(pagetitle)}] %} {% include "Global/navigation.html.twig" with navigation %} {{ "%resultsCount% result(s) found"|trans({'%resultsCount%': events.getTotalItemCount}) }} {{ "Sort by"|trans }} {{ knp_pagination_sortable(events, "Creation date"|trans ~ ' (' ~ "desc"|trans ~ ')', "e.createdAt", {"direction": "desc", "criteria": "e.createdAt"}) }} {{ knp_pagination_sortable(events, "Creation date"|trans ~ ' (' ~ "asc"|trans ~ ')', "e.createdAt", {"direction": "asc", "criteria": "e.createdAt"}) }} {{ knp_pagination_sortable(events, "Popularity"|trans ~ ' (' ~ "desc"|trans ~ ')', "e.views", {"direction": "desc", "criteria": "e.views"}) }} {{ knp_pagination_sortable(events, "Popularity"|trans ~ ' (' ~ "asc"|trans ~ ')', "e.views", {"direction": "asc", "criteria": "e.views"}) }} {% if is_granted('ROLE_ORGANIZER') %} {{'Add a new event' | trans}} {% endif %} {{ "Event"|trans }} {{ "Category"|trans }} {{ "All"|trans }} {% for category in services.getCategories({}).getQuery().getResult() %} {{ category.name }} {% endfor %} {{ "Venue"|trans }} {{ "All"|trans }} {% for venue in services.getVenues({}).getQuery().getResult() %} {{ venue.name }} {% endfor %} {{ "All"|trans }} {{ "Elapsed only"|trans }} {{ "Not elapsed only"|trans }} {{ "All"|trans }} {{ "Published only"|trans }} {{ "Draft only"|trans }} {% if events.getTotalItemCount > 0 %} {% include "Dashboard/Shared/Event/manage-events-table.html.twig" with {events: events} %} {{ knp_pagination_render(events, null, {}, {'align': 'center'}) }} {% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No events found'|trans), icon: "fas fa-exclamation-circle" } %} {% endif %} {% endblock %} {% block javascripts %} {% endblock %}