Skip to content

Commit

Permalink
Merge pull request #2752 from HugsDaniel/apply_overrides_to_shipping_…
Browse files Browse the repository at this point in the history
…methods_new

[Spree Upgrade] Replace Spree::ShippingMethods new view by our own and apply overrides
  • Loading branch information
mkllnk authored Sep 25, 2018
2 parents 5ede6a4 + 0d7e24e commit 267edbd
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 267edbd

Please sign in to comment.