mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Move hubs_sidebar to the last 4 columns at the top of the page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
=admin_inject_shipping_method
|
||||
= admin_inject_shipping_method
|
||||
.alpha.eleven.columns{ "ng-app" => "admin.shippingMethods",
|
||||
"ng-controller" => "shippingMethodCtrl" }
|
||||
.row
|
||||
@@ -46,26 +46,26 @@
|
||||
.alpha.eleven.columns
|
||||
= render partial: 'spree/admin/shared/calculator_fields', locals: { f: f }
|
||||
|
||||
.alpha.six.columns
|
||||
.alpha.six.columns
|
||||
%fieldset.categories.no-border-bottom
|
||||
%legend{align: "center"}= t('.categories')
|
||||
= f.field_container :categories do
|
||||
- Spree::ShippingCategory.all.each do |category|
|
||||
= label_tag do
|
||||
= check_box_tag('shipping_method[shipping_categories][]', category.id, @shipping_method.shipping_categories.include?(category))
|
||||
= category.name
|
||||
%br/
|
||||
= error_message_on :shipping_method, :shipping_category_id
|
||||
.row
|
||||
.alpha.eleven.columns
|
||||
%fieldset.categories.no-border-bottom
|
||||
%legend{align: "center"}= t('.categories')
|
||||
= f.field_container :categories do
|
||||
- Spree::ShippingCategory.all.each do |category|
|
||||
= label_tag do
|
||||
= check_box_tag('shipping_method[shipping_categories][]', category.id, @shipping_method.shipping_categories.include?(category))
|
||||
= category.name
|
||||
%br/
|
||||
= error_message_on :shipping_method, :shipping_category_id
|
||||
|
||||
.alpha.six.columns
|
||||
%fieldset.no-border-bottom
|
||||
%legend{align: "center"}= t('.zones')
|
||||
= f.field_container :zones do
|
||||
- shipping_method_zones = @shipping_method.zones.to_a
|
||||
- Spree::Zone.all.each do |zone|
|
||||
= label_tag do
|
||||
= check_box_tag('shipping_method[zones][]', zone.id, shipping_method_zones.include?(zone))
|
||||
= zone.name
|
||||
%br/
|
||||
= error_message_on :shipping_method, :zone_id
|
||||
.alpha.eleven.columns
|
||||
%fieldset.no-border-bottom
|
||||
%legend{align: "center"}= t('.zones')
|
||||
= f.field_container :zones do
|
||||
- shipping_method_zones = @shipping_method.zones.to_a
|
||||
- Spree::Zone.all.each do |zone|
|
||||
= label_tag do
|
||||
= check_box_tag('shipping_method[zones][]', zone.id, shipping_method_zones.include?(zone))
|
||||
= zone.name
|
||||
%br/
|
||||
= error_message_on :shipping_method, :zone_id
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
%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 }
|
||||
.alpha.four.columns
|
||||
= render partial: 'spree/admin/shared/hubs_sidebar', locals: { f: f, klass: :shipping_method }
|
||||
.clear
|
||||
%div
|
||||
.row
|
||||
= render partial: 'spree/admin/shared/edit_resource_links'
|
||||
|
||||
Reference in New Issue
Block a user