Apply submenu override

This commit is contained in:
Matt-Yorkley
2018-09-11 12:17:28 +01:00
parent f08d6389d8
commit 4d9ebf0550
2 changed files with 4 additions and 5 deletions

View File

@@ -1,4 +0,0 @@
Deface::Override.new(:virtual_path => "spree/admin/orders/index",
:name => "add_orders_admin_sub_menu",
:insert_before => "code[erb-silent]:contains('content_for :table_filter_title do')",
:text => "<%= render :partial => 'spree/admin/shared/order_sub_menu' %>")

View File

@@ -3,6 +3,7 @@
- content_for :page_actions do
%li
= button_link_to t(:new_order), new_admin_order_url, :icon => 'icon-plus', :id => 'admin_new_order'
= render partial: 'spree/admin/shared/order_sub_menu'
- content_for :table_filter_title do
= t(:search)
- content_for :table_filter do
@@ -56,6 +57,7 @@
.actions.filter-actions
%div{"data-hook" => "admin_orders_index_search_buttons"}
= button t(:filter_results), 'icon-search'
- unless @orders.empty?
%table#listing_orders.index.responsive{"data-hook" => "", width: "100%", "ng-app" => "ofn.admin"}
%colgroup
@@ -104,4 +106,5 @@
- else
.no-objects-found
= t(:no_orders_found)
= paginate @orders
= paginate @orders