rake
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
<%if ShiftSale.current_open_shift(current_login_employee) %>
|
||||
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
|
||||
<%if current_login_employee.role == "cashier" && food_court %>
|
||||
<a class="navbar-brand mbl_view" href="<%=foodcourt_food_court_path%>" style="margin-left: 20px;">
|
||||
<a class="navbar-brand mbl_view" href="<%=foodcourt_food_court_path%>" style="margin-left: 20px;">
|
||||
<%else%>
|
||||
<a class="navbar-brand mbl_view" href="<%=origami_dashboard_path%>" style="margin-left: 20px;">
|
||||
<a class="navbar-brand mbl_view" href="<%=origami_dashboard_path%>" style="margin-left: 20px;">
|
||||
<%end%>
|
||||
<%else%>
|
||||
<a class="navbar-brand mbl_view" href="" style="margin-left: 20px;">
|
||||
@@ -161,15 +161,15 @@
|
||||
</a>
|
||||
</p>
|
||||
</li>
|
||||
<% end %>
|
||||
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
|
||||
<% if food_court %>
|
||||
<li>
|
||||
<p class="waves-effect waves-block p-l-30 m-b-5 close_cashier">
|
||||
<i class="material-icons font-7 logout_icon">close</i>
|
||||
<span class="font-15">Close Cashier</span>
|
||||
</p>
|
||||
</li>
|
||||
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
|
||||
<% if food_court %>
|
||||
<li>
|
||||
<p class="waves-effect waves-block p-l-30 m-b-5 close_cashier">
|
||||
<i class="material-icons font-7 logout_icon">close</i>
|
||||
<span class="font-15">Close Cashier</span>
|
||||
</p>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<%= render 'layouts/header' %>
|
||||
<section>
|
||||
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
|
||||
<% if food_court %>
|
||||
<% if food_court && current_user.role=='cashier'%>
|
||||
<%= render 'layouts/foodcourt_left_sidebar' %>
|
||||
<% else %>
|
||||
<%= render 'layouts/left_sidebar' %>
|
||||
|
||||
Reference in New Issue
Block a user