Add stub page for managing enterprise relationships

This commit is contained in:
Rohan Mitchell
2014-05-15 12:19:48 +10:00
parent 4f1b8d06e7
commit aa53d82386
5 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
module Admin
class EnterpriseRelationshipsController < ResourceController
def index
end
end
end

View 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.

View File

@@ -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">

View 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

View File

@@ -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