added cashier station time

This commit is contained in:
Nweni
2017-06-21 05:55:45 +06:30
parent fa309fb89a
commit 895e028e7c
2 changed files with 3 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ class ApplicationController < ActionController::Base
def current_login_employee
@employee = Employee.find_by_token_session(session[:session_token])
@time = Time.now
end
private

View File

@@ -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 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">
<strong>CASHIER STATION 1 - CLOCK</strong>
<div style="float:left;margin-top:3px;text-align:left;color:#ffffff">
<strong>Cashier Station 1 - <%= Time.now.strftime('%a, %d %b %Y %H:%M:%S %p') %></strong>
</div>
<div style="float:right; margin-top:3px; text-align:right;width:200px;color:#ffffff">
<% if current_login_employee %>