-
-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2752 from HugsDaniel/apply_overrides_to_shipping_…
…methods_new [Spree Upgrade] Replace Spree::ShippingMethods new view by our own and apply overrides
- Loading branch information
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
app/overrides/spree/admin/shipping_methods/new/add_hubs_sidebar.html.haml.deface
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
app/overrides/spree/admin/shipping_methods/new/remove_configuration_sidebar.deface
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |