Sha256: a177b4db7b32e9019647ceebcec3b7505d0f343eb9affe97b7b043beaa71f237
Contents?: true
Size: 1.76 KB
Versions: 3
Compression:
Stored size: 1.76 KB
Contents
<%= image_tag 'credit_cards/credit_card.gif', :id => 'credit-card-image' %> <% param_prefix = "payment_source[#{payment_method.id}]" %> <p class="field" data-hook="card_number"> <%= label_tag "card_number", t(:card_number) %><span class="required">*</span><br /> <% options_hash = Rails.env.production? ? {:autocomplete => 'off'} : {} %> <%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(:id => 'card_number', :class => 'required', :size => 19, :maxlength => 19, :autocomplete => "off") %> <span id="card_type" style="display:none;"> ( <span id="looks_like" ><%= t(:card_type_is) %> <span id="type"></span></span> <span id="unrecognized"><%= t(:unrecognized_card_type) %></span> ) </span> </p> <p class="field" data-hook="card_expiration"> <%= label_tag "card_month", t(:expiration) %><span class="required">*</span><br /> <%= select_month(Date.today, { :prefix => param_prefix, :field_name => 'month', :use_month_numbers => true }, :class => 'required', :id => "card_month") %> <%= select_year(Date.today, { :prefix => param_prefix, :field_name => 'year', :start_year => Date.today.year, :end_year => Date.today.year + 15 }, :class => 'required', :id => "card_year") %> </p> <p class="field" data-hook="card_code"> <%= label_tag "card_code", t(:card_code) %><span class="required">*</span><br /> <%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'card_code', :class => 'required', :size => 5) %> <%= link_to "(#{t(:what_is_this)})", spree.content_path('cvv'), :target => '_blank', "data-hook" => "cvv_link", :id => "cvv_link" %> </p> <%= hidden_field param_prefix, 'first_name', :value => @order.billing_firstname %> <%= hidden_field param_prefix, 'last_name', :value => @order.billing_lastname %>
Version data entries
3 entries across 3 versions & 1 rubygems