Sha256: 05fd95f93aaaadbbeaf5bd0821d02615d08104d4b339688c27eff5021424f009
Contents?: true
Size: 1.95 KB
Versions: 16
Compression:
Stored size: 1.95 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}", autocomplete: "cc-name" } %> </p> <p class="field" data-hook="card_number"> <%= label_tag "card_number", Spree.t(: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" ><%= 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", type: "tel" %> </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]", '', {id: 'card_code', class: 'required cardCode', size: 5, type: "tel", autocomplete: "off"} %> <%= link_to "(#{Spree.t(: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
16 entries across 16 versions & 1 rubygems