{% extends 'Admin/base.html.twig' %} {% block title %} OceanExpert | Events {% endblock %} {% block stylesheets %} {% endblock %} {% block body %} {% include('navbarlogin.html.twig') %}
{% block sidebar %} {% include('Event/sidebar.html.twig') %} {% endblock %}
{% block content %}

Events Calendar

( {{ date(data.date.start) |date('d F Y') }} - {{ date(data.date.end) |date('d F Y') }} )

{% if is_granted('ROLE_USER') %} {% endif %}
{% if data.events | length > 0 %} {% for monthYear, events in data.events %}

{{ monthYear }}

    {% for event in events %}
  • {% if event.startOn|date('Y') != event.endOn|date('Y') %} {{ event.startOn|date('d M Y') }} - {{ event.endOn|date('d M Y') }}
    {% else %} {{ event.startOn|date('d M') }} - {{ event.endOn|date('d M') }}
    {% endif %}
    {% if event.status == 0 %} {% set class = "text-inactive" %} {% set title = "Inactive Event" %} {% elseif event.status == 1 %} {% set class = "" %} {% set title = "" %} {% elseif event.status == 2 %} {% set class = "text-danger" %} {% set title = "Deleted Event" %} {% elseif event.status == 3 %} {% set class = "text-danger" %} {% set title = "Deleted Event" %} {% endif %} {% if event.shorttitle is defined and event.shorttitle | trim | length > 0 %} {{ event.shorttitle }} : {% endif %} {{ event.title|length > 40 ? event.title|slice(0, 40) ~ '...' : event.title }}
    {{ data.eventTypes.list[event.idEventtype] }} {% if event.isOpen == 1 %} - Open attendance {% elseif event.isOpen == 2 %} - Attendance by invitation {% elseif event.isOpen ==3 %} - Attendance by application {% endif %}
    {% if event.city is defined and event.city | trim | length >0 %} {{ event.city }}, {% endif %} {% if event.country is defined and event.country | trim | length >0 %} {{ event.country }} {% endif %}
    {% if event.participants is defined and event.participants > 0 %}
    {{ event.participants }}
    {% endif %} {% if event.documents is defined and event.documents > 0 %}
    {{ event.documents }}
    {% endif %} {# #647 if is_granted('ROLE_ADMIN') #} {# restored ROLE_ADMIN instead of ROLE_USER to avoid #689 #} {% if is_granted('ROLE_ADMIN') %} {% endif %}
  • {% endfor %}
{% endfor %} {% else %}
There are no events in the period {{ date(data.date.start) |date('d F Y') }} - {{ date(data.date.end) |date('d F Y') }}.
{% if data.eventTypes.active|length %} for the type(s): {% for activeTypeId in data.eventTypes.active %} {% if activeTypeId != 0 %} {{ data.eventTypes.list[activeTypeId] }} {% elseif data.eventTypes.active|length == 1 %} all event types {% endif %} {% endfor %}
{% endif %} {% if data.groups.active|length %} for the group(s): {% for activeGroupId in data.groups.active %} {% if activeGroupId != 0 %} {{ data.groups.list[activeGroupId] }}  {% elseif data.groups.active|length == 1 %} all groups {% endif %} {% endfor %}
{% endif %} {% if data.eventLabels.active|length %} for the label(s): {% for activeLabelId in data.eventLabels.active %} {% if activeLabelId != 0 %} {{ data.eventLabels.list[activeLabelId]['type'] }}  {% elseif data.eventLabels.active|length == 1 %} all labels {% endif %} {% endfor %}
{% endif %} To view other events, click on the corresponding year at the top of the page.
{% endif %}
{% endblock %}
{% include "footer.html.twig" %} {% endblock %}