mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
De-deface payments/new
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
/replace 'code[erb-loud]:contains("form_for @payment")'
|
||||
= form_for @payment, :url => admin_order_payments_path(@order), :html => {"ng-app" => "admin.payments", "ng-controller" => "PaymentCtrl"} do |f|
|
||||
@@ -1,3 +0,0 @@
|
||||
/ insert_before "fieldset.no-border-top"
|
||||
|
||||
%save-bar{ persist: "true" }
|
||||
@@ -1,2 +0,0 @@
|
||||
/replace 'code[erb-loud]:contains("button @order.cart?")'
|
||||
= button_tag t(:update), type: 'button', "ng-click" => "submitPayment()"
|
||||
@@ -10,11 +10,12 @@
|
||||
- if @payment_methods.any?
|
||||
= render partial: 'spree/shared/error_messages', locals: { target: @payment }
|
||||
|
||||
= form_for @payment, url: admin_order_payments_path(@order) do |f|
|
||||
= form_for @payment, url: admin_order_payments_path(@order), html: {"ng-app" => "admin.payments", "ng-controller" => "PaymentCtrl"} do |f|
|
||||
%save-bar{ persist: "true" }
|
||||
%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'
|
||||
= button_tag t(:update), type: 'button', "ng-click" => "submitPayment()"
|
||||
|
||||
- else
|
||||
= Spree.t(:cannot_create_payment_without_payment_methods)
|
||||
|
||||
Reference in New Issue
Block a user