Sha256: b6c6283a2f98404991e3afc3ab83a3fa07eb8acae442a17e29622a65b9e7f79a

Contents?: true

Size: 783 Bytes

Versions: 11

Compression:

Stored size: 783 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}" } %> <%= I18n.t("spree.use_new_cc") %></label>
    <% end %>
  </div>

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
solidus_braintree-3.3.0 lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb
solidus_braintree-3.2.0 lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb
solidus_braintree-3.1.0 lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb
solidus_braintree-3.0.1 lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb
solidus_braintree-3.0.0 lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb
solidus_braintree-2.0.0 lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb
solidus_paypal_braintree-1.2.0 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb
solidus_paypal_braintree-1.1.2 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb
solidus_paypal_braintree-1.1.1 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb
solidus_paypal_braintree-1.1.0 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb
solidus_paypal_braintree-1.0.0 lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb