Sha256: bd4872ffaa767884387e2c42032bbc828af7fd58e0e4da425446a8c2e39055b4
Contents?: true
Size: 1.85 KB
Versions: 14
Compression:
Stored size: 1.85 KB
Contents
<% f.fields_for :creditcard do |cc_form| %> <table class="index"> <tr> <th colspan="6"><%= t('card_details') %></th> </tr> <tr> <td> <%= cc_form.label :number, t(:card_number) %> </td> <td> <%= cc_form.text_field :number, :size=> 19, :max_length => 19%> </td> <td> <%= cc_form.label :month, t(:expiration) %> </td> <td> <%= select_month(Date.today, :prefix => 'creditcard_payment[creditcard_attributes]', :field_name => 'month', :use_month_numbers => true) %> <%= select_year(Date.today, :prefix => 'creditcard_payment[creditcard_attributes]', :field_name => 'year', :start_year => Date.today.year, :end_year => Date.today.year + 15) %> </td> <td> <%= cc_form.label :verification_value, t(:card_code) %> </td> <td> <%= cc_form.text_field :verification_value, {:style => 'width:40px'} %> </td> </tr> <tr> <td> <%= cc_form.label :issue_number, t(:maestro_or_solo_cards) %> </td> <td> <%= cc_form.text_field :issue_number, {:style => 'width:40px', :title => t('enter_exactly_as_shown_on_card') + ', e.g. 2, 01.' } %> </td> <td> <%= cc_form.label :start_month, t(:start_date) %> </td> <td colspan="3"> <%= select_month(@date, :prefix => 'creditcard', :field_name => 'start_month', :use_month_numbers => true, :include_blank => true) %> <%= select_year(@date, :prefix => 'creditcard', :field_name => 'start_year', :start_year => Date.today.year - 15, :end_year => Date.today.year, :include_blank => true) %> </td> </tr> </table> <%= cc_form.hidden_field :address_id, :value => @payment.order.checkout.bill_address.id %> <%= cc_form.hidden_field :first_name, :value => @payment.order.checkout.bill_address.firstname %> <%= cc_form.hidden_field :last_name, :value => @payment.order.checkout.bill_address.lastname %> <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems