From 619565a7dfee3bf69cc0344fc24863db82bc9a45 Mon Sep 17 00:00:00 2001 From: Rafael Dohms Date: Thu, 13 Mar 2014 22:01:16 +0100 Subject: [PATCH] Donations Page Added sponsor information to contact page and donation button. --- .../Controller/ContactController.php | 7 +++--- .../views/Contact/_sponsor_us.html.twig | 22 +++++++++++++++++++ .../Resources/views/Contact/index.html.twig | 4 ++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/_sponsor_us.html.twig diff --git a/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php b/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php index 4d8fab0..8b5e76e 100644 --- a/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php +++ b/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php @@ -17,10 +17,10 @@ class ContactController extends Controller /** * @Route("/", name="amsphp_contact") * @Route("/", name="amsphp_be_a_speaker") - * @Route("/", name="amsphp_be_a_sponsor") + * @Route("/sponsor-us", name="amsphp_be_a_sponsor", defaults={"sponsor"=true}) * @Template() */ - public function indexAction() + public function indexAction($sponsor = false) { $form = $this->createForm('amsterdamphp_site_contact_type'); @@ -39,7 +39,8 @@ public function indexAction() } return [ - 'form' => $form->createView() + 'form' => $form->createView(), + 'sponsor_context' => $sponsor ]; } } diff --git a/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/_sponsor_us.html.twig b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/_sponsor_us.html.twig new file mode 100644 index 0000000..edb90b5 --- /dev/null +++ b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/_sponsor_us.html.twig @@ -0,0 +1,22 @@ +

Sponsor Us

+ +
+
+

If you wish to sponsor AmsterdamPHP we have many options available to you. Please look over the list below and pick an option.

+ +
    +
  • Sponsor a Meeting If you wish to host a meeting, get in touch using the form below.
  • +
  • Sponsorship Packages We have many packages available, please get in touch with the form below and we will send you details.
  • +
  • Donations For small values you can use the donate button and we will get in touch.
  • +
+
+
+
+ + + + +
+
+
+ diff --git a/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/index.html.twig b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/index.html.twig index f6046ce..7464456 100644 --- a/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/index.html.twig +++ b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/index.html.twig @@ -30,6 +30,10 @@
{% include 'BraincraftedBootstrapBundle::flash.html.twig' %} + {% if sponsor_context %} + {% include "AmsterdamPHPSiteBundle:Contact:_sponsor_us.html.twig" %} + {% endif %} +

Contact us

{{ form(form, { 'style': 'horizontal' }) }}