From a454dc748397efc0e0bfc81b9ebef9ae1601f165 Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Sat, 7 Jul 2012 11:13:13 +0200 Subject: [PATCH] Added the possibility to register --- app/Resources/views/main_template.html.twig | 7 ++- app/config/security.yml | 1 + src/KekRozsak/FrontBundle/Entity/Role.php | 2 +- src/KekRozsak/FrontBundle/Entity/User.php | 57 ++++++++++++++++- .../Extension/HelpMessageTypeExtension.php | 33 ++++++++++ .../FrontBundle/Form/Type/UserType.php | 61 +++++++++++++++++++ .../Resources/config/doctrine/User.orm.yml | 4 ++ .../FrontBundle/Resources/config/services.yml | 4 ++ .../Resources/config/validation.yml | 29 +++++++++ .../Resources/views/Form/user_form.html.twig | 10 +++ .../Controller/DefaultController.php | 37 +++++++++++ .../Resources/config/routing.yml | 10 +++ .../views/Default/registration.html.twig | 15 +++++ .../Default/registration_success.html.twig | 5 ++ 14 files changed, 270 insertions(+), 5 deletions(-) create mode 100644 src/KekRozsak/FrontBundle/Form/Extension/HelpMessageTypeExtension.php create mode 100644 src/KekRozsak/FrontBundle/Form/Type/UserType.php create mode 100644 src/KekRozsak/FrontBundle/Resources/config/validation.yml create mode 100644 src/KekRozsak/FrontBundle/Resources/views/Form/user_form.html.twig create mode 100644 src/KekRozsak/SecurityBundle/Resources/views/Default/registration.html.twig create mode 100644 src/KekRozsak/SecurityBundle/Resources/views/Default/registration_success.html.twig diff --git a/app/Resources/views/main_template.html.twig b/app/Resources/views/main_template.html.twig index 5a6c9cf..e0e4894 100644 --- a/app/Resources/views/main_template.html.twig +++ b/app/Resources/views/main_template.html.twig @@ -14,8 +14,11 @@
  • A Mágiáról röviden
  • Rendek
  • A régiek
  • -
  • Archívum
  • -
  • Ajánlott oldalak
  • +{% if app.user %} +
  • Kijelentkezés
  • +{% else %} +
  • Jelentkezés
  • +{% endif %}