Sha256: bc61591d3344d8950d60439f3741d4ff8bae87c20e4542d7127eac7cd5aaac59

Contents?: true

Size: 753 Bytes

Versions: 4

Compression:

Stored size: 753 Bytes

Contents

<% id = payment_method.id %>

<fieldset class="no-border-bottom braintree-hosted-fields" data-braintree-hosted-fields data-id="<%= id %>" data-payment-method-id="<%= id %>">
  <div class="field" data-hook="previous_cards">
    <% if previous_cards.any? %>
      <% previous_cards.each do |card| %>
        <label><%= radio_button_tag :card, card.id, card == previous_cards.first %> <%= card.display_number %><br /></label>
      <% end %>
      <label><%= radio_button_tag :card, "new", false, { id: "card_new#{id}" } %> <%= Spree.t(:use_new_cc) %></label>
    <% end %>
  </div>

  <div id="card_form<%= id %>" data-hook style="display: none;">
    <%= render partial: "spree/shared/braintree_hosted_fields", locals: { id: id } %>
  </div>
</fieldset>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_paypal_braintree-0.4.0 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb
solidus_paypal_braintree-0.3.0 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb
solidus_paypal_braintree-0.2.0 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb
solidus_paypal_braintree-0.1.0 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb