Sha256: 274549453b8fbae36ee13139fcd3ebcd811a8a784cb7306a62b17cca611649b1
Contents?: true
Size: 1.82 KB
Versions: 45
Compression:
Stored size: 1.82 KB
Contents
<%= image_tag 'credit_cards/credit_card.gif', :id => 'credit-card-image' %> <% param_prefix = "payment_source[#{payment_method.id}]" %> <p class="field"> <%= label_tag "name_on_card_#{payment_method.id}", Spree.t(:name_on_card) %><span class="required">*</span><br /> <%= text_field_tag "#{param_prefix}[name]", "#{@order.billing_firstname} #{@order.billing_lastname}", { id: "name_on_card_#{payment_method.id}"} %> </p> <p class="field" data-hook="card_number"> <%= label_tag "card_number", Spree.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 cardNumber', :size => 19, :maxlength => 19, :autocomplete => "off") %> <span id="card_type" style="display:none;"> ( <span id="looks_like" ><%= Spree.t(:card_type_is) %> <span id="type"></span></span> <span id="unrecognized"><%= Spree.t(:unrecognized_card_type) %></span> ) </span> </p> <p class="field" data-hook="card_expiration"> <%= label_tag "card_expiry", Spree.t(:expiration) %><span class="required">*</span><br /> <%= text_field_tag "#{param_prefix}[expiry]", '', :id => 'card_expiry', :class => "required cardExpiry", :placeholder => "MM / YY" %> </p> <p class="field" data-hook="card_code"> <%= label_tag "card_code", Spree.t(:card_code) %><span class="required">*</span><br /> <%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'card_code', :class => 'required cardCode', :size => 5) %> <%= link_to "(#{Spree.t(:what_is_this)})", spree.content_path('cvv'), :target => '_blank', "data-hook" => "cvv_link", :id => "cvv_link" %> </p> <%= hidden_field_tag "#{param_prefix}[cc_type]", '', :id => "cc_type", :class => 'ccType' %>
Version data entries
45 entries across 45 versions & 2 rubygems