mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Import payments/new from spree_backend to ofn
This commit is contained in:
21
app/views/spree/admin/payments/new.html.haml
Normal file
21
app/views/spree/admin/payments/new.html.haml
Normal file
@@ -0,0 +1,21 @@
|
||||
= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Payments' }
|
||||
|
||||
- content_for :page_title do
|
||||
%i.icon-arrow-right
|
||||
= Spree.t(:new_payment)
|
||||
|
||||
- content_for :page_actions do
|
||||
%li= button_link_to Spree.t(:back_to_payments_list), spree.admin_order_payments_url(@order), icon: 'icon-arrow-left'
|
||||
|
||||
- if @payment_methods.any?
|
||||
= render partial: 'spree/shared/error_messages', locals: { target: @payment }
|
||||
|
||||
= form_for @payment, url: admin_order_payments_path(@order) do |f|
|
||||
%fieldset.no-border-top
|
||||
= render partial: 'form', locals: { f: f }
|
||||
.filter-actions.actions{"data-hook" => "buttons"}
|
||||
= button @order.cart? ? Spree.t('actions.continue') : Spree.t('actions.update'), @order.cart? ? 'icon-arrow-right' : 'icon-refresh'
|
||||
|
||||
- else
|
||||
= Spree.t(:cannot_create_payment_without_payment_methods)
|
||||
= link_to Spree.t(:please_define_payment_methods), admin_payment_methods_url
|
||||
Reference in New Issue
Block a user