mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Add stub page for managing enterprise relationships
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
module Admin
|
||||
class EnterpriseRelationshipsController < ResourceController
|
||||
def index
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
8
app/views/admin/enterprise_relationships/index.html.haml
Normal file
8
app/views/admin/enterprise_relationships/index.html.haml
Normal file
@@ -0,0 +1,8 @@
|
||||
- content_for :page_title do
|
||||
Enterprise Relationships
|
||||
|
||||
= render 'admin/shared/enterprises_sub_menu'
|
||||
|
||||
%table#enterprise-relationships
|
||||
%tr
|
||||
%td Hello, world.
|
||||
@@ -8,6 +8,8 @@
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<%= render 'admin/shared/enterprises_sub_menu' %>
|
||||
|
||||
|
||||
<%= form_for @enterprise_set, :url => main_app.bulk_update_admin_enterprises_path do |f| %>
|
||||
<table class="index" id="listing_enterprises">
|
||||
|
||||
4
app/views/admin/shared/_enterprises_sub_menu.html.haml
Normal file
4
app/views/admin/shared/_enterprises_sub_menu.html.haml
Normal file
@@ -0,0 +1,4 @@
|
||||
= content_for :sub_menu do
|
||||
%ul#sub_nav.inline-menu{"data-hook" => "admin_order_sub_tabs"}
|
||||
= tab :enterprises, url: main_app.admin_enterprises_path
|
||||
= tab :relationships, url: main_app.admin_enterprise_relationships_path
|
||||
@@ -41,6 +41,8 @@ Openfoodnetwork::Application.routes.draw do
|
||||
post :bulk_update, :on => :collection, :as => :bulk_update
|
||||
end
|
||||
|
||||
resources :enterprise_relationships
|
||||
|
||||
resources :enterprise_fees do
|
||||
post :bulk_update, :on => :collection, :as => :bulk_update
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user