mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Convert orders submenu partial to haml
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
<% content_for :sub_menu do %>
|
||||
<ul id="sub_nav" data-hook="admin_order_sub_tabs" class="inline-menu">
|
||||
<%= tab :orders, :match_path => '/orders' %>
|
||||
<%= tab :bulk_order_management, :match_path => '/orders/bulk_management' %>
|
||||
<% if subscriptions_enabled? %>
|
||||
<%= tab :subscriptions, :match_path => '/subscriptions', url: main_app.admin_subscriptions_path %>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
6
app/views/spree/admin/shared/_order_sub_menu.html.haml
Normal file
6
app/views/spree/admin/shared/_order_sub_menu.html.haml
Normal file
@@ -0,0 +1,6 @@
|
||||
- content_for :sub_menu do
|
||||
%ul#sub_nav.inline-menu
|
||||
= tab :orders, :match_path => '/orders'
|
||||
= tab :bulk_order_management, :match_path => '/orders/bulk_management'
|
||||
- if subscriptions_enabled?
|
||||
= tab :subscriptions, :match_path => '/subscriptions', url: main_app.admin_subscriptions_path
|
||||
Reference in New Issue
Block a user