Sha256: 7e8ec17066d896da3af14d46edbf8be72e7b442d8b754baba3f3d2f9652529f1

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 KB

Contents

<fieldset>
  
  <p class="field" data-hook="previous_cards">
    <% for card in @previous_cards %>
      <label><%= radio_button_tag :card, card.id, card == @previous_cards.first %> <%= card.display_number %><br /></label>
    <% end %>
    <label><%= radio_button_tag :card, 'new', @previous_cards.none? %> <%= t(:use_new_cc) %></label>
  </p>
  
  <div id="card_form" data-hook>

    <%= image_tag "creditcards/creditcard.gif", :id => 'creditcard-image' %>
    <% param_prefix = "payment_source[#{payment_method.id}]" %>

    <div data-hook="card_number">
      <label for=""><%= t("card_number") %></label><br />
      <%= text_field_tag "#{param_prefix}[number]", '', :class => 'required', :size => 19, :maxlength => 19 %>
      <span class="req">*</span>
      &nbsp;
      <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>
    </div>
    <div data-hook="card_expiration">
      <label for=""><%= t("expiration") %></label><br />
      <%= select_month(Date.today, :prefix => param_prefix, :field_name => 'month', :use_month_numbers => true, :class => 'required') %>
      <%= select_year(Date.today, :prefix => param_prefix, :field_name => 'year', :start_year => Date.today.year, :end_year => Date.today.year + 15, :class => 'required') %>
      <span class="req">*</span>
    </div>
    <div data-hook="card_code">
      <label for=""><%= t("card_code") %></label><br />
      <%= text_field_tag "#{param_prefix}[verification_value]", '', :class => 'required', :size => 5 %>
      <span class="req">*</span>
      <a href="/content/cvv" target="_blank" onclick="window.open(this.href,'cvv_info','left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1');return false">
        (<%= t("whats_this") %>)
      </a>
    </div>

  </div>

</fieldset>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.0.rc2 app/views/admin/payments/source_forms/_gateway.html.erb
spree_core-0.70.RC1 app/views/admin/payments/source_forms/_gateway.html.erb