{% extends ('base.html.twig') %} {% block body %} {{ parent() }} {{ include('ParametrageConge/detailsSoldeConge/tabs/trace_personnel.html.twig') }}
{% if action == "add" or action == "edit" %}
{% if action == "add" %} Nouvel enregistrement {% elseif action == "edit" %} Modifier enregistrement {% endif %}

{{ include('ParametrageConge/detailsSoldeConge/tabs/action_solde_annuel.html.twig') }}
{% endif %}
Soldes de congés annuels {{ user.solde }} {% if user.solde|abs <= 1 %} jour {% else %} jours {% endif %}
{% if not user.soldeDetaileds|length %} {% else %}
{% if app.user and is_granted('ROLE_CONFIG_SOLDE_CONGE') %} {% endif %} {% for solde in user.soldeDetaileds %} {% if app.user and is_granted('ROLE_CONFIG_SOLDE_CONGE') %} {% endif %} {% endfor %}
Année SoldeActions
{{ solde.annee|date('Y') }} {% if solde.solde is not null %} {% if solde.solde >= 0 %} {{ solde.solde }} {% if solde.solde|abs <= 1 %} jour {% else %} jours {% endif %} {% else %} {{ solde.solde }} {% if solde.solde|abs <= 1 %} jour {% else %} jours {% endif %} {% endif %} {% endif %} {% if action == "" %} {% endif %}
{% endif %}
{% if action == "edit_circonstance" %}
Modifier enregistrement

{{ include('ParametrageConge/detailsSoldeConge/tabs/action_solde_circonstance.html.twig') }}
{% endif %}
Soldes de congés de circonstance {{ user.soldeCirconstances|length }}
{% if not user.soldeCirconstances|length %} {% else %}
{% if app.user and (is_granted('ROLE_CONFIG_SOLDE_CONGE') or is_granted('ROLE_AFFICHER_SOLDE_CONGE_DETAILLEE')) %} {% endif %} {% for solde in user.soldeCirconstances %} {% if solde.circonstance.statut == 1 %} {% if ((user.genre == 'G01' and (solde.circonstance.genre == 'G01' or solde.circonstance.genre == 'G02')) or (user.genre == 'G02' and (solde.circonstance.genre == 'G01' or solde.circonstance.genre == 'G03'))) %} {% if app.user and (is_granted('ROLE_CONFIG_SOLDE_CONGE') or is_granted('ROLE_AFFICHER_SOLDE_CONGE_DETAILLEE')) %} {% endif %} {% endif %} {% endif %} {% endfor %}
Circonstance SoldeActions
{{ solde.circonstance.label }} {% if solde.solde is not null %} {{ solde.solde }} {{ solde.circonstance.valueUnitySolde }} {% endif %} {% if app.user and is_granted('ROLE_AFFICHER_SOLDE_CONGE_DETAILLEE') %} {{ solde.tracabilitySoldeCirconstances|length}} {% endif %} {% if app.user and is_granted('ROLE_CONFIG_SOLDE_CONGE') %} {% endif %} {% include('ParametrageConge/detailsSoldeConge/modals/tracability_solde_circonstance.html.twig') %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% include('ParametrageConge/detailsSoldeConge/ajax/delete.html.twig') %} {% include('ParametrageConge/detailsSoldeConge/ajax/check_input_year.html.twig') %} {% include('ParametrageConge/detailsSoldeConge/modals/tracability_solde_annuel.html.twig') %} {% endblock %}