From 80b334cf85dcea4ef2beaa3a4fa9b62cfe4b648b Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Tue, 17 Apr 2018 15:41:00 +0200 Subject: [PATCH] set current user by default --- .../views/default/login-choices.html.twig | 7 + app/Resources/views/festival/new.html.twig | 2 +- .../logged/angular/listing-products.html.twig | 2 +- app/Resources/views/product/new.html.twig | 2 +- .../views/productcategory/new.html.twig | 2 +- app/Resources/views/sellrecord/new.html.twig | 9 +- assets/css/pages/global.scss | 5 + .../Controller/FestivalController.php | 213 +++++++++--------- .../Controller/ProductCategoryController.php | 1 + .../Controller/ProductController.php | 3 +- .../Controller/SellRecordController.php | 3 +- src/AppBundle/Entity/Festival.php | 80 ++++--- src/AppBundle/Entity/Festival.php~ | 58 ++--- src/AppBundle/Entity/ProductCategory.php | 40 ++-- src/AppBundle/Entity/ProductSold.php~ | 78 ++++++- src/AppBundle/Entity/User.php | 154 ++++++++----- src/AppBundle/Entity/User.php~ | 142 ++++++------ src/AppBundle/Form/FestivalType.php | 47 ++-- src/AppBundle/Form/ProductCategoryType.php | 4 +- 19 files changed, 500 insertions(+), 352 deletions(-) diff --git a/app/Resources/views/default/login-choices.html.twig b/app/Resources/views/default/login-choices.html.twig index dcde9483..e24697f6 100755 --- a/app/Resources/views/default/login-choices.html.twig +++ b/app/Resources/views/default/login-choices.html.twig @@ -30,6 +30,13 @@ Produits +
  • + + + Festivals + +
  • diff --git a/app/Resources/views/festival/new.html.twig b/app/Resources/views/festival/new.html.twig index 458ce2e0..dafecb74 100755 --- a/app/Resources/views/festival/new.html.twig +++ b/app/Resources/views/festival/new.html.twig @@ -5,7 +5,7 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }}