Merge branch 'r-1902001-01' of gitlab.com:code2lab/SXRestaurant into r-1902001-01
This commit is contained in:
@@ -2323,7 +2323,7 @@
|
|||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.navbar > .container .navbar-brand,
|
.navbar > .container .navbar-brand,
|
||||||
.navbar > .container-fluid .navbar-brand {
|
.navbar > .container-fluid .navbar-brand {
|
||||||
margin-left: 35px;
|
margin-left: 15px;
|
||||||
width: 73%; }
|
width: 73%; }
|
||||||
.navbar .navbar-header {
|
.navbar .navbar-header {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -8054,4 +8054,3 @@ html.ie11 .dropdown-menu ul.menu li a {
|
|||||||
|
|
||||||
html.ie11 .bs-searchbox .form-control {
|
html.ie11 .bs-searchbox .form-control {
|
||||||
width: 90%; }
|
width: 90%; }
|
||||||
|
|
||||||
|
|||||||
@@ -313,10 +313,34 @@ i.logout_icon{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-header{
|
.page-header{
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-closed .bars:after, .ls-closed .bars:before{
|
.ls-closed .bars:after, .ls-closed .bars:before{
|
||||||
top: 14px;
|
top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mbl_card{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl_lbl{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-style{
|
||||||
|
padding: 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.m-auto{
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.online_order{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-right-btn{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,10 +165,34 @@ i.logout_icon{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-header{
|
.page-header{
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-closed .bars:after, .ls-closed .bars:before{
|
.ls-closed .bars:after, .ls-closed .bars:before{
|
||||||
top: 14px;
|
top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mbl_card{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl_lbl{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-style{
|
||||||
|
padding: 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.m-auto{
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.online_order{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-right-btn{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ i.logout_icon{
|
|||||||
@media screen and (max-width: 785px) {
|
@media screen and (max-width: 785px) {
|
||||||
#setting{ display: none;}
|
#setting{ display: none;}
|
||||||
.menu-up{ display: none;}
|
.menu-up{ display: none;}
|
||||||
|
.card-btn{padding: 0px 35px;}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 785px) {
|
@media screen and (max-width: 785px) {
|
||||||
@@ -174,10 +175,34 @@ i.logout_icon{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-header{
|
.page-header{
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-closed .bars:after, .ls-closed .bars:before{
|
.ls-closed .bars:after, .ls-closed .bars:before{
|
||||||
top: 14px;
|
top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mbl_card{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl_lbl{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-style{
|
||||||
|
padding: 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.m-auto{
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.online_order{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-right-btn{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -324,10 +324,34 @@ i.logout_icon{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-header{
|
.page-header{
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-closed .bars:after, .ls-closed .bars:before{
|
.ls-closed .bars:after, .ls-closed .bars:before{
|
||||||
top: 14px;
|
top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mbl_card{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl_lbl{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-style{
|
||||||
|
padding: 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.m-auto{
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.online_order{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-right-btn{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,5 +122,9 @@
|
|||||||
@media screen and (max-width: 785px) {
|
@media screen and (max-width: 785px) {
|
||||||
.login_pwd{width: 90%;}
|
.login_pwd{width: 90%;}
|
||||||
.login_ent{width: 10%;}
|
.login_ent{width: 10%;}
|
||||||
|
// .card-btn{padding: 0px 35px;}
|
||||||
|
// .nav-tabs{padding: 0px 44px;}
|
||||||
|
.box{margin: unset;}
|
||||||
|
.mbl-btn-usrgp{width: 48%;}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -703,10 +703,34 @@ nav.pagination .page a:hover,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-header{
|
.page-header{
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-closed .bars:after, .ls-closed .bars:before{
|
.ls-closed .bars:after, .ls-closed .bars:before{
|
||||||
top: 14px;
|
top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mbl_card{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl_lbl{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-style{
|
||||||
|
padding: 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.m-auto{
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.online_order{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mbl-right-btn{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,23 +99,23 @@
|
|||||||
to_time = ''
|
to_time = ''
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
<div class="col-lg-3 col-md-3 col-sm-3 col-mbl-view">
|
<div class="col-lg-3 col-md-3 col-sm-3 col-mbl-view mbl-style">
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.from") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.from") %></label>
|
||||||
<input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" value="<%= from_date %>" placeholder="From date" style="height: 35px;">
|
<input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" value="<%= from_date %>" placeholder="From date" style="height: 35px;">
|
||||||
<span id="fromErr" style="color:red;"></span>
|
<span id="fromErr" style="color:red;"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3 col-md-3 col-sm-3 col-mbl-view">
|
<div class="col-lg-3 col-md-3 col-sm-3 col-mbl-view mbl-style">
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.to") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.to") %></label>
|
||||||
<input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" value="<%= to_date %>" placeholder="To date" style="height: 35px;">
|
<input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" value="<%= to_date %>" placeholder="To date" style="height: 35px;">
|
||||||
<span id="toErr" style="color:red;"></span>
|
<span id="toErr" style="color:red;"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl-view">
|
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl-view mbl-style">
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.from_time") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.from_time") %></label>
|
||||||
<input data-behaviour='timepicker' class="form-control timepicker" name="from_time" id="from_time" type="text" value="<%= from_time %>" placeholder="From Time" style="height: 35px;">
|
<input data-behaviour='timepicker' class="form-control timepicker" name="from_time" id="from_time" type="text" value="<%= from_time %>" placeholder="From Time" style="height: 35px;">
|
||||||
<span id="from_timeErr" style="color:red;"></span>
|
<span id="from_timeErr" style="color:red;"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl-view">
|
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl-view mbl-style">
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.to_time") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.to_time") %></label>
|
||||||
<input data-behaviour='timepicker' class="form-control timepicker" name="to_time" id="to_time" type="text" value="<%= to_time %>" placeholder="To time" style="height: 35px;">
|
<input data-behaviour='timepicker' class="form-control timepicker" name="to_time" id="to_time" type="text" value="<%= to_time %>" placeholder="To time" style="height: 35px;">
|
||||||
<span id="to_timeErr" style="color:red;"></span>
|
<span id="to_timeErr" style="color:red;"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -135,8 +135,6 @@
|
|||||||
<div class="pin_pad left" data-value="0">0</div>
|
<div class="pin_pad left" data-value="0">0</div>
|
||||||
<div class="pin_pad bg-blue-grey" data-value="CLR">CLR</div>
|
<div class="pin_pad bg-blue-grey" data-value="CLR">CLR</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css"> -->
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css"> -->
|
||||||
|
|
||||||
<%= stylesheet_link_tag 'login', media: 'all', 'data-turbolinks-track': 'reload' %>
|
<%= stylesheet_link_tag 'login', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||||
|
|
||||||
<!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
<!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> -->
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> -->
|
||||||
<%= javascript_include_tag 'login', 'data-turbolinks-track': 'reload' %>
|
<%= javascript_include_tag 'login', 'data-turbolinks-track': 'reload' %>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="login_dashboard">
|
<body class="login_dashboard">
|
||||||
@@ -39,8 +39,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% flash.each do |type, message| %>
|
<% flash.each do |type, message| %>
|
||||||
<%
|
<%
|
||||||
if type == "notice"
|
if type == "notice"
|
||||||
color = "alert-success"
|
color = "alert-success"
|
||||||
elsif type == "error"
|
elsif type == "error"
|
||||||
color = "alert-danger"
|
color = "alert-danger"
|
||||||
@@ -49,11 +49,11 @@
|
|||||||
else
|
else
|
||||||
color = "bg-black"
|
color = "bg-black"
|
||||||
end %>
|
end %>
|
||||||
|
|
||||||
<p id="noti" class="hidden noti" data-placement-from="top" data-message="<%=message%>" data-placement-align="center"
|
<p id="noti" class="hidden noti" data-placement-from="top" data-message="<%=message%>" data-placement-align="center"
|
||||||
data-animate-enter="" data-animate-exit="" data-color-name="<%=color%>" >
|
data-animate-enter="" data-animate-exit="" data-color-name="<%=color%>" >
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<!-- #END# Page Loader -->
|
<!-- #END# Page Loader -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -62,25 +62,25 @@
|
|||||||
<img src="/image/SX-logo.png" width="150px" height="150px">
|
<img src="/image/SX-logo.png" width="150px" height="150px">
|
||||||
<p>
|
<p>
|
||||||
<small>Version - 1.0.1</small>
|
<small>Version - 1.0.1</small>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12_ col-md-12 col-sm-12 col-xs-12 text-center">
|
<div class="col-lg-12_ col-md-12 col-sm-12 col-xs-12 text-center">
|
||||||
<div class="current-shop-name">
|
<div class="current-shop-name">
|
||||||
<span><%= shop_detail.name %></span>
|
<span><%= shop_detail.name %></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bg-white box">
|
<div class="row bg-white box">
|
||||||
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 p-t-20 p-l-10 p-r-10 p-b-50 bg-white">
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 p-t-20 p-l-10 p-r-10 p-b-50 bg-white">
|
||||||
<div class="row justify-content-center form-group">
|
<div class="row justify-content-center form-group">
|
||||||
<input type="text" class="form-control col-4" id="emp_id" placeholder="Employee ID">
|
<input type="text" class="form-control col-4" id="emp_id" placeholder="Employee ID">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div class="card padding-10">
|
<div class="card padding-10">
|
||||||
<div class="card-content">
|
<div class="card-content card-btn">
|
||||||
<div class='col-md-12'>
|
<div class='col-md-12'>
|
||||||
<div class='row bottom'>
|
<div class='row bottom'>
|
||||||
<div class="pin_pad " data-value="1">1</div>
|
<div class="pin_pad " data-value="1">1</div>
|
||||||
@@ -103,14 +103,14 @@
|
|||||||
<div class="pin_pad left bg-indigo" data-value="ENT">ENT</div> -->
|
<div class="pin_pad left bg-indigo" data-value="ENT">ENT</div> -->
|
||||||
<div class="pin_pad bg-blue-grey" data-value="BAC">BACK</div>
|
<div class="pin_pad bg-blue-grey" data-value="BAC">BACK</div>
|
||||||
<div class="pin_pad left" data-value="0">0</div>
|
<div class="pin_pad left" data-value="0">0</div>
|
||||||
<div class="pin_pad bg-grey left" data-value="CLR">CLR</div>
|
<div class="pin_pad bg-grey left" data-value="CLR">CLR</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 p-t-20 p-l-10 p-r-10 p-b-50 bg-white">
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 p-t-20 p-l-10 p-r-10 p-b-50 bg-white">
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<% @roles.each do |role| %>
|
<% @roles.each do |role| %>
|
||||||
<%if role != "administrator" %>
|
<%if role != "administrator" %>
|
||||||
@@ -119,8 +119,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content" style="max-height:650px; overflow:auto">
|
<div class="tab-content" style="max-height:650px; overflow:auto">
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
<div class="tab-pane" id="<%=role%>" role="tabpanel" style="max-height:; overflow:auto">
|
<div class="tab-pane" id="<%=role%>" role="tabpanel" style="max-height:; overflow:auto">
|
||||||
<% @employees.each do |employee| %>
|
<% @employees.each do |employee| %>
|
||||||
<%if employee.role == role %>
|
<%if employee.role == role %>
|
||||||
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 empBtn" data-formid="#form_<%= employee.emp_id %>" style="float: left;">
|
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 empBtn mbl-btn-usrgp" data-formid="#form_<%= employee.emp_id %>" style="float: left;">
|
||||||
<form id="form_<%= employee.emp_id %>" action="<%= emp_login_path(employee.emp_id) %>" method="PATCH">
|
<form id="form_<%= employee.emp_id %>" action="<%= emp_login_path(employee.emp_id) %>" method="PATCH">
|
||||||
</form>
|
</form>
|
||||||
<%if employee.image_path.present? %>
|
<%if employee.image_path.present? %>
|
||||||
@@ -138,20 +138,20 @@
|
|||||||
<div class="p-name"><b><%= employee.name%></b>
|
<div class="p-name"><b><%= employee.name%></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="login_dashboard p-card">
|
<div class="login_dashboard p-card">
|
||||||
<i class="material-icons style_icon">person</i>
|
<i class="material-icons style_icon">person</i>
|
||||||
<div class="p-name"><b><%= employee.name%></b>
|
<div class="p-name"><b><%= employee.name%></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="col-xs-12 col-sm-12 col-md-2 col-lg-2"> </div> -->
|
<!-- <div class="col-xs-12 col-sm-12 col-md-2 col-lg-2"> </div> -->
|
||||||
</div>
|
</div>
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
var text = $("#noti").attr('data-message');
|
var text = $("#noti").attr('data-message');
|
||||||
|
|
||||||
if (text != null || colorName != null){
|
if (text != null || colorName != null){
|
||||||
showNotification(colorName, text, placementFrom, placementAlign, animateEnter, animateExit);
|
showNotification(colorName, text, placementFrom, placementAlign, animateEnter, animateExit);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(".empBtn").click(function (event) {
|
$(".empBtn").click(function (event) {
|
||||||
@@ -181,15 +181,15 @@
|
|||||||
$(item).submit();
|
$(item).submit();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('ul.nav.nav-tabs li a').click(function() {
|
$('ul.nav.nav-tabs li a').click(function() {
|
||||||
var bb = $('.nav-item').children()[0];
|
var bb = $('.nav-item').children()[0];
|
||||||
$(bb).removeClass('active_tab');
|
$(bb).removeClass('active_tab');
|
||||||
$(this).parent().addClass('active_tab').siblings().removeClass('active_tab');
|
$(this).parent().addClass('active_tab').siblings().removeClass('active_tab');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#emp_id").focus();
|
$("#emp_id").focus();
|
||||||
$(".pin_pad").click(function (event) {
|
$(".pin_pad").click(function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var value = $(this).data("value");
|
var value = $(this).data("value");
|
||||||
|
|
||||||
if (value == "CLR") {
|
if (value == "CLR") {
|
||||||
@@ -213,11 +213,11 @@
|
|||||||
|
|
||||||
$('#emp_id').keyup(function(e) {
|
$('#emp_id').keyup(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var txtVal = this.value;
|
var txtVal = this.value;
|
||||||
|
|
||||||
if(txtVal!=''){
|
if(txtVal!=''){
|
||||||
if ($.isNumeric(txtVal)) {
|
if ($.isNumeric(txtVal)) {
|
||||||
if( txtVal.length === 3 ) {
|
if( txtVal.length === 3 ) {
|
||||||
window.location.href = '/auth/'+txtVal;
|
window.location.href = '/auth/'+txtVal;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@@ -228,10 +228,10 @@
|
|||||||
|
|
||||||
var aa = $('.nav-item').children().attr('href').replace('#','');
|
var aa = $('.nav-item').children().attr('href').replace('#','');
|
||||||
$('#'+aa).addClass('active');
|
$('#'+aa).addClass('active');
|
||||||
var bb = $('.nav-item').children()[0];
|
var bb = $('.nav-item').children()[0];
|
||||||
$(bb).parent().addClass('active_tab').siblings().removeClass('active_tab');
|
$(bb).parent().addClass('active_tab').siblings().removeClass('active_tab');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function showNotification(colorName, text, placementFrom, placementAlign, animateEnter, animateExit) {
|
function showNotification(colorName, text, placementFrom, placementAlign, animateEnter, animateExit) {
|
||||||
if (colorName === null || colorName === '') { colorName = 'bg-black'; }
|
if (colorName === null || colorName === '') { colorName = 'bg-black'; }
|
||||||
@@ -268,6 +268,3 @@
|
|||||||
}
|
}
|
||||||
//end Notificaiotn message
|
//end Notificaiotn message
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<div class="p-l-15">
|
<div class="p-l-15">
|
||||||
|
|
||||||
<%= form_tag report_path, :method => :get, :id=>"frm_report", :class => "form" do %>
|
<%= form_tag report_path, :method => :get, :id=>"frm_report", :class => "form" do %>
|
||||||
<% if period_type != false %>
|
<% if period_type != false %>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2">
|
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl mbl-style">
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.select_period") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.select_period") %></label>
|
||||||
<select name="period" id="sel_period" class="form-control">
|
<select name="period" id="sel_period" class="form-control">
|
||||||
<option value=""><%= t("views.right_panel.detail.select_period") %></option>
|
<option value=""><%= t("views.right_panel.detail.select_period") %></option>
|
||||||
<option value="0">Today</option>
|
<option value="0">Today</option>
|
||||||
@@ -21,20 +21,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="report_type" value="daily_sale" id="sel_sale_type">
|
<input type="hidden" name="report_type" value="daily_sale" id="sel_sale_type">
|
||||||
|
|
||||||
<div class="col-lg-3 col-md-3 col-sm-3">
|
<div class="col-lg-3 col-md-3 col-sm-3 col-mbl-view mbl-style">
|
||||||
<!-- <label class="">Select Shift Period</label> -->
|
<!-- <label class="">Select Shift Period</label> -->
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.from") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.from") %></label>
|
||||||
<input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" placeholder="From date" style="height: 35px;">
|
<input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" placeholder="From date" style="height: 35px;">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3 col-md-3 col-sm-3">
|
<div class="col-lg-3 col-md-3 col-sm-3 col-mbl-view mbl-style">
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.to") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.to") %></label>
|
||||||
<input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" placeholder="To date" style="height: 35px;">
|
<input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" placeholder="To date" style="height: 35px;">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2 margin-top-20">
|
<div class="col-lg-2 col-md-2 col-sm-2 margin-top-20 mbl-right-btn">
|
||||||
<label></label><br>
|
<label></label><br>
|
||||||
<input type="submit" value="Generate Report" class='btn btn-primary'>
|
<input type="submit" value="Generate Report" class='btn btn-primary'>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -44,11 +44,11 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if defined? menu_types %>
|
<% if defined? menu_types %>
|
||||||
<%= select_tag "menu_type", options_for_select(@menu_types, :selected => params[:menu_type]), :class => "form-control" %>
|
<%= select_tag "menu_type", options_for_select(@menu_types, :selected => params[:menu_type]), :class => "form-control" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if defined? payments %>
|
<% if defined? payments %>
|
||||||
<%= select_tag "payment_type", options_for_select(@payments, :selected => params[:payment_type]), :class => "form-control" %>
|
<%= select_tag "payment_type", options_for_select(@payments, :selected => params[:payment_type]), :class => "form-control" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if defined? shift_name %>
|
<% if defined? shift_name %>
|
||||||
@@ -63,31 +63,31 @@
|
|||||||
<% if defined? singer %>
|
<% if defined? singer %>
|
||||||
<%= select_tag "singer", options_from_collection_for_select(singer,"id","name"),:prompt => "All Vocal List", :class => "form-control" %>
|
<%= select_tag "singer", options_from_collection_for_select(singer,"id","name"),:prompt => "All Vocal List", :class => "form-control" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if defined? bsm %>
|
<% if defined? bsm %>
|
||||||
<%= select_tag "singer", options_from_collection_for_select(bsm,"id","name"),:prompt => "All BSM List", :class => "form-control" %>
|
<%= select_tag "singer", options_from_collection_for_select(bsm,"id","name"),:prompt => "All BSM List", :class => "form-control" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if defined? guest_role %>
|
<% if defined? guest_role %>
|
||||||
<%= select_tag "guest_role", options_from_collection_for_select(@guest_role,"id","name"),:prompt => "Vocal/BSM List", :class => "form-control" %>
|
<%= select_tag "guest_role", options_from_collection_for_select(@guest_role,"id","name"),:prompt => "Vocal/BSM List", :class => "form-control" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if defined? list_by_payment_type %> <!-- for report detail by credit and foc -->
|
<% if defined? list_by_payment_type %> <!-- for report detail by credit and foc -->
|
||||||
<%= select_tag "payment_type_list", options_for_select(@payment_list, :selected => params[:payment_type_list]), :class => "form-control" %>
|
<%= select_tag "payment_type_list", options_for_select(@payment_list, :selected => params[:payment_type_list]), :class => "form-control" %>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<% if defined? products %>
|
|
||||||
<%= select_tag "product", options_from_collection_for_select(@products,"id","name"),:prompt => "All Products", :class => "form-control" %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if defined? items %>
|
<% if defined? products %>
|
||||||
<%= select_tag "item", options_for_select(@items, :selected => params[:item_type]), :class => "form-control" %>
|
<%= select_tag "product", options_from_collection_for_select(@products,"id","name"),:prompt => "All Products", :class => "form-control" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if defined? items %>
|
||||||
|
<%= select_tag "item", options_for_select(@items, :selected => params[:item_type]), :class => "form-control" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
$('#waiter').show();
|
$('#waiter').show();
|
||||||
if(payment_type){
|
if(payment_type){
|
||||||
$('#payment_type').hide();
|
$('#payment_type').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(item == 'sale'){
|
else if(item == 'sale'){
|
||||||
$('#waiter').hide();
|
$('#waiter').hide();
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#waiter').hide();
|
$('#waiter').hide();
|
||||||
$('#cashier').show();
|
$('#cashier').show();
|
||||||
$("#item").val('sale');
|
$("#item").val('sale');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -151,7 +151,7 @@ $('#item').change(function(){
|
|||||||
|
|
||||||
if(item == 'sale'){
|
if(item == 'sale'){
|
||||||
$('#waiter').hide();
|
$('#waiter').hide();
|
||||||
$('#cashier').show();
|
$('#cashier').show();
|
||||||
if(payment_type){
|
if(payment_type){
|
||||||
$('#payment_type').show();
|
$('#payment_type').show();
|
||||||
}
|
}
|
||||||
@@ -164,4 +164,4 @@ $('#item').change(function(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div class="page-header" style="width:130%;">
|
<div class="page-header">
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
|
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
|
||||||
<li class="breadcrumb-item active"><%= t("views.right_panel.detail.daily_sale_report") %></li>
|
<li class="breadcrumb-item active"><%= t("views.right_panel.detail.daily_sale_report") %></li>
|
||||||
@@ -19,12 +19,12 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 col-lg-12">
|
<div class="col-md-12 col-lg-12">
|
||||||
<div class="card" style="width:129%;">
|
<div class="card mbl_card">
|
||||||
<div class="body table-responsive">
|
<div class="body table-responsive">
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="15"> <%= t("views.right_panel.detail.from_date") %> : <%= @from.utc.getlocal.strftime("%Y-%b-%d") rescue '-' %> - <%= t("views.right_panel.detail.to_date") %> : <%= @to.utc.getlocal.strftime("%Y-%b-%d") rescue '-'%></th>
|
<th colspan="18"> <%= t("views.right_panel.detail.from_date") %> : <%= @from.utc.getlocal.strftime("%Y-%b-%d") rescue '-' %> - <%= t("views.right_panel.detail.to_date") %> : <%= @to.utc.getlocal.strftime("%Y-%b-%d") rescue '-'%></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.sr") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.sr") %></th>
|
||||||
@@ -181,33 +181,63 @@
|
|||||||
<tr style="font-weight:600;">
|
<tr style="font-weight:600;">
|
||||||
<td colspan="3" style='text-align:center;'>Total</td>
|
<td colspan="3" style='text-align:center;'>Total</td>
|
||||||
<% if @payment_methods.include? ("MPU") %>
|
<% if @payment_methods.include? ("MPU") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(mpu , precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(mpu , precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end%>
|
<% end%>
|
||||||
<% if @payment_methods.include? ("Master") %>
|
<% if @payment_methods.include? ("Master") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(master, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(master, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end%>
|
<% end%>
|
||||||
<% if @payment_methods.include? ("VISA") %>
|
<% if @payment_methods.include? ("VISA") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(visa, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(visa, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end%>
|
<% end%>
|
||||||
<% if @payment_methods.include? ("JCB") %>
|
<% if @payment_methods.include? ("JCB") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(jcb, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(jcb, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end%>
|
<% end%>
|
||||||
<% if @payment_methods.include? ("UNIONPAY") %>
|
<% if @payment_methods.include? ("UNIONPAY") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(unionpay, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(unionpay, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("Alipay") %>
|
<% if @payment_methods.include? ("Alipay") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(alipay, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(alipay, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("PAYMAL") %>
|
<% if @payment_methods.include? ("PAYMAL") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(paymal, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(paymal, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("DINGA") %>
|
<% if @payment_methods.include? ("DINGA") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(dinga, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(dinga, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("JunctionPay") %>
|
<% if @payment_methods.include? ("JunctionPay") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(junctionpay, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(junctionpay, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("Redeem") %>
|
<% if @payment_methods.include? ("Redeem") %>
|
||||||
|
<% if !request.user_agent.include? "Mobile" %>
|
||||||
|
<% colspan += 1 %>
|
||||||
|
<% end %>
|
||||||
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(paypar, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;' class="d-none d-sm-table-cell"><%= number_with_precision(paypar, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<td style='text-align:right;'><%= number_with_precision(cash, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;'><%= number_with_precision(cash, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ class ActionController::Base
|
|||||||
# check for license file
|
# check for license file
|
||||||
if check_license
|
if check_license
|
||||||
current_license(ENV["SX_PROVISION_URL"])
|
current_license(ENV["SX_PROVISION_URL"])
|
||||||
else
|
else
|
||||||
redirect_to activate_path
|
redirect_to activate_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user