Sha256: ab39ea69fc4fbd7b8b2e98ccd0ad36d77e2abea1e4b592173ddc3f1a076df069

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

<div data-hook="admin_payment_form_fields" class="row">
  <div class="alpha three columns">
    <div class="field">
      <%= f.label :amount, Spree.t(:amount) %>
      <%= f.text_field :amount, :value => @order.outstanding_balance, :class => 'fullwidth' %>
    </div>
  </div>
  <div class="omega nine columns">
    <div class="field">
      <label><%= Spree.t(:payment_method) %></label>
      <ul id='payment-methods'>
        <% @payment_methods.each do |method| %>
          <li 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 %>
              <%= Spree.t(method.name, :scope => :payment_methods, :default => method.name) %>
            </label>
          </li>
        <% end %>
      </ul>
      <div class="payment-method-settings">
        <% @payment_methods.each do |method| %>
          <% if method.source_required? %>
            <%= render :partial => "spree/admin/payments/source_forms/#{method.method_type}", :locals => { :payment_method => method } %>
          <% end %>
        <% end %>
      </div>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_backend-2.0.13 app/views/spree/admin/payments/_form.html.erb
spree_backend-2.0.12 app/views/spree/admin/payments/_form.html.erb
spree_backend-2.0.11 app/views/spree/admin/payments/_form.html.erb
spree_backend-2.0.10 app/views/spree/admin/payments/_form.html.erb