From 502bcea11713cbb2362e830eaaffa23139efa5a3 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Fri, 20 Apr 2018 12:15:53 +0200 Subject: [PATCH] controller as syntax --- .../views/default/login-choices.html.twig | 8 +++- app/Resources/views/festival/index.html.twig | 24 ++++++++++-- .../views/logged/angular/current.html.twig | 37 ++++++++++++++----- .../views/logged/angular/recent.html.twig | 30 +++++++++------ .../views/logged/caisse-main.html.twig | 6 +-- .../views/logged/dashboard.html.twig | 9 ++++- assets/js/parts/main.js | 31 +++++++++++----- .../Controller/DefaultController.php | 2 +- 8 files changed, 105 insertions(+), 42 deletions(-) diff --git a/app/Resources/views/default/login-choices.html.twig b/app/Resources/views/default/login-choices.html.twig index 62d8baa5..83e10833 100755 --- a/app/Resources/views/default/login-choices.html.twig +++ b/app/Resources/views/default/login-choices.html.twig @@ -36,7 +36,9 @@ Catégories + {{ app.user.categories|length }} +
  • @@ -47,7 +49,9 @@ {% endif %}" href="{{ path('product_index') }}" data-toggle="tab"> Produits - {{ app.user.products|length }} + + {{ app.user.products|length }} +
  • @@ -59,7 +63,9 @@ data-toggle="tab"> Festivals + {{ app.user.festivals|length }} +
  • diff --git a/app/Resources/views/festival/index.html.twig b/app/Resources/views/festival/index.html.twig index 89f7a88e..4be45233 100755 --- a/app/Resources/views/festival/index.html.twig +++ b/app/Resources/views/festival/index.html.twig @@ -16,14 +16,19 @@ Id Name Datecreation + Tous Frais Clients fond caisse avant fond caisse apres chiffre affaire + fond caisse + CA + diff + bénefices CA - frais Actions + {% for festival in festivals %} @@ -32,11 +37,24 @@ {{ festival.name }} {% if festival.dateCreation %}{{ festival.dateCreation|date('Y-m-d H:i:s') }}{% endif %} + {{ festival.fraisInscription + festival.fraisTransport + festival.fraisRepas + festival.fraisHebergement }} +  € + {{ festival.sellRecords|length }} - {{ festival.fondDeCaisseAvant }} - {{ festival.fondDeCaisseApres }} - {{ festival.chiffreAffaire }} + {{ festival.fondDeCaisseAvant }}€ + {{ festival.fondDeCaisseApres }}€ + {{ festival.chiffreAffaire }}€ + {{ festival.fondDeCaisseAvant + festival.chiffreAffaire }}€ + {{ festival.chiffreAffaire - festival.fondDeCaisseApres }}€ + + {{ festival.chiffreAffaire - (festival.fraisInscription + festival.fraisTransport + festival.fraisRepas + festival.fraisHebergement ) }}