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

@@ -35,10 +35,14 @@
<% elsif current_login_employee.role == "supervisor" || current_login_employee.role == "cashier" || current_login_employee.role == "waiter" %>
<a href="<%= origami_dashboard_path %>">
<%end%>
<a href="#">
<i class="material-icons">home</i>
<span><%= t :dashboard %></span>
</a>
</li>
<% if current_login_employee.role == "kitchen" %>
<li class="header"><%= t :main_navigation %></li>
<% end %>
<% if can? :menage, OrderQueueStation %>
<li>
<a href="<%= oqs_root_path %>">
@@ -47,25 +51,28 @@
</a>
</li>
<% end %>
<% if can? :index, :home %>
<li>
<a href="<%= origami_dashboard_path %>">
<i class="material-icons">monetization_on</i>
<span><%= t :origami %></span>
</a>
</li>
<% if can? :index, :home %>
<% if current_login_employee.role != "kitchen" %>
<li>
<a href="<%= origami_dashboard_path %>">
<i class="material-icons">monetization_on</i>
<span><%= t :origami %></span>
</a>
</li>
<% end %>
<% end %>
<% if can? :menage, Customer %>
<li>
<a href="javascript:void(0);" class="menu-toggle">
<i class="material-icons">widgets</i>
<span><%= t :crm %></span>
</a>
<ul class="ml-menu">
<% if can? :menage, Customer %>
<li>
<a href="<%= crm_customers_path %>"><%= t :customer %></a>
</li>
<% end %>
<% if can? :menage, DiningQueue %>
<li>
<a href="<%= crm_dining_queues_path %>"><%= t :queue %></a>
@@ -73,6 +80,7 @@
<% end %>
</ul>
</li>
<% end %>
<% if can? :menage, Inventory %>
<li>
<a href="<%= inventory_path %>">