Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 1643 Bytes
1 | <% form_for( [ :poll, @donation ] ) do | f | %> |
2 | <%= f.error_messages %> |
3 | |
4 | <p> |
5 | <%= apphelp_view_hint( :preamble_hint, DonationsController, :poll_title => @poll.title ) %> |
6 | </p> |
7 | |
8 | <p> |
9 | <strong><%= apphelp_view_hint( :payment_amount_hint ) %></strong> |
10 | </p> |
11 | |
12 | <p> |
13 | <%= currencyhelp_edit( @poll.currency, f, :amount ) %> |
14 | </p> |
15 | |
16 | <p> |
17 | <strong><%= apphelp_view_hint( :payment_method_hint ) %></strong> |
18 | </p> |
19 | |
20 | <p> |
21 | <%= apphelp_view_hint( :payment_not_stored ) %> |
22 | </p> |
23 | |
24 | <p> |
25 | <% unless ( PaymentGateway.instance.gateway_is_express_only() ) -%> |
26 | <%= radio_button_tag( :payment_method, :onsite, params[ :payment_method ] != 'offsite' ) -%> |
27 | <%= label_tag( :payment_method_onsite, apphelp_view_hint( :payment_onsite_hint ) ) %> |
28 | <% end -%> |
29 | <% if ( PaymentGateway.instance.gateway_is_express_only() || PaymentGateway.instance.gateway_has_express_support() ) -%> |
30 | <% unless ( PaymentGateway.instance.gateway_is_express_only() ) -%> |
31 | <br /> |
32 | <% end -%> |
33 | <%= radio_button_tag( :payment_method, :offsite, params[ :payment_method ] == 'offsite' || PaymentGateway.instance.gateway_is_express_only() ) -%> |
34 | <%= |
35 | acceptance_mark = image_tag( |
36 | "https://www.paypal.com/en_GB/GB/i/logo/PayPal_mark_37x23.gif", |
37 | :size => '37x23', |
38 | :alt => "PayPal", |
39 | :align => :middle, |
40 | :style => "margin-bottom: 15px;" |
41 | ) |
42 | |
43 | label_tag( :payment_method_offsite, apphelp_view_hint( :payment_offsite_hint ) + " " + acceptance_mark ) |
44 | %> |
45 | <% end -%> |
46 | </p> |
47 | |
48 | <div class="buttons aligned"> |
49 | <%= apphelp_submit( f, "Make donation" ) %> |
50 | </div> |
51 | <% end %> |