{% extends 'base.html.twig' %} {% block title %} {% trans %}COSAP - Jours fériés{% endtrans %} {% endblock %} {% block body %} {{ parent() }} {% if action == "edit" or action == "add" %}
{% if action == "add" %} {% trans %}Nouvel{% endtrans %} {% else %} {% trans %}Modifier{% endtrans %} {% endif %} {% trans %}Enregistrement{% endtrans %}
{{ include('HoraireAdministratif/jourFeries/action.html.twig') }}
{% endif %}
{% trans %}Jours Fériés{% endtrans %} {{ joursFeries.getTotalItemCount }}
{% if app.user and is_granted('ROLE_AJOUTER_JOUR_FERIES') %} {% trans %}nouvel enregistrement{% endtrans %} {% endif %}
{% if not joursFeries|length %} {% else %}
{% if app.user and (is_granted('ROLE_MODIFIER_JOUR_FERIES') or is_granted('ROLE_SUPPRIMER_JOUR_FERIES')) %} {% endif %} {% for jourFeries in joursFeries %} {% if app.user and (is_granted('ROLE_MODIFIER_JOUR_FERIES') or is_granted('ROLE_SUPPRIMER_JOUR_FERIES')) %} {% endif %} {% endfor %}
{% trans %}Label{% endtrans %} {% trans %}Type{% endtrans %} {% trans %}Période{% endtrans %}{% trans %}Actions{% endtrans %}
{{ jourFeries.label }} {% if jourFeries.type is not null %}{{ jourFeries.typeValue }}{% endif %} {% if jourFeries.dateDebut == jourFeries.dateFin %} {{ jourFeries.dateDebut|localizeddate('none', 'none', null, null, 'd MMMM') }} {% else %} {{ jourFeries.dateDebut|localizeddate('none', 'none', null, null, 'd MMMM') }} - {{ jourFeries.dateFin|localizeddate('none', 'none', null, null, 'd MMMM') }} {% endif %} {% if app.user and is_granted('ROLE_MODIFIER_JOUR_FERIES') %} {% endif %} {% if app.user and is_granted('ROLE_SUPPRIMER_JOUR_FERIES') %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% include('HoraireAdministratif/jourFeries/ajax/delete.html.twig') %} {% include('HoraireAdministratif/jourFeries/ajax/checkDate.html.twig') %} {% endblock %}