From c42e76ad7b08092ca01bdc5bddcb26a992820ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Barto=C5=A1?= Date: Sat, 29 Oct 2016 17:59:51 +0200 Subject: [PATCH] Add contact form --- app/Resources/views/base.html.twig | 3 + app/Resources/views/contact/contact.html.twig | 11 +++ app/config/services.yml | 8 ++ .../Controller/ContactController.php | 52 +++++++++++++ src/AppBundle/Entity/Message.php | 74 +++++++++++++++++++ src/AppBundle/Facade/MessageFacade.php | 35 +++++++++ src/AppBundle/FormType/ContactFormType.php | 33 +++++++++ src/AppBundle/FormType/VO/MessageVO.php | 44 +++++++++++ 8 files changed, 260 insertions(+) create mode 100644 app/Resources/views/contact/contact.html.twig create mode 100644 src/AppBundle/Controller/ContactController.php create mode 100644 src/AppBundle/Entity/Message.php create mode 100644 src/AppBundle/Facade/MessageFacade.php create mode 100644 src/AppBundle/FormType/ContactFormType.php create mode 100644 src/AppBundle/FormType/VO/MessageVO.php diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 14cc99c..f0ba10b 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -49,6 +49,9 @@
  • FAQ
  • +
  • + Kontakt +