Skip to content

Commit

Permalink
Add a shipping tabs sub section partial
Browse files Browse the repository at this point in the history
This partial will be responsible for configuration menu settings related
to shipping.
  • Loading branch information
Murph33 committed Mar 14, 2016
1 parent f04b9ef commit 2d25852
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions backend/app/views/spree/admin/shared/_shipping_tabs.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<% content_for :tabs do %>
<nav>
<ul class="tabs" data-hook="admin_settings_shipping_tabs">
<% if can?(:display, Spree::ShippingMethod) %>
<%= settings_tab_item Spree::ShippingMethod.model_name.human(count: :other), admin_shipping_methods_path %>
<% end %>
<% if can?(:display, Spree::ShippingCategory) %>
<%= settings_tab_item Spree::ShippingCategory.model_name.human(count: :other), admin_shipping_categories_path %>
<% end %>
<% if can?(:display, Spree::StockLocation) %>
<%= settings_tab_item Spree::StockLocation.model_name.human(count: :other), spree.admin_stock_locations_path %>
<% end %>
</ul>
</nav>
<% end %>

0 comments on commit 2d25852

Please sign in to comment.