added cashier station time
This commit is contained in:
@@ -19,6 +19,7 @@ class ApplicationController < ActionController::Base
|
|||||||
|
|
||||||
def current_login_employee
|
def current_login_employee
|
||||||
@employee = Employee.find_by_token_session(session[:session_token])
|
@employee = Employee.find_by_token_session(session[:session_token])
|
||||||
|
@time = Time.now
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="container-fluid" style="min-height:30px; padding-left:0px !important; padding-right:0px !important; background:#54A5AF; margin-bottom:5px">
|
<div class="container-fluid" style="min-height:30px; padding-left:0px !important; padding-right:0px !important; background:#54A5AF; margin-bottom:5px">
|
||||||
<div style="padding-top:5px;padding-bottom:5px;margin-left:15px; margin-right:15px;">
|
<div style="padding-top:5px;padding-bottom:5px;margin-left:15px; margin-right:15px;">
|
||||||
<div style="float:left;margin-top:3px;text-align:left; width:300px;color:#ffffff">
|
<div style="float:left;margin-top:3px;text-align:left;color:#ffffff">
|
||||||
<strong>CASHIER STATION 1 - CLOCK</strong>
|
<strong>Cashier Station 1 - <%= Time.now.strftime('%a, %d %b %Y %H:%M:%S %p') %></strong>
|
||||||
</div>
|
</div>
|
||||||
<div style="float:right; margin-top:3px; text-align:right;width:200px;color:#ffffff">
|
<div style="float:right; margin-top:3px; text-align:right;width:200px;color:#ffffff">
|
||||||
<% if current_login_employee %>
|
<% if current_login_employee %>
|
||||||
|
|||||||
Reference in New Issue
Block a user