{% extends "TdbBaseBundle::layout.html.twig" %} {% from "TdbBaseBundle::macros.html.twig" import userChip %} {% block title %}Notes de frais{% endblock %} {% block body %} {% if is_granted('ROLE_TRESORERIE_USER') %}

Notes de frais en attente de validation

{% if allPendingExpenseNotes %} {% for expenseNote in allPendingExpenseNotes %} {% endfor %}
Membre Date Titre Montant Tickets de caisse/Facture Actions
{% if expenseNote.membre != null %} {{ userChip(expenseNote.membre, 30) }} {% else %} Utilisateur supprimé {% endif %} {{ expenseNote.expenseDate | date('d/m/Y') }} {{ expenseNote.name }} {{ expenseNote.amount }} € {% for proof in expenseNote.proofs %} {{ proof.name }} {% endfor %} {% if is_granted('edit', expenseNote) %} {% endif %} {% if is_granted('decide', expenseNote) %} {% endif %} {% if is_granted('delete', expenseNote) %} {% endif %}
{% else %}

Pas de note de frais en attente de validation

{% endif %}
{% endif %}

Mes Notes de frais

{{ form_start(filterForm, {'attr': {'class': 'form-inline'}}) }}
{{ form_widget(filterForm.status, {'attr': {'class': 'icheck'}}) }} {{ form_errors(filterForm.status) }}
{{ form_end(filterForm) }}
{% for expenseNote in currentUserExpenseNotes %}

{{ expenseNote.name }}

{% for proof in expenseNote.proofs %} {% endfor %}
Membre {% if expenseNote.membre != null %} {{ userChip(expenseNote.membre, 30) }} {% else %} Utilisateur supprimé {% endif %}
Date {{ expenseNote.expenseDate | date('d/m/Y') }}
Montant {{ expenseNote.amount }} €
Statut {{ expenseNote.readableStatus }}
Tickets de caisse/Factures {{ proof.name }}

{{ expenseNote.comments }}

{% if is_granted('edit', expenseNote) %} Modifier {% endif %} {% if is_granted('decide', expenseNote) %} Accepter Refuser {% endif %} {% if is_granted('delete', expenseNote) %} Supprimer {% endif %}
{% if loop.index is divisible by(3) %}
{% endif %} {% endfor %}
{% endblock %}