Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 464
- Log:
Canvass version 1.0.2.
- Author:
- rool
- Date:
- Sat May 03 09:48:48 +0100 2014
- Size:
- 2689 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 | <% if current_user.admin? -%> |
26 | <table border="0" cellspacing="0" cellpadding="0" class="no_border abuted"> |
27 | <tr valign="top"> |
28 | <td> |
29 | <%= radio_button_tag( :payment_method, :none, params[ :payment_method ] == 'none' ) -%> |
30 | </td> |
31 | <td> |
32 | <%= label_tag( :payment_method_none, apphelp_view_hint( :payment_none_hint ) ) %> |
33 | <table border="0" cellspacing="0" cellpadding="0" class="no_border abuted"> |
34 | <tr valign="top"> |
35 | <td align="right"> |
36 | <small><em><%= apphelp_view_hint( :and_if_so_donor_name ) %></em></small> |
37 | </td> |
38 | <td><%= text_field_tag( :payment_none_donor_name ) %></td> |
39 | </tr> |
40 | <tr valign="top"> |
41 | <td align="right"> |
42 | <small><em><%= apphelp_view_hint( :and_donor_email ) %></em></small> |
43 | </td> |
44 | <td><%= text_field_tag( :payment_none_donor_email ) %></td> |
45 | </tr> |
46 | </table> |
47 | </td> |
48 | </tr> |
49 | </table> |
50 | <% end -%> |
51 | <% unless ( PaymentGateway.instance.gateway_is_express_only() ) -%> |
52 | <%= radio_button_tag( :payment_method, :onsite, params[ :payment_method ] == 'onsite' ) -%> |
53 | <%= label_tag( :payment_method_onsite, apphelp_view_hint( :payment_onsite_hint ) ) %> |
54 | <% end -%> |
55 | <% if ( PaymentGateway.instance.gateway_is_express_only() || PaymentGateway.instance.gateway_has_express_support() ) -%> |
56 | <% unless ( PaymentGateway.instance.gateway_is_express_only() ) -%> |
57 | <br /> |
58 | <% end -%> |
59 | <%= radio_button_tag( :payment_method, :offsite, params[ :payment_method ] == 'offsite' || PaymentGateway.instance.gateway_is_express_only() ) -%> |
60 | <%= |
61 | acceptance_mark = image_tag( |
62 | "https://www.paypal.com/en_GB/GB/i/logo/PayPal_mark_37x23.gif", |
63 | :size => '37x23', |
64 | :alt => "PayPal", |
65 | :align => :middle, |
66 | :style => "margin-bottom: 15px;" |
67 | ) |
68 | |
69 | label_tag( :payment_method_offsite, apphelp_view_hint( :payment_offsite_hint ) + " " + acceptance_mark ) |
70 | %> |
71 | <% end -%> |
72 | </p> |
73 | |
74 | <div class="buttons aligned"> |
75 | <%= apphelp_submit( f, "Make donation" ) %> |
76 | </div> |
77 | <% end %> |