dashboard

This commit is contained in:
Min Zeya Phyo
2017-05-11 14:14:29 +06:30
parent c1c72eca30
commit 56a465448a

View File

@@ -2,7 +2,18 @@
<div class="row">
<div class="col-md-4 col-sm-6 col-md-offset-4 col-sm-offset-3">
<%= current_login_employee.name %>
<%= current_login_employee.role %>
<% if current_login_employee.role = "admin" %>
<% elsif current_login_employee.role = "cashier" %>
<%= link_to "Cashier Station", origami_path %>
<% elsif current_login_employee = "waiter" %>
<%= link_to "Cashier Station", oishi_path %>
<% else %>
<%= link_to "Cashier Station", oishi_path %>
<% end %>
</div>
</div>