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:
- 2708 Bytes
1 | <% |
2 | # Render with: |
3 | # |
4 | # render :partial => 'payment_gateway/edit', |
5 | # :locals => { |
6 | # :activemerchant_address => <address>, |
7 | # :notes => <notes>, |
8 | # :donation => <donation> |
9 | # } |
10 | # |
11 | # ...where <address> is an ActiveMerchant format address hash with keys |
12 | # "address1" to "address3", "company", "city", "state", "country" and "zip" |
13 | # all optional along with "name" (buyer name in full) which is mandatory; |
14 | # and <notes> is a string of text notes that the buyer may have specified |
15 | # at some earlier payment stage (e.g. via an offsite gateway). Finally, |
16 | # <donation> must be set to the Donation object related to the payment. |
17 | -%> |
18 | <% form_tag( { :action => :update }, { :method => :put } ) do %> |
19 | <%= hidden_field_tag( :token, params[ :token ] ) %> |
20 | <%= hidden_field_tag( :payer_id, params[ :PayerID ] ) %> |
21 | |
22 | <dl> |
23 | <dt><%= apphelp_view_hint( :confirm_preamble, PaymentGatewayController ) %></dt> |
24 | <dd> |
25 | <%= |
26 | apphelp_view_hint( |
27 | :confirm_details, |
28 | PaymentGatewayController, |
29 | { |
30 | :poll_title => donation.poll_title, |
31 | :amount => currencyhelp_compose( |
32 | donation.currency, |
33 | donation.amount_integer, |
34 | donation.amount_fraction |
35 | ) |
36 | } |
37 | ) |
38 | %> |
39 | </dd> |
40 | |
41 | <dt><%= apphelp_view_hint( :billing_address, PaymentGatewayController ) %></dt> |
42 | <dd> |
43 | <%=h activemerchant_address[ 'name' ] %><br /><br /> |
44 | <% |
45 | %w{ company address1 address2 address3 city state country zip }.each do | field | |
46 | text = activemerchant_address[ field ] |
47 | unless ( text.blank? ) |
48 | -%> |
49 | <%=h text %><br /> |
50 | <% |
51 | end |
52 | end |
53 | -%> |
54 | </dd> |
55 | <% unless notes.blank? -%> |
56 | |
57 | <dt><%= apphelp_view_hint( :additional_notes, PaymentGatewayController ) %></dt> |
58 | <dd> |
59 | <%= text_area_tag( :notes, notes, :cols => 40, :rows => 5 ) %> |
60 | </dd> |
61 | <% end -%> |
62 | </ul> |
63 | |
64 | <p> |
65 | <%= apphelp_view_hint( :explain, PaymentGatewayController ) %> |
66 | </p> |
67 | |
68 | <div class="buttons aligned"> |
69 | <%= apphelp_submit( nil, apphelp_view_hint( :pay, PaymentGatewayController ), ' ' ) %> |
70 | <%= |
71 | apphelp_protected_button_to( |
72 | :delete, |
73 | { |
74 | :method => "delete_poll_#{ controller.controller_name }_path", |
75 | :model => PaymentGateway, |
76 | :icon => :cancel, |
77 | :variant => :negative |
78 | }, |
79 | { :poll_id => params[ :poll_id ] } # NOT just 'params' or URL generation fails |
80 | ) |
81 | -%> |
82 | </div> |
83 | <% end %> |