update oqs left sidebar

This commit is contained in:
Aung Myo
2018-08-20 15:43:25 +06:30
parent a704decb83
commit fe11753663
2 changed files with 19 additions and 10 deletions

View File

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

View File

@@ -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,24 +52,27 @@
</li> </li>
<% end %> <% end %>
<% if can? :index, :home %> <% if can? :index, :home %>
<li> <% if current_login_employee.role != "kitchen" %>
<a href="<%= origami_dashboard_path %>"> <li>
<i class="material-icons">monetization_on</i> <a href="<%= origami_dashboard_path %>">
<span><%= t :origami %></span> <i class="material-icons">monetization_on</i>
</a> <span><%= t :origami %></span>
</li> </a>
</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 %>">