mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
All of the functional changes made in this commit came from a future version of Spree:
8a3a80b08a
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
<div data-hook="admin_payment_form_fields" class="row">
|
|
<div class="alpha three columns">
|
|
<div class="field">
|
|
<%= f.label :amount, t(:amount) %>
|
|
<%= f.text_field :amount, :value => @order.outstanding_balance, :class => 'fullwidth' %>
|
|
</div>
|
|
</div>
|
|
<div class="omega nine columns">
|
|
<div class="field">
|
|
<label><%= t(:payment_method) %></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" } %>
|
|
<%= t(method.name, :scope => :payment_methods, :default => 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 %>">
|
|
<% if method.source_required? %>
|
|
<br />
|
|
<%= render :partial => "spree/admin/payments/source_forms/#{method.method_type}", :locals => { :payment_method => method } %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|