mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Apply submenu override
This commit is contained in:
@@ -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' %>")
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user