adm route to dashboard

This commit is contained in:
Yan
2017-07-04 19:19:09 +06:30
parent d51b1a0b9e
commit d8ba15f6ce
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ class HomeController < ApplicationController
if @employee != nil
if @employee.role == "administrator"
session[:session_token] = @employee.token_session
puts "ADDDDDD"
redirect_to dashboard_path
elsif @employee.role == "cashier"
session[:session_token] = @employee.token_session
@@ -83,7 +82,7 @@ class HomeController < ApplicationController
if !shift.nil?
redirect_to origami_root_path
else
redirect_to new_origami_shift_path
redirect_to dashboard_path
end
elsif employee.role == "cashier"
#check if cashier has existing open cashier

View File

@@ -105,7 +105,8 @@
</div>
<div class="col-lg-2 col-md-2 col-sm-2">
<button id="refreshbutton" type="button" class="btn btn-block" style="border-radius:5px;color:#fff;background-color:red;"> Refresh off </button>
<button id="cash_in" type="button" class="btn btn-block btn-primary" style="border-radius:5px;color:#fff;"> Cash In </button>
<!-- TEMP Disable for BITP -->
<!-- <button id="cash_in" type="button" class="btn btn-block btn-primary" style="border-radius:5px;color:#fff;"> Cash In </button> -->
<button id="cash_out" type="button" class="btn btn-block btn-primary" style="border-radius:5px;color:#fff;"> Cash Out </button>
<button id="close_cashier" type="button" class="btn btn-block btn-primary" style="border-radius:5px;color:#fff;"> Close Cashier </button>
</div>

BIN
dump.rdb

Binary file not shown.