Sha256: d9ecae576eec63bc044f8eb683273bff6f4cde2387b812323d65db009b0607e6

Contents?: true

Size: 1.31 KB

Versions: 30

Compression:

Stored size: 1.31 KB

Contents

<div data-hook="admin_payment_form_fields">
  <div class="row">
    <div class="col-4">
      <div class="field">
        <%= f.label :amount %>
        <%= render "spree/admin/shared/number_with_currency", f: f, amount_attr: :amount, currency: @order.currency %>
      </div>
    </div>
  </div>
  <div>
    <div class="field">
      <label><%= Spree::PaymentMethod.model_name.human %></label>
      <ul>
        <% @payment_methods.each do |method| %>
          <li>
            <label data-hook="payment_method_field">
              <%= radio_button_tag 'payment[payment_method_id]', method.id, method == @payment_method, { class: "payment_methods_radios" } %>
              <%= method.name %>
            </label>
          </li>
        <% end %>
      </ul>

      <div class="payment-method-settings">
        <% @payment_methods.each do |method| %>

          <div class="payment-methods" id="payment_method_<%= method.id %>" data-payment-method-id="<%= method.id %>">
            <% if method.source_required? %>
              <br>
              <%= render partial: "spree/admin/payments/source_forms/#{method.partial_name}",
                         locals: { payment_method: method, previous_cards: method.reusable_sources(@order) } %>
            <% end %>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</div>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
solidus_backend-4.4.1 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.4.0 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.3.4 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.2.4 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.1.5 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.3.3 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.3.2 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.1.4 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.3.1 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.3.0 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.2.3 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.1.3 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.0.4 app/views/spree/admin/payments/_form.html.erb
solidus_backend-3.4.6 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.0.3 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.1.2 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.2.2 app/views/spree/admin/payments/_form.html.erb
solidus_backend-3.4.5 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.2.1 app/views/spree/admin/payments/_form.html.erb
solidus_backend-4.2.0 app/views/spree/admin/payments/_form.html.erb