Sha256: ab4fe7d94c5af6815008173a95e7b1553c7337ba2e38c9815e3bed7e6f0abcb5

Contents?: true

Size: 1.36 KB

Versions: 34

Compression:

Stored size: 1.36 KB

Contents

<div data-hook="admin_payment_form_fields">
  <div class="form-group">
    <%= f.label :amount, Spree.t(:amount) %>
    <%= f.text_field :amount, :value => @order.display_outstanding_balance.money, :class => 'form-control' %>
  </div>
  <div class="form-group">
    <strong><%= Spree.t(:payment_method) %></strong>
    <% @payment_methods.each do |method| %>
      <div class="radio" data-id="<%= Spree.t(method.name, :scope => :payment_methods, :default => method.name).parameterize %>">
        <label data-hook="payment_method_field">
          <%= radio_button_tag 'payment[payment_method_id]', method.id, method == @payment_method, { class: "payment_methods_radios" } %>
          <%= Spree.t(method.name, :scope => :payment_methods, :default => method.name) %>
        </label>
      </div>
    <% end %>

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

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.13 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.12 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.11 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.10 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.9 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.8 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.7 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.6 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.5 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.4 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.3 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.2 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.0.10 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.1 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.0 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.0.9 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/payments/_form.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/payments/_form.html.erb