Skip to content

Commit

Permalink
Merge pull request AmsterdamPHP#65 from AmsterdamPHP/donation-page
Browse files Browse the repository at this point in the history
Donations Page
  • Loading branch information
fvdb committed Mar 19, 2014
2 parents 01c1ea2 + 619565a commit 5378dec
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -39,7 +39,8 @@ public function indexAction()
}

return [
'form' => $form->createView()
'form' => $form->createView(),
'sponsor_context' => $sponsor
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<h2>Sponsor Us</h2>

<div class="row">
<div class="col-lg-8 col-md-8">
<p>If you wish to sponsor AmsterdamPHP we have many options available to you. Please look over the list below and pick an option.</p>

<ul>
<li><strong>Sponsor a Meeting</strong> If you wish to host a meeting, get in touch using the form below.</li>
<li><strong>Sponsorship Packages</strong> We have many packages available, please get in touch with the form below and we will send you details.</li>
<li><strong>Donations</strong> For small values you can use the donate button and we will get in touch.</li>
</ul>
</div>
<div class="col-lg-4 col-md-4 text-center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="9DP976L7R54SS">
<input type="image" src="https://www.paypalobjects.com/en_US/NL/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
</div>

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<div class="form">
{% include 'BraincraftedBootstrapBundle::flash.html.twig' %}

{% if sponsor_context %}
{% include "AmsterdamPHPSiteBundle:Contact:_sponsor_us.html.twig" %}
{% endif %}

<h2>Contact us</h2>

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

0 comments on commit 5378dec

Please sign in to comment.