{% extends "AdmingeneratorGeneratorBundle::base_admin_assetic_less.html.twig" %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block title %} {{ parent() }}{% trans from "Admin" %}Liste des factures{% endtrans %} {% endblock %} {% block body %}{{ block('actionsmenu') }}
{% block list_scopes %} {% endblock %} {% block list_nbresults %}
{% set count = Factures.nbResults %} {% set start = ( Factures.currentPage - 1 ) * Factures.maxPerPage + 1 %} {% set end = start + Factures.maxPerPage - 1 %} {% set end = end > count ? count : end %} {% if Factures.haveToPaginate %} {% trans with {'%start%': start,'%end%': end,'%count%': count,} from "Admingenerator" %}list.display.range{% endtrans %} {% elseif count > 0 %} {% trans with {'%count%': count,} from "Admingenerator" %}list.display.all{% endtrans %} {% endif %}
{% endblock %} {% block form_batch_actions %} {% endblock %} {% block list_thead %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% if isMulti is defined and isMulti==1 %} {% endif %} {% if is_expr_granted('hasRole("ROLE_ADMIN") or hasRole("ROLE_COMPTABILITE")') %} {% endif %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% endblock %} {% block list_tbody %} {% if Factures|length > 0 %} {% for Facture in Factures %} {% set oddclass=(loop.index0 % 2 == 0 ?'ginaodd':'ginaeven') %}{% block list_row %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% if isMulti is defined and isMulti==1 %} {% endif %} {% if is_expr_granted('hasRole("ROLE_ADMIN") or hasRole("ROLE_COMPTABILITE")') %} {% endif %} {% endblock %} {% block list_object_actions %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% endblock %} {% endfor %} {% else %} {% endif %} {% if isSelect is defined and isSelect==1 %} {% endif %} {% endblock %}
{% if sortColumn == 'numfacture' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Numéro de facture'|trans({}, 'Admin') }} {% if sortColumn == 'numfacture' %} {% if sortColumn == 'numfacture' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'montant' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Cout net de taxe'|trans({}, 'Admin') }} {% if sortColumn == 'montant' %} {% if sortColumn == 'montant' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'datecreation' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Date de création de la facture'|trans({}, 'Admin') }} {% if sortColumn == 'datecreation' %} {% if sortColumn == 'datecreation' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'nbreheure' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Nombre d\'heures effectuées'|trans({}, 'Admin') }} {% if sortColumn == 'nbreheure' %} {% if sortColumn == 'nbreheure' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'idPrises' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Liée à la Prise en charge'|trans({}, 'Admin') }} {% if sortColumn == 'idPrises' %} {% if sortColumn == 'idPrises' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'idStagiaires' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Liée au Stagiaire'|trans({}, 'Admin') }} {% if sortColumn == 'idStagiaires' %} {% if sortColumn == 'idStagiaires' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'idCentres' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Liée au Centre'|trans({}, 'Admin') }} {% if sortColumn == 'idCentres' %} {% if sortColumn == 'idCentres' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'paid' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Facture payée'|trans({}, 'Admin') }} {% if sortColumn == 'paid' %} {% if sortColumn == 'paid' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% trans from "Admingenerator" %}list.header.actions{% endtrans %}
{% if (isSelect is not defined or isSelect!=1) and 'numfacture' in assocs|keys and Facture.numfacture is not null %} {% set idfield = attribute(Facture.numfacture,assocs['numfacture'].refid) %} {% endif %} {% block list_td_column_numfacture %}{{ Facture.numfacture }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'numfacture' in assocs|keys and Facture.numfacture is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'montant' in assocs|keys and Facture.montant is not null %} {% set idfield = attribute(Facture.montant,assocs['montant'].refid) %} {% endif %} {% block list_td_column_montant %}{{ Facture.montant }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'montant' in assocs|keys and Facture.montant is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'datecreation' in assocs|keys and Facture.datecreation is not null %} {% set idfield = attribute(Facture.datecreation,assocs['datecreation'].refid) %} {% endif %} {% block list_td_column_datecreation %}{% if Facture.datecreation %} {% set datetime_format = "d/m/Y" %} {{ Facture.datecreation|date(datetime_format) }}{% endif %}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'datecreation' in assocs|keys and Facture.datecreation is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'nbreheure' in assocs|keys and Facture.nbreheure is not null %} {% set idfield = attribute(Facture.nbreheure,assocs['nbreheure'].refid) %} {% endif %} {% block list_td_column_nbreheure %}{{ Facture.nbreheure }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'nbreheure' in assocs|keys and Facture.nbreheure is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'idPrises' in assocs|keys and Facture.idPrises is not null %} {% set idfield = attribute(Facture.idPrises,assocs['idPrises'].refid) %} {% endif %} {% block list_td_column_idPrises %}{{ Facture.idPrises }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'idPrises' in assocs|keys and Facture.idPrises is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'idStagiaires' in assocs|keys and Facture.idStagiaires is not null %} {% set idfield = attribute(Facture.idStagiaires,assocs['idStagiaires'].refid) %} {% endif %} {% block list_td_column_idStagiaires %}{{ Facture.idStagiaires }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'idStagiaires' in assocs|keys and Facture.idStagiaires is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'idCentres' in assocs|keys and Facture.idCentres is not null %} {% set idfield = attribute(Facture.idCentres,assocs['idCentres'].refid) %} {% endif %} {% block list_td_column_idCentres %}{{ Facture.idCentres }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'idCentres' in assocs|keys and Facture.idCentres is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'paid' in assocs|keys and Facture.paid is not null %} {% set idfield = attribute(Facture.paid,assocs['paid'].refid) %} {% endif %} {% block list_td_column_paid %} {% if Facture.paid %} {% else %} {% endif %}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'paid' in assocs|keys and Facture.paid is not null %} {% endif %} {% if is_expr_granted('hasRole("ROLE_ADMIN") or hasRole("ROLE_COMPTABILITE") or hasRole("ROLE_CENTRE")', Facture) %} {% endif %}
{% trans from "Admingenerator" %}list.no.results{% endtrans %}
{% if Factures|length == 0 %}
{% trans from "Admingenerator" %}list.no.results{% endtrans %}
{% endif %}
{% block list_batch_actions %} {% if isMulti is defined and isMulti==1 %}
{% endif %} {% endblock %} {% block list_actions %} {% if isMulti is not defined or isMulti!=1 %} {% if is_expr_granted('hasRole("ROLE_ADMIN") or hasRole("ROLE_COMPTABILITE") or hasRole("ROLE_CENTRE")') %} {% trans from "Admingenerator" %}Nouveau{% endtrans %} {% endif %} {% endif %} {% endblock %}
{% block list_paginator %} {% endblock %}
{% block endform_batch_actions %} {% endblock %}
{% block filters %} {% endblock %} {% block preferences %} {% endblock %} {% endblock %} {% block actionsmenu %}
{% block contentactionsmenu %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% endblock %}
{% endblock %}