De-deface payments/new

This commit is contained in:
Hugo Daniel
2019-07-25 13:27:41 +02:00
parent 888e0e0bb4
commit aae5ae9f1e
4 changed files with 3 additions and 9 deletions

View File

@@ -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|

View File

@@ -1,3 +0,0 @@
/ insert_before "fieldset.no-border-top"
%save-bar{ persist: "true" }

View File

@@ -1,2 +0,0 @@
/replace 'code[erb-loud]:contains("button @order.cart?")'
= button_tag t(:update), type: 'button', "ng-click" => "submitPayment()"

View File

@@ -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)