mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Import payment_methods edit view and apply overrides
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
/ insert_after "code[erb-loud]:contains(\"render :partial => 'form', :locals => { :f => f }\")"
|
||||
|
||||
.one.column
|
||||
= render :partial => 'spree/admin/shared/hubs_sidebar', :locals => { f: f, klass: :payment_method }
|
||||
.clear
|
||||
@@ -1,4 +0,0 @@
|
||||
/ insert_after "code[erb-silent]:contains('content_for :page_actions do')"
|
||||
|
||||
%li
|
||||
= button_link_to t(:new), spree.new_admin_payment_method_path, :icon => 'icon-plus' %>
|
||||
@@ -1 +0,0 @@
|
||||
remove "code[erb-loud]:contains(\"render :partial => 'spree/admin/shared/configuration_menu'\")"
|
||||
18
app/views/spree/admin/payment_methods/edit.html.haml
Normal file
18
app/views/spree/admin/payment_methods/edit.html.haml
Normal file
@@ -0,0 +1,18 @@
|
||||
- content_for :page_title do
|
||||
= t(:editing_payment_method)
|
||||
%i.icon-arrow-right
|
||||
= @payment_method.name
|
||||
- content_for :page_actions do
|
||||
%li
|
||||
= button_link_to t(:new), spree.new_admin_payment_method_path, icon: 'icon-plus'
|
||||
%li
|
||||
= button_link_to t(:back_to_payment_methods_list), spree.admin_payment_methods_path, icon: 'icon-arrow-left'
|
||||
= render partial: 'spree/shared/error_messages', locals: { target: @payment_method }
|
||||
= form_for @payment_method, url: admin_payment_method_path(@payment_method) do |f|
|
||||
%fieldset.no-border-top
|
||||
= render partial: 'form', locals: { f: f }
|
||||
.one.column
|
||||
= render partial: 'spree/admin/shared/hubs_sidebar', locals: { f: f, klass: :payment_method }
|
||||
.clear
|
||||
.filter-actions.actions
|
||||
= button t(:update), 'icon-refresh'
|
||||
Reference in New Issue
Block a user