Commit 8cc0d3ab by Damien Moulard

add todos

parent 2008675a
......@@ -428,7 +428,7 @@ class PrestataireAdmin extends AbstractAdmin
}
$em->flush();
// TODO: remove from user's possible groups when user is unselected from caissiers list
// TODO: remove goup (and possible groups?) when user is unselected from caissiers list (get caissiers before update & compare)
return $return;
}
......
......@@ -154,17 +154,17 @@
{% elseif app.user and is_granted('ROLE_CAISSIER_COMPTOIR') %}
{% if getCurrentComptoir() != null %}
{% set compte = getCurrentComptoir().compte %}
{% set soldelabel = 'Solde du comptoir "'|trans ~ getCurrentComptoir() ~ '"' %}
{% include 'block/solde.html.twig' with {'compte': compte, 'soldelabel': soldelabel} %}
{% endif %}
{% include 'block/transactions.html.twig' %}
{% include 'comptoir/block/vente_adherent.html.twig' %}
{% include 'comptoir/block/vente_prestataire.html.twig' %}
{% include 'comptoir/block/retrait_prestataire.html.twig' %}
{% include 'comptoir/block/retrait_adherent.html.twig' %}
{% include 'comptoir/block/reconversion.html.twig' %}
{% if getCurrentComptoir() != null %}
{% set compte = getCurrentComptoir().compte %}
{% set soldelabel = 'Solde du comptoir "'|trans ~ getCurrentComptoir() ~ '"' %}
{% include 'block/solde.html.twig' with {'compte': compte, 'soldelabel': soldelabel} %}
{% endif %}
{% include 'block/transactions.html.twig' %}
{% include 'comptoir/block/vente_adherent.html.twig' %}
{% include 'comptoir/block/vente_prestataire.html.twig' %}
{% include 'comptoir/block/retrait_prestataire.html.twig' %}
{% include 'comptoir/block/retrait_adherent.html.twig' %}
{% include 'comptoir/block/reconversion.html.twig' %}
{% elseif app.user and is_granted('ROLE_CONTACT') %}
......@@ -210,6 +210,7 @@
{% endif %}
{% elseif app.user and is_granted('ROLE_CAISSIER_PRESTATAIRE') %}
<!-- TODO : and if isCaissierOfPrestataire -->
{% include 'block/transactions.html.twig' %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment