Skip to content
Browse files

make paypal monthly donation more prominent

  • Loading branch information...
1 parent 226685f commit 9160efcf1edd26f7dc70b24bb957619297f97ce9 @danielgrippi danielgrippi committed Oct 27, 2011
Showing with 47 additions and 37 deletions.
  1. +47 −37 app/views/pages/donate.html.haml
View
84 app/views/pages/donate.html.haml
@@ -114,6 +114,31 @@
#donations.tab-content.row
#one_time.span8{:class => active_for_one_time?}
:erb
+ <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
+ <fieldset>
+ <legend>
+ One Time Donation via PayPal
+ </legend>
+ <div class='clearfix'>
+ <label for='amount'>Amount</label>
+ <div class="input">
+ <input type="input" class='xlarge span2' name="amount" value="<%=donation_prefill%>">
+ </div>
+ </div>
+ <div class='clearfix'>
+ <div class='input'>
+ <input type="hidden" name="cmd" value="_xclick">
+ <input type="hidden" name="business" value="donations@joindiaspora.com">
+ <input type="hidden" name="item_name" value="Contribution To Diaspora">
+ <input type="hidden" name="currency_code" value="USD">
+ </div>
+ </div>
+ </fieldset>
+ <div class="actions">
+ <input type="submit" class="btn success" value="Donate via PayPal">
+ </div>
+ </form>
+
<form name="_xclick" action="/donate" class='payment-form' method="post" data-remote=true>
<fieldset>
<legend>
@@ -164,59 +189,44 @@
</fieldset>
<div class='actions'>
- <input type="submit" class="btn success" value="Donate">
+ <input type="submit" class="btn success" value="Donate via Stripe">
</div>
</form>
+ %h6
+ Disclaimer: We do not store any credit card information.
- <div class='clearfix'>
- <h6>or, alternatively</h6>
- <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" class='form-stacked' method="post">
- <fieldset>
- <div class='clearfix'>
- <div class='input'>
- <input type="hidden" name="cmd" value="_xclick">
- <input type="hidden" name="business" value="donations@joindiaspora.com">
- <input type="hidden" name="item_name" value="Contribution To Diaspora">
- <input type="hidden" name="currency_code" value="USD">
- </div>
- </div>
- </fieldset>
- <input type="submit" class="btn" value="Donate via PayPal">
- </form>
- </div>
- #monthly.span8{:style => "text-align:center;", :class => active_for_monthly?}
+ #monthly.span8{:class => active_for_monthly?}
:erb
- <form action="https://www.paypal.com/cgi-bin/webscr" class='form-stacked' method="post">
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<fieldset>
<legend>
Monthly Subscription via PayPal
</legend>
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="N24UFDL4RJJF4">
- <input type="hidden" name="on0" value="">
- <div class='clearfix'>
- <div class='input'>
- <select name="os0">
- <option value="Supporter" <%= is_selected?(1) %>>Supporter : $5.00USD</option>
- <option value="Member" <%= is_selected?(2) %>>Member : $10.00USD</option>
- <option value="Freedom Fighter" <%= is_selected?(3) %>>Freedom Fighter : $20.00USD</option>
- </select>
- </div>
- </div>
- <input type="hidden" name="currency_code" value="USD">
+ <input type="hidden" name="cmd" value="_s-xclick">
+ <input type="hidden" name="hosted_button_id" value="N24UFDL4RJJF4">
+ <input type="hidden" name="on0" value="">
+ <div class='clearfix'>
+ <label for="os0">
+ Amount
+ </label>
+ <div class="input">
+ <select name="os0">
+ <option value="Supporter" <%= is_selected?(1) %>>Supporter : $5.00USD</option>
+ <option value="Member" <%= is_selected?(2) %>>Member : $10.00USD</option>
+ <option value="Freedom Fighter" <%= is_selected?(3) %>>Freedom Fighter : $20.00USD</option>
+ </select>
+ </div>
+ </div>
+ <input type="hidden" name="currency_code" value="USD">
</fieldset>
<div class='actions'>
- <input type="submit" class="btn success" value="Donate">
+ <input type="submit" class="btn success" value="Donate via PayPal">
</div>
</form>
- %h6
- NOTE: The use of paypal temporary until we move our monthly donations to Stripe
-
-
#flattr.span8{:style => "text-align:center;"}
%form{:class => 'form-stacked'}

0 comments on commit 9160efc

Please sign in to comment.
Something went wrong with that request. Please try again.