From ddb99dbd19ce22b4fc363fd511fdc322652d614e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Such=C3=A1nek?= Date: Mon, 31 Oct 2016 00:14:13 +0100 Subject: [PATCH 1/2] =?UTF-8?q?P=C5=99id=C3=A1v=C3=A1n=C3=AD=20Faq=20a=20j?= =?UTF-8?q?ejich=20v=C3=BDpis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Resources/views/base.html.twig | 3 + app/Resources/views/components/list.html.twig | 1 - .../views/components/list_faq.html.twig | 7 + .../views/components/paginator.html.twig | 3 + app/Resources/views/faq/list.html.twig | 17 ++ app/config/services.yml | 13 ++ src/AppBundle/Controller/FaqController.php | 80 +++++++ src/AppBundle/Entity/Faq.php | 82 +++++++ src/AppBundle/Facade/FaqFacade.php | 34 +++ src/AppBundle/FormType/FaqFormType.php | 45 ++++ src/AppBundle/Repository/FaqRepository.php | 32 +++ web/config.php | 217 +++++++++++++++++- 12 files changed, 528 insertions(+), 6 deletions(-) create mode 100644 app/Resources/views/components/list_faq.html.twig create mode 100644 app/Resources/views/faq/list.html.twig create mode 100644 src/AppBundle/Controller/FaqController.php create mode 100644 src/AppBundle/Entity/Faq.php create mode 100644 src/AppBundle/Facade/FaqFacade.php create mode 100644 src/AppBundle/FormType/FaqFormType.php create mode 100644 src/AppBundle/Repository/FaqRepository.php diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 4f5d87e..7f2ade8 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -46,6 +46,9 @@
  • Domů
  • +
  • + Faq +
  • {{ product.price }} Kč

    -

    {{ product.title }}

    diff --git a/app/Resources/views/components/list_faq.html.twig b/app/Resources/views/components/list_faq.html.twig new file mode 100644 index 0000000..9420b89 --- /dev/null +++ b/app/Resources/views/components/list_faq.html.twig @@ -0,0 +1,7 @@ +
    + +
    \ No newline at end of file diff --git a/app/Resources/views/components/paginator.html.twig b/app/Resources/views/components/paginator.html.twig index 99220f0..7dead09 100644 --- a/app/Resources/views/components/paginator.html.twig +++ b/app/Resources/views/components/paginator.html.twig @@ -1,3 +1,6 @@ +{% if currentPage > 1 %} + a +{% endif %}