Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -28,12 +28,10 @@
|
||||
<img src="<%= asset_path('SX-Logo-small.png') %>" width="40" height="40" alt="Logo" />
|
||||
<span class="navbar-brand-txt">SX Restaurant</span>
|
||||
</a>
|
||||
<% if @payment_method_setting_nav.present? %>
|
||||
<span class="navbar-brand m-0">/
|
||||
<span id="otherPayment"></span> Payment
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
|
||||
<span class="navbar-brand m-0">
|
||||
<span id="others_payment"></span>
|
||||
</span>
|
||||
</div>
|
||||
<!-- Start Shop Info -->
|
||||
<div class="navbar-right">
|
||||
@@ -84,11 +82,6 @@
|
||||
</nav>
|
||||
<%end%>
|
||||
<script type="text/javascript">
|
||||
if((document.getElementById("otherPayment")!=undefined) && (document.getElementById("otherPayment")!=null) && (document.getElementById("otherPayment")!="")){
|
||||
var otherPayment = location.href.split('/')[location.href.split('/').length -1 ];
|
||||
document.getElementById("otherPayment").innerHTML = otherPayment;
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$('.delete').click(function(){
|
||||
var method = $(this).attr('data-method');
|
||||
|
||||
@@ -144,6 +144,9 @@
|
||||
<li>
|
||||
<a href="<%= reports_void_sale_index_path %>">Void Sales</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_waste_and_spoilage_index_path %>">Wastes & Spoilages</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_payment_method_index_path %>">Payment Method</a>
|
||||
</li>
|
||||
|
||||
@@ -158,11 +158,19 @@
|
||||
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 empBtn" 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>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
<%if employee.image_path.present? %>
|
||||
<div class="login_dashboard p-card">
|
||||
<%= image_tag employee.image_path, :class => "style_image" %>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons style_icon">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -173,11 +181,19 @@
|
||||
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 empBtn" 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>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
<%if employee.image_path.present? %>
|
||||
<div class="login_dashboard p-card">
|
||||
<%= image_tag employee.image_path, :class => "style_image" %>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons style_icon">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -189,11 +205,19 @@
|
||||
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 empBtn" 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>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
<%if employee.image_path.present? %>
|
||||
<div class="login_dashboard p-card">
|
||||
<%= image_tag employee.image_path, :class => "style_image" %>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons style_icon">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -205,11 +229,19 @@
|
||||
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 empBtn" 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>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
<%if employee.image_path.present? %>
|
||||
<div class="login_dashboard p-card">
|
||||
<%= image_tag employee.image_path, :class => "style_image" %>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons style_icon">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -221,11 +253,19 @@
|
||||
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 empBtn" 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>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
<%if employee.image_path.present? %>
|
||||
<div class="login_dashboard p-card">
|
||||
<%= image_tag employee.image_path, :class => "style_image" %>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="login_dashboard p-card">
|
||||
<i class="material-icons style_icon">person</i>
|
||||
<div class="p-name"><b><%= employee.name%></b>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user