Merge branch 'adminbsb_material_ui' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -337,8 +337,9 @@ class Ability
|
|||||||
elsif user.role == "kitchen"
|
elsif user.role == "kitchen"
|
||||||
|
|
||||||
#oqs Home
|
#oqs Home
|
||||||
|
can :manage, OrderQueueStation
|
||||||
can :index, :home
|
can :index, :home
|
||||||
can :index, :show
|
# can :index, :show
|
||||||
can :get_order_items, :home
|
can :get_order_items, :home
|
||||||
can :get_items_by_oqs, :home
|
can :get_items_by_oqs, :home
|
||||||
can :update_delivery_status, :home
|
can :update_delivery_status, :home
|
||||||
|
|||||||
@@ -35,10 +35,14 @@
|
|||||||
<% elsif current_login_employee.role == "supervisor" || current_login_employee.role == "cashier" || current_login_employee.role == "waiter" %>
|
<% elsif current_login_employee.role == "supervisor" || current_login_employee.role == "cashier" || current_login_employee.role == "waiter" %>
|
||||||
<a href="<%= origami_dashboard_path %>">
|
<a href="<%= origami_dashboard_path %>">
|
||||||
<%end%>
|
<%end%>
|
||||||
|
<a href="#">
|
||||||
<i class="material-icons">home</i>
|
<i class="material-icons">home</i>
|
||||||
<span><%= t :dashboard %></span>
|
<span><%= t :dashboard %></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<% if current_login_employee.role == "kitchen" %>
|
||||||
|
<li class="header"><%= t :main_navigation %></li>
|
||||||
|
<% end %>
|
||||||
<% if can? :menage, OrderQueueStation %>
|
<% if can? :menage, OrderQueueStation %>
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= oqs_root_path %>">
|
<a href="<%= oqs_root_path %>">
|
||||||
@@ -48,6 +52,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if can? :index, :home %>
|
<% if can? :index, :home %>
|
||||||
|
<% if current_login_employee.role != "kitchen" %>
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= origami_dashboard_path %>">
|
<a href="<%= origami_dashboard_path %>">
|
||||||
<i class="material-icons">monetization_on</i>
|
<i class="material-icons">monetization_on</i>
|
||||||
@@ -55,17 +60,19 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if can? :menage, Customer %>
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:void(0);" class="menu-toggle">
|
<a href="javascript:void(0);" class="menu-toggle">
|
||||||
<i class="material-icons">widgets</i>
|
<i class="material-icons">widgets</i>
|
||||||
<span><%= t :crm %></span>
|
<span><%= t :crm %></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="ml-menu">
|
<ul class="ml-menu">
|
||||||
<% if can? :menage, Customer %>
|
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= crm_customers_path %>"><%= t :customer %></a>
|
<a href="<%= crm_customers_path %>"><%= t :customer %></a>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
|
||||||
<% if can? :menage, DiningQueue %>
|
<% if can? :menage, DiningQueue %>
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= crm_dining_queues_path %>"><%= t :queue %></a>
|
<a href="<%= crm_dining_queues_path %>"><%= t :queue %></a>
|
||||||
@@ -73,6 +80,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<% end %>
|
||||||
<% if can? :menage, Inventory %>
|
<% if can? :menage, Inventory %>
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= inventory_path %>">
|
<a href="<%= inventory_path %>">
|
||||||
|
|||||||
Reference in New Issue
Block a user