{% extends 'base.html.twig' %} {% block title %} {% trans %}COSAP - Soldes de Congés{% endtrans %} {% endblock %} {% block body %} {{ parent() }}
{% trans %}Soldes de Congés{% endtrans %} {{ users.getTotalItemCount }}
{% if app.user and is_granted('ROLE_EXPORTER_SOLDE_CONGE') and users|length %} {% endif %}
{% if not users|length %} {% else %}
{% if app.user and (is_granted('ROLE_AFFICHER_SOLDE_CONGE') or is_granted('ROLE_AFFICHER_SOLDE_CONGE_DETAILLEE')) %} {% endif %} {% for user in users %} {% if app.user and (is_granted('ROLE_AFFICHER_SOLDE_CONGE') or is_granted('ROLE_AFFICHER_SOLDE_CONGE_DETAILLEE')) %} {% endif %} {% endfor %}
{% trans %}Nom et Prénom{% endtrans %} {% trans %}Genre{% endtrans %} {% trans %}Date de naissance{% endtrans %} {% trans %}Date d'engagement{% endtrans %} {% trans %}Ancienneté{% endtrans %} {% trans %}Solde de congés{% endtrans %} {% trans %}Heures d'autorisation cumulées{% endtrans %} {% trans %}Solde réelle{% endtrans %}{% trans %}Actions{% endtrans %}
{{ user.genreValue }} {{ user.dateNaissance|date('d-m-Y') }} {{ user.dateEngagement|date('d-m-Y') }} {% if user.seniority is not null %} {{ user.seniority }} {% if user.seniority|abs <= 1 %} an {% else %} ans {% endif %} {% endif %} {% if user.solde >= 0 %} {{ user.solde }} {% if user.solde|abs <= 1 %} jour {% else %} jours {% endif %} {% else %} {{ user.solde }} {% if user.solde|abs <= 1 %} jour {% else %} jours {% endif %} {% endif %} {{ user.soldeAutorisation }} {% if user.soldeAutorisation <= 1 %} heure {% else %} heures {% endif %} {% if user.realSolde == 0 %} 0 jour {% elseif user.realSolde and user.realSolde >= 0 %} {{ user.realSolde }} {% if user.realSolde|abs <= 1 %} jour {% else %} jours {% endif %} {% elseif user.realSolde and user.realSolde < 0 %} {{ user.realSolde }} {% if user.realSolde|abs <= 1 %} jour {% else %} jours {% endif %} {% else %} Non défini {% endif %} {% if app.user and is_granted('ROLE_AFFICHER_SOLDE_CONGE') %} {{ include('ParametrageConge/soldeConge/modals/show_info_solde.html.twig') }} {% endif %} {% if app.user and is_granted('ROLE_AFFICHER_SOLDE_CONGE_DETAILLEE') %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}