Skip to content

Commit

Permalink
Replace Spree::ShippingMethods new view by our own and apply overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
HugsDaniel committed Sep 20, 2018
1 parent e79f7c1 commit 56c1b07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.

This file was deleted.

This file was deleted.

16 changes: 16 additions & 0 deletions app/views/spree/admin/shipping_methods/new.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- content_for :page_title do
= Spree.t(:new_shipping_method)
- content_for :page_actions do
%li
= button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, :icon => 'icon-arrow-left'
%div
= render :partial => 'spree/shared/error_messages', :locals => { :target => @shipping_method }
%div
= form_for [:admin, @shipping_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: :shipping_method }
.clear
%div
= render :partial => 'spree/admin/shared/new_resource_links'

0 comments on commit 56c1b07

Please sign in to comment.