Sha256: b6e011427522a3cef7c4c657f7920450ff6e436ea9195bdaec60a8c1eca3e9b1
Contents?: true
Size: 1.96 KB
Versions: 6
Compression:
Stored size: 1.96 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}", t('spree.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}", autocomplete: "cc-name" } %> </p> <p class="field" data-hook="card_number"> <%= label_tag "card_number", t('spree.card_number') %><span class="required">*</span><br /> <%= text_field_tag "#{param_prefix}[number]", '', {id: 'card_number', class: 'required cardNumber', size: 19, maxlength: 19, autocomplete: "cc-number", type: "tel" } %> <span id="card_type" style="display:none;"> ( <span id="looks_like" ><%= t('spree.card_type_is') %> <span id="type"></span></span> <span id="unrecognized"><%= t('spree.unrecognized_card_type') %></span> ) </span> </p> <p class="field" data-hook="card_expiration"> <%= label_tag "card_expiry", t('spree.expiration') %><span class="required">*</span><br /> <%= text_field_tag "#{param_prefix}[expiry]", '', id: 'card_expiry', class: "required cardExpiry", placeholder: "MM / YY", type: "tel" %> </p> <p class="field" data-hook="card_code"> <%= label_tag "card_code", t('spree.card_code') %><span class="required">*</span><br /> <%= text_field_tag "#{param_prefix}[verification_value]", '', {id: 'card_code', class: 'required cardCode', size: 5, type: "tel", autocomplete: "off" } %> <%= link_to "(#{t('spree.what_is_this')})", spree.cvv_path, target: '_blank', "data-hook" => "cvv_link", id: "cvv_link" %> </p> <% if @order.bill_address %> <%= fields_for "#{param_prefix}[address_attributes]", @order.bill_address do |f| %> <%= render partial: 'spree/address/form_hidden', locals: { form: f } %> <% end %> <% end %> <%= hidden_field_tag "#{param_prefix}[cc_type]", '', id: "cc_type", class: 'ccType' %>
Version data entries
6 entries across 6 versions & 1 rubygems