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:
- 4655 Bytes
1 | <h1><%= apphelp_heading() %></h1> |
2 | |
3 | <% form_for :payment_card, @item, :url => { :action => :create } do | f | %> |
4 | <%= f.error_messages %> |
5 | |
6 | <p> |
7 | '<span class="required_indicator">(*)</span>' <%= apphelp_generic( :requirement_hint ) %> |
8 | </p> |
9 | |
10 | <table class="no_border" border="0"> |
11 | <tr valign="top"> |
12 | <td> |
13 | <p> |
14 | <span class="required_label"><%= f.label :card_name %></span> <span class="required_indicator">(*)</span><br /> |
15 | <%= f.text_field :card_name, :size => 30, :maxlength => User::MAXLEN_NAME %> |
16 | <br /> |
17 | <span class="required_label"><%= f.label :card_number %></span> <span class="required_indicator">(*)</span><br /> |
18 | <%= f.text_field :card_number, :autocomplete => 'off', :size => 30, :maxlength => PaymentCard::MAXLEN_CARD_NUMBER %> |
19 | <% if ( ActiveMerchant::Billing::CreditCard.requires_verification_value? ) -%> |
20 | <br /> |
21 | <span class="required_label"><%= f.label :card_cvv %></span> <%= help_link( :card_cvv ) %> <span class="required_indicator">(*)</span><br /> |
22 | <%= f.text_field :card_cvv, :autocomplete => 'off', :size => 4, :maxlength => PaymentCard::MAXLEN_CARD_CVV %> |
23 | <% end -%> |
24 | <br /> |
25 | <span class="required_label"><%= f.label :card_type %></span> <span class="required_indicator">(*)</span><br /> |
26 | <%= purchasecardshelp_type_menu( f, :card_type ) %> |
27 | <br /> |
28 | <span class="required_label"><%= f.label :card_to %></span> <span class="required_indicator">(*)</span><br /> |
29 | <%= |
30 | f.date_select( |
31 | :card_to, |
32 | :add_month_numbers => true, |
33 | :start_year => Time.now.year, |
34 | :end_year => Time.now.year + 15, |
35 | :discard_day => true, |
36 | :order => [ :month, :year ], |
37 | :include_blank => true |
38 | ) |
39 | %> |
40 | <br /> |
41 | <%= f.label :card_from %><br /> |
42 | <%= |
43 | f.date_select( |
44 | :card_from, |
45 | :add_month_numbers => true, |
46 | :start_year => Time.now.year - 15, |
47 | :end_year => Time.now.year, |
48 | :discard_day => true, |
49 | :order => [ :month, :year ], |
50 | :include_blank => true |
51 | ) |
52 | %> |
53 | <br /> |
54 | <%= f.label :card_issue %><br /> |
55 | <%= f.text_field :card_issue, :size => 30, :maxlength => PaymentCard::MAXLEN_CARD_ISSUE %> |
56 | <br /> |
57 | </p> |
58 | </td> |
59 | |
60 | <td> </td> |
61 | |
62 | <td> |
63 | <p> |
64 | <span class="required_label"><%= f.label :address_1 %></span> <span class="required_indicator">(*)</span><br /> |
65 | <%= f.text_field :address_1, :size => 30, :maxlength => PaymentCard::MAXLEN_ADDRESS_1 %> |
66 | <br /> |
67 | <%= f.label :address_2 %><br /> |
68 | <%= f.text_field :address_2, :size => 30, :maxlength => PaymentCard::MAXLEN_ADDRESS_2 %> |
69 | <br /> |
70 | <%= f.label :address_3 %><br /> |
71 | <%= f.text_field :address_3, :size => 30, :maxlength => PaymentCard::MAXLEN_ADDRESS_3 %> |
72 | <br /> |
73 | <span class="required_label"><%= f.label :city %></span> <span class="required_indicator">(*)</span><br /> |
74 | <%= f.text_field :city, :size => 30, :maxlength => PaymentCard::MAXLEN_CITY %> |
75 | <br /> |
76 | <%= f.label :state %><br /> |
77 | <%= f.text_field :state, :size => 30, :maxlength => PaymentCard::MAXLEN_STATE %> |
78 | <br /> |
79 | <span class="required_label"><%= f.label :country %></span> <span class="required_indicator">(*)</span><br /> |
80 | <%= f.text_field :country, :size => 30, :maxlength => PaymentCard::MAXLEN_COUNTRY %> |
81 | <br /> |
82 | <%= f.label :postcode %><br /> |
83 | <%= f.text_field :postcode, :size => 30, :maxlength => PaymentCard::MAXLEN_POSTCODE %> |
84 | </p> |
85 | </td> |
86 | </tr> |
87 | |
88 | <tr> |
89 | <td colspan="3"> |
90 | <div class="buttons aligned"> |
91 | <%= apphelp_submit( f, apphelp_view_hint( :review_order ), ' ' ) %> |
92 | <%= |
93 | apphelp_protected_button_to( |
94 | :delete, |
95 | { |
96 | :method => :delete_poll_payment_gateway_onsite_path, |
97 | :controller => PaymentGatewayOnsiteController, |
98 | :model => PaymentGateway, |
99 | :icon => :cancel, |
100 | :variant => :negative |
101 | }, |
102 | { :poll_id => params[ :poll_id ] } # NOT just 'params' or URL generation fails |
103 | ) |
104 | -%> |
105 | </div> |
106 | </td> |
107 | </tr> |
108 | </table> |
109 | <% end %> |