From affae6f127d55feee6ac518bd0b906d94026bf6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Barto=C5=A1?= Date: Sat, 22 Oct 2016 00:40:25 +0200 Subject: [PATCH 1/2] Add page with some user info. User can change name, phone, email and address. --- app/Resources/views/base.html.twig | 2 +- app/Resources/views/user/profile.html.twig | 12 +++ src/AppBundle/Controller/UserController.php | 37 +++++++ src/AppBundle/Entity/Address.php | 98 +++++++++++++++++++ src/AppBundle/Entity/User.php | 67 ++++++++++++- src/AppBundle/FormType/AddressFormType.php | 42 ++++++++ .../FormType/PersonalInfoFormType.php | 44 +++++++++ 7 files changed, 300 insertions(+), 2 deletions(-) create mode 100644 app/Resources/views/user/profile.html.twig create mode 100644 src/AppBundle/Entity/Address.php create mode 100644 src/AppBundle/FormType/AddressFormType.php create mode 100644 src/AppBundle/FormType/PersonalInfoFormType.php diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 7e93622..bc0982d 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -49,7 +49,7 @@