merge with origin

This commit is contained in:
Yan
2017-10-16 18:33:29 +06:30
78 changed files with 1170 additions and 1398 deletions

View File

@@ -75,7 +75,7 @@ $(function(){
}); });
$('#order-detail-slimscroll').slimScroll({ $('#order-detail-slimscroll').slimScroll({
height: height-160, height: height-180,
size: '5px', size: '5px',
color: 'rgba(0,0,0,0.5)', color: 'rgba(0,0,0,0.5)',
alwaysVisible: false, alwaysVisible: false,

View File

@@ -380,6 +380,36 @@ tr.discount-item-row:hover {
.required abbr{ .required abbr{
color: red !important; color: red !important;
} }
#sxModal {
display: none;
overflow: auto;
width: 100%;
height: 100%;
background-color: #000;
background-color: rgba(0,0,0,0.4);
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1100;
}
#sxModal-Content {
position: relative;
left: 42%;
top: 30%;
background-color: #d9534f;
color: #fff;
text-align: center;
width: 200px;
height: 200px;
padding-top: 5%;
border-radius: 100px;
z-index: 1101;
}
/*Loading gif for payment*/ /*Loading gif for payment*/
#loading_wrapper{ #loading_wrapper{

View File

@@ -1,27 +1,27 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ul class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">CRM</li> <li class="breadcrumb-item active">CRM</li>
<!-- <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> --> <!-- <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> -->
<span class="float-right"> <span class="float-right">
<%= link_to 'Back', dashboard_path %> <%= link_to 'Back', dashboard_path %>
</span> </span>
</ul> </ul>
</div> </div>
<div class="row"> <div class="row">
<div class="col-lg-8 col-md-8 col-sm-8"> <div class="col-lg-8 col-md-8 col-sm-8">
<div class="main-box-body clearfix" style="min-height:500px; max-height:500px; overflow-x:scroll"> <div class="main-box-body clearfix" style="min-height:500px; max-height:500px; overflow-x:scroll">
<div class="table-responsive"> <div class="table-responsive">
<table id="origami-crm-table" class="table table-striped"> <table id="origami-crm-table" class="table table-striped">
<thead> <thead>
<tr> <tr>
<td colspan="6"> <td colspan="6">
<!-- <% path ="/origami/#{@sale_id}/customers" %> <!-- <% path ="/origami/#{@sale_id}/customers" %>
<%= form_tag path, :id => "filter_form", :method => :get do %> <%= form_tag path, :id => "filter_form", :method => :get do %>
<div class="input-append col-md-7 form-group pull-left"> <div class="input-append col-md-7 form-group pull-left">
@@ -34,25 +34,23 @@
<div class="body"> <div class="body">
<% path ="/origami/#{@sale_id}/customers" %> <% path ="/origami/#{@sale_id}/customers" %>
<%= form_tag path, :id => "filter_form", :method => :get do %> <%= form_tag path, :id => "filter_form", :method => :get do %>
<div class="row clearfix"> <div class="row clearfix">
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-12"> <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12">
<div class="form-group">
<!-- <div class="form-line"> --> <input type="text" name="filter" style="margin-right:10px" id="search" placeholder="Search" class="form-control input-sm col-md-12">
<input type="text" name="filter" style="margin-right:10px" id="search" placeholder="Search" class="form-control input-sm col-md-12"> <input type="hidden" name="type" id="type" value="">
<input type="hidden" name="type" id="type" value="">
<!-- </div> --> </div>
</div> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12">
</div> <button type="submit" class="btn bg-blue waves-effect waves-effect">Search</button>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12">
<button type="submit" class="btn bg-blue waves-effect waves-effect">Search</button>
</div>
<button type="button" id="member_acc_no" class="btn bg-green btn-sm waves-effect" style="height: 30%;margin-right: 10px;">Member Card</button>
</div> </div>
<% end %>
<button type="button" id="member_acc_no" class="btn bg-green btn-sm waves-effect" style="height: 30%;margin-right: 10px;">Member Card</button>
</div> </div>
</td> <% end %>
</div>
</td>
</tr> </tr>
<tr> <tr>
<th>Select</th> <th>Select</th>
@@ -68,28 +66,28 @@
<tbody> <tbody>
<% if @crm_customers.count > 0 %> <% if @crm_customers.count > 0 %>
<% @i = 0 %> <% @i = 0 %>
<% @crm_customers.each do |crm_customer| %> <% @crm_customers.each do |crm_customer| %>
<tr class="customer_tr" data-ref="<%= crm_customer.customer_id %>">
<td>
<input type="radio" style="width:20px;" name="checkbox" class="checkbox_check" ></td>
<td>
<% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %>
<%= @i += 1 %>
<%else%>
-
<% end %>
</td>
<td><%= crm_customer.name %></td>
<td><%= crm_customer.company rescue '-' %></td>
<td><%= crm_customer.contact_no %></td>
<td><%= crm_customer.email %></td>
<!-- <td><%= crm_customer.paypar_account_no %></td> -->
</tr> <tr class="customer_tr" data-ref="<%= crm_customer.customer_id %>">
<td>
<input type="radio" style="width:20px;" name="checkbox" class="checkbox_check" ></td>
<td>
<% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %>
<%= @i += 1 %>
<%else%>
-
<% end %> <% end %>
</td>
<td><%= crm_customer.name %></td>
<td><%= crm_customer.company rescue '-' %></td>
<td><%= crm_customer.contact_no %></td>
<td><%= crm_customer.email %></td>
<!-- <td><%= crm_customer.paypar_account_no %></td> -->
</tr>
<% end %>
<%else%> <%else%>
<tr><td colspan="5"><p style="text-align:center"><strong>There are no record for your search</strong></p></td></tr> <tr><td colspan="5"><p style="text-align:center"><strong>There are no record for your search</strong></p></td></tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
@@ -99,22 +97,22 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <div class="col-lg-4 col-md-4 col-sm-4" style="min-height:600px; max-height:600px; overflow-x:scroll"> --> <!-- <div class="col-lg-4 col-md-4 col-sm-4" style="min-height:600px; max-height:600px; overflow-x:scroll"> -->
<div class="col-lg-4 col-md-4 col-sm-4" > <div class="col-lg-4 col-md-4 col-sm-4" >
<div id="custom-slimscroll"> <div id="custom-slimscroll">
<%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %> <%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %>
<span class="patch_method"></span> <span class="patch_method"></span>
<input type="hidden" id="sale_id" name="sale_id" value="<%= @sale_id %>" /> <input type="hidden" id="sale_id" name="sale_id" value="<%= @sale_id %>" />
<input type="hidden" id="table_id" name="table_id" value="<%= @dining_facility.id %>" /> <input type="hidden" id="table_id" name="table_id" value="<%= @dining_facility.id %>" />
<input type="hidden" id="type" name="type" value="<%= @dining_facility.type %>" /> <input type="hidden" id="type" name="type" value="<%= @dining_facility.type %>" />
<%= f.error_notification %> <%= f.error_notification %>
<%= f.hidden_field :id, :class => "form-control col-md-6 " %> <%= f.hidden_field :id, :class => "form-control col-md-6 " %>
<div class="form-group"> <div class="form-group">
<label>Salutation :</label><br> <label>Salutation :</label><br>
<label>Mr</label> <label>Mr</label>
<%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr", :style=>"width: 30px"%> <%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr", :style=>"width: 30px"%>
<label>Miss</label> <label>Miss</label>
<%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs", :style=>"width: 30px"%> <%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs", :style=>"width: 30px"%>
@@ -122,139 +120,139 @@
<%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss", :style=>"width: 30px"%> <%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss", :style=>"width: 30px"%>
<label>Mdm</label> <label>Mdm</label>
<%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm", :style=>"width: 30px"%> <%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm", :style=>"width: 30px"%>
</div> </div>
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<%= f.input :name, :class => "form-control col-md-6 name", :required => true %>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['name']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group"> <div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<label>Gender :</label><br> <%= f.input :name, :class => "form-control col-md-6 name", :required => true %>
<label>Male</label>
<%= f.radio_button :gender,"Male", :class => "gender male", :value=>"Male", :style=>"width: 30px"%> <% flash.each do |name, msg| %>
<% str="[\"#{msg['name']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group">
<label>Gender :</label><br>
<label>Male</label>
<%= f.radio_button :gender,"Male", :class => "gender male", :value=>"Male", :style=>"width: 30px"%>
<label>Female</label> <label>Female</label>
<%= f.radio_button :gender,"Female", :class => "gender female", :value=>"Female", :style=>"width: 30px"%> <%= f.radio_button :gender,"Female", :class => "gender female", :value=>"Female", :style=>"width: 30px"%>
</div>
<div class="form-group">
<%= f.input :nrc_no, :label => "NRC No",:class => "form-control nrc_no" %>
</div>
<div class="form-group">
<%= f.input :company, :class => "form-control col-md-6 company"%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['company']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<%= f.input :contact_no, :class => "form-control col-md-6 contact_no" ,:required => true%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['contact_no']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<%= f.input :email, :class => "form-control col-md-6 email" ,:required => true%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['contact_no']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group">
<%= f.input :address, :class => "form-control col-md-6 address" %>
</div>
<div class="form-group">
<label>Sr.No</label>
<input type="text" name="" value="<%=@count_customer%>" class="form-control" readonly="true">
</div>
<div class="form-group">
<label>Date Of Birth</label>
<%= f.text_field :date_of_birth,:value=>"01-01-1990",:class=>"form-control datepicker"%>
</div>
<div class="form-group">
<label>Select Customer Type</label>
<select class="form-control col-md-12" id="customer_type" name="customer[customer_type]" style="height: 40px" >
<% Lookup.where("lookup_type = ?", "customer_type" ).each do |ct| %>
<option value="<%= ct.value %>">
<%= ct.name %></option>
<%end %>
</select>
</div>
<div class="form-group">
<%= f.input :tax_profiles, :collection => @taxes, :input_html => { :multiple => true }, :class => "form-control col-md-6 tax_profiles" %>
</div>
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<%= f.input :card_no, :class => "form-control col-md-6 card_no"%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['name']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block" style="margin-top:-10px"><%= str %></span>
<% end -%>
</div>
<div class="form-group">
<label>Paypar Account No:</label>
<div class="input-group">
<input type="text" class="form-control" id="paypar_account_no" name="customer[paypar_account_no]" readonly />
<div class="input-group-addon"><span class="fa fa-credit-card"></span></div>
</div> </div>
<div class="form-group">
<%= f.input :nrc_no, :label => "NRC No",:class => "form-control nrc_no" %>
</div>
<div class="form-group">
<%= f.input :company, :class => "form-control col-md-6 company"%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['company']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<%= f.input :contact_no, :class => "form-control col-md-6 contact_no" ,:required => true%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['contact_no']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<%= f.input :email, :class => "form-control col-md-6 email" ,:required => true%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['contact_no']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block"><%= str %></span>
<% end -%>
</div>
<div class="form-group">
<%= f.input :address, :class => "form-control col-md-6 address" %>
</div>
<div class="form-group">
<label>Sr.No</label>
<input type="text" name="" value="<%=@count_customer%>" class="form-control" readonly="true">
</div>
<div class="form-group">
<label>Date Of Birth</label>
<%= f.text_field :date_of_birth,:value=>"01-01-1990",:class=>"form-control datepicker"%>
</div>
<div class="form-group">
<label>Select Customer Type</label>
<select class="form-control col-md-12" id="customer_type" name="customer[customer_type]" style="height: 40px" >
<% Lookup.where("lookup_type = ?", "customer_type" ).each do |ct| %>
<option value="<%= ct.value %>">
<%= ct.name %></option>
<%end %>
</select>
</div>
<div class="form-group">
<%= f.input :tax_profiles, :collection => @taxes, :input_html => { :multiple => true }, :class => "form-control col-md-6 tax_profiles" %>
</div>
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
<%= f.input :card_no, :class => "form-control col-md-6 card_no"%>
<% flash.each do |name, msg| %>
<% str="[\"#{msg['name']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
<span class="help-block" style="margin-top:-10px"><%= str %></span>
<% end -%>
</div>
<div class="form-group">
<label>Paypar Account No:</label>
<div class="input-group">
<input type="text" class="form-control" id="paypar_account_no" name="customer[paypar_account_no]" readonly />
<div class="input-group-addon"><span class="fa fa-credit-card"></span></div>
</div>
</div>
<div class="form-group">
<label>Select Member Group</label>
<select class="form-control col-md-12" name="member_group_id">
<option value="">Select Membership Group</option>
<% Lookup.where("lookup_type = ?", "member_group_type" ).each do |member| %>
<option value="<%= member.value %>">
<%= member.name %></option>
<%end %>
</select>
</div>
<div class="form-group">
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect', :id => 'submit_customer' %>
<!-- <%= f.button :submit, "Update",:class => 'btn bg-blue btn-block', :disabled =>'', :id => 'update_customer' %> -->
</div>
</div>
<%end%>
</div> </div>
<div class="form-group">
<label>Select Member Group</label>
<select class="form-control col-md-12" name="member_group_id">
<option value="">Select Membership Group</option>
<% Lookup.where("lookup_type = ?", "member_group_type" ).each do |member| %>
<option value="<%= member.value %>">
<%= member.name %></option>
<%end %>
</select>
</div>
<div class="form-group">
<%= f.button :submit, "Submit",:class => 'btn bg-blue waves-effect', :id => 'submit_customer' %>
<!-- <%= f.button :submit, "Update",:class => 'btn bg-blue btn-block', :disabled =>'', :id => 'update_customer' %> -->
</div>
</div> </div>
<%end%>
<div id="sxModal">
<div id="sxModal-Content"><h3>Card Tap</h3></div>
</div>
</div> </div>
<script type="text/javascript">
</div> $(function() {
/*$('.datepicker').datepicker({
<div id="sxModal">
<div id="sxModal-Content"><h3>Card Tap</h3></div>
</div>
</div>
<script type="text/javascript">
$(function() {
$('.datepicker').datepicker({
setDate: '12-12-1999', setDate: '12-12-1999',
format : 'dd-mm-yyyy', format : 'dd-mm-yyyy',
autoclose: true autoclose: true
}); });
$('.datepicker').attr('ReadOnly','true'); $('.datepicker').attr('ReadOnly','true');
$('.datepicker').css('cursor','pointer'); $('.datepicker').css('cursor','pointer');*/
// Read Card Reader // Read Card Reader
$("#paypar_account_no").on('focus', function(e){ $("#paypar_account_no").on('focus', function(e){
@@ -282,26 +280,26 @@
if(sale_id != 0 && customer_mamber_card_no != 0){ if(sale_id != 0 && customer_mamber_card_no != 0){
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "get_customer" , url: "get_customer" ,
data: { filter : customer_mamber_card_no ,type :"card"}, data: { filter : customer_mamber_card_no ,type :"card"},
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
if (data[0].customer_id == false) { if (data[0].customer_id == false) {
$.alert({ $.alert({
title: 'Alert!', title: 'Alert!',
content: data[0].message, content: data[0].message,
type: 'red', type: 'red',
typeAnimated: true, typeAnimated: true,
btnClass: 'btn-danger', btnClass: 'btn-danger',
}); });
}else{ }else{
customer_id = data[0].customer_id; customer_id = data[0].customer_id;
customer_name = data[0].name; customer_name = data[0].name;
update_sale(customer_id, customer_name,sale_id); update_sale(customer_id, customer_name,sale_id);
}
} }
}
}); });
} }
},100); },100);
@@ -325,12 +323,12 @@
$(document).on('click',".customer_tr",function(){ $(document).on('click',".customer_tr",function(){
// if(this.checked){ // if(this.checked){
$(this).closest('tr').find('.checkbox_check').prop( "checked", true ); $(this).closest('tr').find('.checkbox_check').prop( "checked", true );
var sale_id = $("#sale_id").val() || 0; var sale_id = $("#sale_id").val() || 0;
var customer_id = $(this).attr('data-ref'); var customer_id = $(this).attr('data-ref');
var customer_name = $(this).children("td:nth-child(3)").text(); var customer_name = $(this).children("td:nth-child(3)").text();
if(sale_id != 0){ if(sale_id != 0){
// var url = "/"+customer_id; // var url = "/"+customer_id;
update_sale(customer_id, customer_name,sale_id); update_sale(customer_id, customer_name,sale_id);
}else{ }else{
@@ -351,39 +349,39 @@
$("#customer_tax_profiles option[value='" + value + "']").attr("selected","selected"); $("#customer_tax_profiles option[value='" + value + "']").attr("selected","selected");
}); });
$('#customer_id').val(data.id); $('#customer_id').val(data.id);
$('#customer_name').val(data.name); $('#customer_name').val(data.name);
$('#customer_company').val(data.company); $('#customer_company').val(data.company);
$('#customer_contact_no').val(data.contact_no); $('#customer_contact_no').val(data.contact_no);
$('#customer_email').val(data.email); $('#customer_email').val(data.email);
$('#customer_date_of_birth').val(data.date_of_birth); $('#customer_date_of_birth').val(data.date_of_birth);
$('#customer_membership_type').val(data.membership_type); $('#customer_membership_type').val(data.membership_type);
$('.select > option[value="'+data.membership_id+'"]').attr('selected','selected'); $('.select > option[value="'+data.membership_id+'"]').attr('selected','selected');
$('.membership_authentication_code').val(data.membership_authentication_code); $('.membership_authentication_code').val(data.membership_authentication_code);
$('#customer_card_no').val(data.card_no); $('#customer_card_no').val(data.card_no);
$('#customer_type').val(data.customer_type); $('#customer_type').val(data.customer_type);
$('#customer_salutation').val(data.salutation); $('#customer_salutation').val(data.salutation);
$('#customer_nrc_no').val(data.nrc_no); $('#customer_nrc_no').val(data.nrc_no);
$('#paypar_account_no').val(data.paypar_account_no); $('#paypar_account_no').val(data.paypar_account_no);
if (data.gender == 'Male') { if (data.gender == 'Male') {
$('.male').prop( "checked", true ) $('.male').prop( "checked", true )
}else{ }else{
$('.female').prop( "checked", true ) $('.female').prop( "checked", true )
} }
if (data.salutation == 'Mr') { if (data.salutation == 'Mr') {
$('.mr').prop( "checked", true ) $('.mr').prop( "checked", true )
} else if(data.salutation == 'Miss') { } else if(data.salutation == 'Miss') {
$('.miss').prop( "checked", true ) $('.miss').prop( "checked", true )
}else if(data.salutation == 'Mrs'){ }else if(data.salutation == 'Mrs'){
$('.mrs').prop( "checked", true ) $('.mrs').prop( "checked", true )
}else{ }else{
$('.mdm').prop( "checked", true ) $('.mdm').prop( "checked", true )
} }
$('#update_customer').removeAttr('disabled').val(''); $('#update_customer').removeAttr('disabled').val('');
$('#update_customer').attr('value', 'Update'); $('#update_customer').attr('value', 'Update');
// $('#submit_customer').attr('disabled','disabled'); // $('#submit_customer').attr('disabled','disabled');
$("#new_customer").attr('class', 'simple_form edit_customer'); $("#new_customer").attr('class', 'simple_form edit_customer');
@@ -393,12 +391,12 @@
$(".edit_customer").attr('action', '/crm/customers/' + $('#customer_id').val()); $(".edit_customer").attr('action', '/crm/customers/' + $('#customer_id').val());
$(".patch_method").append('<input type="hidden" name="_method" value="patch">'); $(".patch_method").append('<input type="hidden" name="_method" value="patch">');
//$(".edit_customer").attr('method', 'PATCH'); //$(".edit_customer").attr('method', 'PATCH');
} }
}); });
// }else{ // }else{
// } // }
}) })
function update_sale(customer_id, customer_name, sale_id) { function update_sale(customer_id, customer_name, sale_id) {
var customer=""; var customer="";
@@ -406,57 +404,57 @@
customer = '(' + customer_name + ')'; customer = '(' + customer_name + ')';
} }
$.confirm({ $.confirm({
title: 'Confirm!', title: 'Confirm!',
content: 'Are You Sure to assign this customer' + customer + '!', content: 'Are You Sure to assign this customer' + customer + '!',
buttons: { buttons: {
cancel: function () { cancel: function () {
}, },
confirm: { confirm: {
text: 'Confirm', text: 'Confirm',
btnClass: 'btn-green', btnClass: 'btn-green',
keys: ['enter', 'shift'], keys: ['enter', 'shift'],
action: function(){ action: function(){
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "update_sale" , url: "update_sale" ,
data: {customer_id:customer_id,sale_id:sale_id}, data: {customer_id:customer_id,sale_id:sale_id},
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
if(data.status == true) if(data.status == true)
{ {
var id = $("#table_id").val() var id = $("#table_id").val()
var type = $("#type").val() var type = $("#type").val()
if (type=="Table") { if (type=="Table") {
window.location.href = '/origami/table/'+id window.location.href = '/origami/table/'+id
}else{ }else{
window.location.href = '/origami/room/'+id window.location.href = '/origami/room/'+id
} }
}else{ }else{
alert('Record not found!'); alert('Record not found!');
location.reload(); location.reload();
} }
}
});
}
} }
} });
}); }
}
}
});
} }
$('#back').on('click',function(){ $('#back').on('click',function(){
var id = $("#table_id").val() var id = $("#table_id").val()
var type = $("#type").val() var type = $("#type").val()
if (type=="Table") { if (type=="Table") {
window.location.href = '/origami/table/'+id window.location.href = '/origami/table/'+id
}else{ }else{
window.location.href = '/origami/room/'+id window.location.href = '/origami/room/'+id
} }
}) })
</script> </script>

View File

@@ -1,23 +1,37 @@
<%= simple_form_for(@print_setting) do |f| %>
<%= f.error_notification %>
<div class="form-inputs"> <div class="row">
<%= f.input :name %> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<%= f.input :unique_code %> <%= simple_form_for(@print_setting) do |f| %>
<%= f.input :template %> <%= f.error_notification %>
<%= f.input :printer_name %>
<%= f.input :font %>
<%= f.input :api_settings %>
<%= f.input :page_width %>
<%= f.input :page_height %>
<%= f.input :print_copies %>
<%= f.input :precision %>
<%= f.input :delimiter %>
<%= f.input :heading_space %>
</div>
<div class="form-actions"> <div class="form-inputs">
<%= f.button :submit %> <%= f.input :name %>
<%= link_to 'Back', print_settings_path, :class => "btn btn-default" %> <%= f.input :unique_code %>
<%= f.input :template %>
<%= f.input :font %>
<%= f.input :printer_name %>
<%= f.input :api_settings %>
<%= f.input :page_width %>
<%= f.input :page_height %>
<%= f.input :print_copies %>
<%= f.input :precision %>
<%= f.input :delimiter %>
<%= f.input :heading_space %>
</div>
<div class="form-actions">
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
</div>
<% end %>
</div> </div>
<% end %> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div>

View File

@@ -1,13 +1,14 @@
<div class="span12"> <div class="page-header">
<div class="page-header"> <ol class="breadcrumb">
<ul class="breadcrumb"> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= print_settings_path %>">Print Setting</a></li>
<li><a href="<%= print_settings_path %>">Print Setting</a></li> <li class="breadcrumb-item active">Edit</li>
<li>Edit</li> <span class="float-right">
</ul> <%= link_to t('.new', :default => t("views.btn.new")), print_settings_path %>
</div> </span>
<%= render 'form', print_setting: @print_setting %> </ol>
<br />
</div> </div>
<%= render 'form', print_setting: @print_setting %>

View File

@@ -1,54 +1,73 @@
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ol class="breadcrumb">
<li><a href="<%= %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li>Print Settings</li> <li class="breadcrumb-item active">Print Settings</li>
<span style="float: right"> <span class="float-right">
<%= link_to t("views.btn.new"),new_print_setting_path,:class => 'btn btn-primary btn-sm' %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ul> </ol>
</div> </div>
<div class="row">
<br /> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="card"> <div class="m-b-10 clearfix">
<table class="table table-striped"> <%= link_to t("views.btn.new"),new_print_setting_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
<thead> </div>
<tr> <div class="card">
<th>Name</th> <table class="table table-striped">
<th>Unique code</th> <thead>
<th>Template</th>
<th>Printer name</th>
<th>Font</th>
<th>Api settings</th>
<th>Page width</th>
<th>Page height</th>
<th>Print copies</th>
<th>Precision</th>
<th>Delimiter</th>
<th>Heading_space</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<% @print_settings.each do |print_setting| %>
<tr> <tr>
<td><%= print_setting.name %></td> <th>Name</th>
<td><%= print_setting.unique_code %></td> <th>Unique code</th>
<td><%= print_setting.template %></td> <!-- <th>Template</th> -->
<td><%= print_setting.printer_name %></td> <th>Printer name</th>
<td><%= print_setting.font %></td> <th>Font</th>
<td><%= print_setting.api_settings %></td> <!-- <th>Api settings</th> -->
<td><%= print_setting.page_width %></td> <th>Page width</th>
<td><%= print_setting.page_height %></td> <th>Page height</th>
<td><%= print_setting.print_copies %></td> <th>Print copies</th>
<td><%= print_setting.precision %></td> <th>Precision</th>
<td><%= print_setting.delimiter %></td> <th>Delimiter</th>
<td><%= print_setting.heading_space %></td> <th>Heading_space</th>
<td><%= link_to t("views.btn.show"), print_setting %> | <%= link_to t("views.btn.edit"), edit_print_setting_path(print_setting) %></td> <th>Action</th>
<!-- <td><%= link_to t("views.btn.delete"), print_setting, method: :delete, data: { confirm: 'Are you sure?' } %></td> -->
</tr> </tr>
<% end %> </thead>
</tbody>
</table> <tbody>
<% @print_settings.each do |print_setting| %>
<tr>
<td><%= print_setting.name %></td>
<td><%= print_setting.unique_code %></td>
<!-- <td><%= print_setting.template %></td> -->
<td><%= print_setting.printer_name %></td>
<td><%= print_setting.font rescue '-' %></td>
<!-- <td><%= print_setting.api_settings %></td> -->
<td><%= print_setting.page_width %></td>
<td><%= print_setting.page_height %></td>
<td><%= print_setting.print_copies %></td>
<td><%= print_setting.precision %></td>
<td><%= print_setting.delimiter %></td>
<td><%= print_setting.heading_space %></td>
<td>
<%= link_to t("views.btn.show"), print_setting,:class => 'btn btn-primary btn-sm waves-effect' %>
<%= link_to t("views.btn.edit"), edit_print_setting_path(print_setting),:class => 'btn btn-info btn-sm waves-effect' %></td>
<!-- <td><%= link_to t("views.btn.delete"), print_setting, method: :delete, data: { confirm: 'Are you sure?' } %></td> -->
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div> </div>

View File

@@ -1,15 +1,15 @@
<div class="span12"> <div class="page-header">
<div class="page-header"> <ol class="breadcrumb">
<ul class="breadcrumb"> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= print_settings_path %>">Print Setting</a></li>
<li><a href="<%= print_settings_path %>">Print Setting</a></li> <li class="breadcrumb-item active">New</li>
<li>New</li> <span class="float-right">
</ul> <%= link_to t('.back', :default => t("views.btn.back")), print_settings_path %>
</div> </span>
<%= render 'form', print_setting: @print_setting %> </ol>
<br />
</div> </div>
<%= render 'form', print_setting: @print_setting %>

View File

@@ -1,66 +1,74 @@
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ol class="breadcrumb">
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= print_settings_path %>">Print Setting</a></li> <li class="breadcrumb-item"><a href="<%= print_settings_path %>">Print Setting</a></li>
<li class="breadcrumb-item active">Details</li>
<span style="float: right"> <span class="float-right">
<li> <%= link_to t('.back', :default => t("views.btn.back")), settings_employees_path %>
<%= link_to t("views.btn.edit"), edit_print_setting_path(@print_setting) %> | </span>
<%= link_to 'Back', print_settings_path %> </ol>
</li>
</span>
</ul>
</div> </div>
<div class="card"> <div class="row">
<div class="card-block"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<table class="table"> <div class="card">
<tbody> <div class="card-block">
<tr> <table class="table">
<th>Name</th> <tbody>
<td><%= @print_setting.name %></td> <tr>
</tr> <th>Name</th>
<tr> <td><%= @print_setting.name %></td>
<th>Unique code</th> </tr>
<td><%= @print_setting.unique_code %></td> <tr>
</tr> <th>Unique code</th>
<tr> <td><%= @print_setting.unique_code %></td>
<th>Template</th> </tr>
<td><%= @print_setting.template %></td> <tr>
</tr> <th>Template</th>
<tr> <td><%= @print_setting.template %></td>
<th>Printer name</th> </tr>
<td><%= @print_setting.printer_name %></td> <tr>
</tr> <th>Printer name</th>
<tr> <td><%= @print_setting.printer_name %></td>
<th>Font</th> </tr>
<td><%= @print_setting.font %></td> <tr>
</tr> <th>Font</th>
<tr> <td><%= @print_setting.font rescue '-' %></td>
<th>Api settings</th> </tr>
<td><%= @print_setting.api_settings %></td> <tr>
</tr> <th>Api settings</th>
<tr> <td><%= @print_setting.api_settings %></td>
<th>Page width</th> </tr>
<td><%= @print_setting.page_width %></td> <tr>
</tr> <th>Page width</th>
<tr> <td><%= @print_setting.page_width %></td>
<th>Page height</th> </tr>
<td><%= @print_setting.page_height %></td> <tr>
</tr> <th>Page height</th>
<tr> <td><%= @print_setting.page_height %></td>
<th>Print copies</th> </tr>
<td><%= @print_setting.print_copies %></td> <tr>
</tr> <th>Print copies</th>
<td><%= @print_setting.print_copies %></td>
</tbody> </tr>
</table>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div> </div>
</div> </div>
</div>

View File

@@ -3,7 +3,7 @@
<% if period_type != false %> <% if period_type != false %>
<div class="row"> <div class="row">
<div class="form-group col-md-3"> <div class="col-lg-2 col-md-2 col-sm-2">
<label class="">Select Date Range</label> <label class="">Select Date Range</label>
<% if @daterange %> <% if @daterange %>
<input class="form-control" name="daterange" id="daterange" value="<%= @daterange %>" type="text" placeholder="Date Range" readonly="true"> <input class="form-control" name="daterange" id="daterange" value="<%= @daterange %>" type="text" placeholder="Date Range" readonly="true">
@@ -11,7 +11,7 @@
<input class="form-control" name="daterange" id="daterange" type="text" placeholder="Date Range" readonly="true"> <input class="form-control" name="daterange" id="daterange" type="text" placeholder="Date Range" readonly="true">
<% end %> <% end %>
</div> </div>
<div class="form-group col-md-3"> <div class="col-lg-2 col-md-2 col-sm-2">
<label class="">Commissioner</label> <label class="">Commissioner</label>
<select class="form-control" name="commissioner" id="commissioner"> <select class="form-control" name="commissioner" id="commissioner">
<option value=""></option> <option value=""></option>
@@ -24,10 +24,10 @@
<% end %> <% end %>
</select> </select>
</div> </div>
<div class="form-group col-md-2 margin-top-20"> <div class="col-lg-2 col-md-2 col-sm-2 margin-top-20">
<input type="submit" value="Generate Report" class='btn btn-primary'> <input type="submit" value="Generate Report" class='btn btn-primary'>
</div> </div>
<div class="form-group col-md-2 margin-top-20"> <div class="col-lg-2 col-md-2 col-sm-2 margin-top-20">
<input type="button" value="Clear Filter" id="clear_filter" class='btn btn-danger'> <input type="button" value="Clear Filter" id="clear_filter" class='btn btn-danger'>
</div> </div>
</div> </div>

View File

@@ -1,12 +1,14 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Commission Report</li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Commission Report</li>
</ul>
</div>
<!-- <div class="container"> --> <!-- <div class="container"> -->
<%= render :partial => 'commission_report_filter', <%= render :partial => 'commission_report_filter',
:locals => {:period_type => true, :shift_name => true, :report_path => reports_commission_index_path} %> :locals => {:period_type => true, :shift_name => true, :report_path => reports_commission_index_path} %>

View File

@@ -2,7 +2,7 @@
<%= 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="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label>Select Period</label> <label>Select Period</label>
<select name="period" id="sel_period" class="form-control"> <select name="period" id="sel_period" class="form-control">
<option value="">Select Period</option> <option value="">Select Period</option>
@@ -20,16 +20,16 @@
</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="form-group col-md-3"> <div class="col-lg-3 col-md-3 col-sm-3">
<!-- <label class="">Select Shift Period</label> --> <!-- <label class="">Select Shift Period</label> -->
<label class="">From</label> <label class="">From</label>
<input data-behaviour='datepicker' class="form-control" name="from" id="from" type="text" placeholder="From date"> <input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" placeholder="From date">
</div> </div>
<div class="form-group col-md-3"> <div class="col-lg-3 col-md-3 col-sm-3">
<label class="">To</label> <label class="">To</label>
<input data-behaviour='datepicker' class="form-control" name="to" id="to" type="text" placeholder="To date"> <input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" placeholder="To date">
</div> </div>
<div class="form-group col-md-2 margin-top-20"> <div class="col-lg-2 col-md-2 col-sm-2 margin-top-20">
<input type="submit" value="Generate Report" class='btn btn-primary'> <input type="submit" value="Generate Report" class='btn btn-primary'>
</div> </div>
</div> </div>

View File

@@ -1,13 +1,15 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Daily Sale Report</li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="row">
<div class="page-header col-md-12 col-lg-12">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Daily Sale Report</li>
</ul>
</div>
</div>
<!-- <div class="row"> <!-- <div class="row">
<div class="col-md-12 col-lg-12"> --> <div class="col-md-12 col-lg-12"> -->

View File

@@ -1,7 +1,7 @@
<%= 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="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label>Select Period</label> <label>Select Period</label>
<select name="period" id="sel_period" class="form-control"> <select name="period" id="sel_period" class="form-control">
<option value="">Select Period</option> <option value="">Select Period</option>
@@ -18,26 +18,27 @@
</select> </select>
</div> </div>
<% if defined? payments %> <% if defined? payments %>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label>Select Payments</label> <label>Select Payments</label>
<%= 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" %>
</div> </div>
<% end %> <% end %>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<!-- <label class="">Select Shift Period</label> --> <!-- <label class="">Select Shift Period</label> -->
<label class="">From</label> <label class="">From</label>
<input data-behaviour='datepicker' class="form-control" name="from" id="from" type="text" placeholder="From date"> <input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" placeholder="From date">
</div> </div>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label class="">To</label> <label class="">To</label>
<input data-behaviour='datepicker' class="form-control" name="to" id="to" type="text" placeholder="To date"> <input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" placeholder="To date">
</div> </div>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label class="">All Shift</label> <label class="">All Shift</label>
<select class="form-control select" name="shift_name" id="shift_name" > <select class="form-control select" name="shift_name" id="shift_name" >
</select> </select>
</div> </div>
<div class="form-group col-md-1 margin-top-20"> <div class="col-lg-1 col-md-1 col-sm-1 margin-top-20">
<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>

View File

@@ -1,11 +1,14 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Recript No Report</li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Receipt List Report</li>
</ul>
</div>
<!-- <div class="container"> --> <!-- <div class="container"> -->
<%= render :partial=>'shift_sale_report_filter', <%= render :partial=>'shift_sale_report_filter',

View File

@@ -1,194 +0,0 @@
<div class="row">
<div class="col-md-12">
<%= form_tag report_path, :method => :get, :id=>"frm_report", :class => "form" do %>
<% if period_type != false %>
<div class="row">
<div class="form-group col-md-2">
<label>Select Period</label>
<select name="period" id="sel_period" class="form-control">
<option value="0">Today</option>
<option value="1">Yesterday</option>
<option value="2">This week</option>
<option value="3">Last week</option>
<option value="4">Last 7 days</option>
<option value="5">This month</option>
<option value="6">Last month</option>
<option value="7">Last 30 days</option>
<option value="8">This year</option>
<option value="9">Last year</option>
</select>
</div>
<input type="hidden" name="report_type" value="sale_item" id="sel_sale_type">
<!-- <div class="form-group col-md-2">
<label>Select Type</label>
<select name="sale_type" id="sel_sale_type" class="form-control">
<option value="0">All Sale Type</option>
<option value="1">Revenue Only</option>
<option value="2">Discount Only</option>
<option value="3">Void Only</option>
<option value="4">Taxes Only</option>
<option value="5">Other Amount Only</option>
</select>
</div> -->
<div class="form-group col-md-3">
<!-- <label class="">Select Shift Period</label> -->
<label class="">From</label>
<input data-behaviour='datepicker' class="form-control" name="from" id="from" type="text" placeholder="From date">
</div>
<div class="form-group col-md-3">
<label class="">To</label>
<input data-behaviour='datepicker' class="form-control" name="to" id="to" type="text" placeholder="To date">
</div>
<div class="form-group col-md-2 margin-top-20">
<input type="submit" value="Generate Report" class='btn btn-primary'>
</div>
</div>
<% end %>
<!-- <div class="row">
<% if defined? show_monthly %>
<div class="span3" style="margin-bottom:10px;">
<input type="hidden" id="report_type" name="report_type" value="0">
<div class="btn-group" data-toggle="buttons-radio">
<button id="btn_report_type_1" onclick="$('#report_type').val(1)" type="button" class="btn btn-inverse">Monthly</button>
<button id="btn_report_type_2" onclick="$('#report_type').val(2)" type="button" class="btn btn-inverse">Yearly</button>
</div>
</div>
<% end %>
</div> -->
<div class="row">
<div class="form-group">
<% if defined? promotions %>
<%= select_tag "promotion", options_for_select(@promotions, :selected => params[:promotion_type]), :class => "form-control" %>
<% end %>
<% if defined? menu_types %>
<%= select_tag "menu_type", options_for_select(@menu_types, :selected => params[:menu_type]), :class => "form-control" %>
<% end %>
<% if defined? payments %>
<%= select_tag "payment_type", options_for_select(@payments, :selected => params[:payment_type]), :class => "form-control" %>
<% end %>
<% if defined? shift_name %>
<!-- Temporary no needs
<select name="shift_name" id="shift_name"></select>
-->
<% end %>
<% if defined? cashiers %>
<%= select_tag "cashier", options_from_collection_for_select(@cashiers,"id","name"),:prompt => "All Cashier Stations", :class => "form-control" %>
<% end %>
<% if defined? singer %>
<%= select_tag "singer", options_from_collection_for_select(singer,"id","name"),:prompt => "All Vocal List", :class => "form-control" %>
<% end %>
<% if defined? bsm %>
<%= select_tag "singer", options_from_collection_for_select(bsm,"id","name"),:prompt => "All BSM List", :class => "form-control" %>
<% end %>
<% if defined? guest_role %>
<%= select_tag "guest_role", options_from_collection_for_select(@guest_role,"id","name"),:prompt => "Vocal/BSM List", :class => "form-control" %>
<% end %>
<% 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" %>
<% end %>
<% if defined? products %>
<%= 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 %>
</div>
</div>
<!-- <div class="row">
<div class="col-md-12">
<input type="submit" value="Generate Report" class='btn btn-primary'>
</div>
</div> -->
<% end %>
</div>
</div>
<script type="text/javascript">
$(function(){
$('#custom_excel').hide();
$('#custom_excel').click(function(){
var url = $('#custom_excel').attr('data-url');
$('#frm_report').attr('action',url)
$('#frm_report').submit();
// window.location = url;
});
var item = $('#item').val();
var payment_type = $('#payment_type');
if(item == 'order'){
$('#cashier').hide();
$('#waiter').show();
if(payment_type){
$('#payment_type').hide();
}
}
else if(item == 'sale'){
$('#waiter').hide();
$('#cashier').show();
}
else{
$('#waiter').hide();
$('#cashier').show();
$("#item").val('sale');
}
});
//Reset the form to pervious values
$("#branch").val(<%=params[:branch]%>);
$("#waiter").val("<%=params[:waiter]%>");
$("#cashier").val(<%=params[:cashier]%>);
$("#product").val(<%=params[:product]%>);
$("#singer").val(<%=params[:singer]%>);
$("#item").val('<%=params[:item]%>');
$("#guest_role").val('<%=params[:guest_role]%>');
$("#from").val("<%=params[:from]%>");
$("#to").val("<%=params[:to]%>");
$("#sel_period").val(<%=params[:period]%>);
$("#sel_sale_type").val(<%=params[:sale_type]%>);
<% if params[:period_type] == 1 || params[:period_type] == "1" %>
$("#rd_period_type_1").attr("checked","checked");
<% else %>
$("#rd_period_type_0").attr("checked","checked");
<% end %>
$(".btn-group button").removeClass("active");
<% report_type = params[:report_type].blank? ? "0" : params[:report_type] %>
$("#btn_report_type_<%= report_type %>").addClass("active");
$('#item').change(function(){
var item = $('#item').val();
var payment_type = $('#payment_type');
if(item == 'sale'){
$('#waiter').hide();
$('#cashier').show();
if(payment_type){
$('#payment_type').show();
}
}
else{
$('#cashier').hide();
$('#waiter').show();
if(payment_type){
$('#payment_type').hide();
}
}
});
</script>

View File

@@ -1,141 +0,0 @@
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Daily Sale Report</li>
</ul>
</div>
<div class="container">
<%= render :partial=>'shift_sale_report_filter',
:locals=>{ :period_type => true, :shift_name => false, :report_path =>reports_saleitem_index_path} %>
<hr />
</div>
<div class="container">
<div class="row">
<div class="col-md-12 text-right">
<a href="javascript:export_to('<%=reports_saleitem_index_path%>.xls')" class = "btn btn-default">Export to Excel</a>
</div>
</div>
</div>
<div class="container margin-top-20">
<div class="card row">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Date</th>
<th id="date"></th>
</tr>
<tr>
<th>Menu Category</th>
<th>Code</th>
<th>Product</th>
<th>Total Item</th>
<th>Unit Price</th>
<th>Revenue</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<script type="text/javascript">
$(function(){
var cate = [];
var y;
var count = 0;
var sub_total = 0;
var sub_total_arr = [];
<% @sale_data.each do |result| %>
count = count + 1;
if(count == 1)
$('#date').append('<%= result.date_name rescue '-'%>');
y = $.inArray(<%= result.menu_category_id %>, cate);
if(y == -1){
//add sub total row
sub_total_arr.push(sub_total);
var total_row = '<tr><td colspan="4"></td>'+
'<td > Sub Total</td> ' +
'<td><span class="underline">'+ sub_total +'</span></td>'+
'</tr>';
if(count != 1){
$('.table').append(total_row);
sub_total = 0;
}
cate.push(<%= result.menu_category_id %>);
var th = '<tr><td colspan="6"><%= result.menu_category_name rescue '-'%></td></tr>';
var tr = '<tr>'+
'<td></td>'+
'<td><%= result.code rescue '-'%></td>' +
'<td><%= result.product_name rescue '-'%></td>' +
'<td><%= result.total_item.to_i rescue '-'%></td>' +
'<td><%= number_with_precision(result.unit_price, :precision => 0) rescue '-'%></td>'+
'<td><%= number_with_precision(result.grand_total, :precision => 0) rescue '-'%>'+
'</td>'+
'</tr>';
$('.table').append(th);
$('.table').append(tr);
sub_total = parseInt(sub_total) + parseInt(<%= result.grand_total rescue '-'%>);
}
else{
var tr = '<tr>'+
'<td></td>'+
'<td><%= result.code rescue '-'%></td>' +
'<td><%= result.product_name rescue '-'%></td>' +
'<td><%= result.total_item.to_i rescue '-'%></td>' +
'<td><%= number_with_precision(result.unit_price, :precision => 0) rescue '-'%></td>'+
'<td><%= number_with_precision(result.grand_total, :precision => 0) rescue '-'%></td></tr>';
$('.table').append(tr);
sub_total = parseInt(sub_total) + parseInt(<%= result.grand_total rescue '-'%>);
}
<% end %>
last_line_subtotal(sub_total);
sub_total_arr.push(parseInt(sub_total));
grand_total(sub_total_arr);
})
function last_line_subtotal(sub_total){
var total_row = '<tr><td colspan="4"></td>'+
'<td > Sub Total</td> ' +
'<td><span class="underline">'+ sub_total +'</span></td>'+
'</tr>';
$('.table').append(total_row);
}
function grand_total(sub_total_arr){
var total = 0;
for(var i=0; i< sub_total_arr.length; i++){
//total_1 = (total_1) + (sub_total_arr[i]);
total = parseInt(total) + parseInt(sub_total_arr[i]);
}
var row = '<tr><td colspan="4"></td>'+
'<td > Grand Total</td> ' +
'<td><span class="double_underline">'+ total +'</span></td>'+
'</tr>';
$('.table').append(row);
}
</script>

View File

@@ -1,104 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="application/vnd.ms-excel; charset=UTF-8">
</head>
<body>
<div class="span12">
<% unless @sale_data.blank? %>
<table class="table table-striped" id="items_table" border="0">
<thead>
<% if !params[:from].blank?%>
<tr>
<th colspan="7">From Date : <%= params[:from] %> , To Date : <%= params[:to] %></th>
</tr>
<% end %>
<% if @shift_from %>
<tr>
<% if @shift_data.employee %>
<% cashier_name = !@shift_data.nil? ? @shift_data.employee.name : '-' %>
<% end %>
<th colspan="7">Shift Name = <%= @shift_from %> - <%= @shift_to %> ( <%= cashier_name %> )</th>
</tr>
<% end %>
<tr>
<th>&nbsp;</th>
<th>Menu Category</th>
<th>Code</th>
<th>Product</th>
<th>Total Item</th>
<th>Unit Price</th>
<th>Revenue</th>
</tr>
</thead>
<tbody>
<% acc_arr = Array.new %>
<% cate_arr = Array.new %>
<% sub_total = 0.0 %>
<% count = 0%>
<% total_price = 0.0 %>
<% cate_count = 0 %>
<% acc_count = 0%>
<% grand_total = 0%>
<% total_discount = 0.0 %>
<% @sale_data.order("total_item desc").each do |sale| %>
<tr>
<td>&nbsp;</td>
<% if !cate_arr.include?(sale.menu_category_id) %>
<td><%= sale.menu_category_name %></td>
<% cate_arr.push(sale.menu_category_id) %>
<% else %>
<td>&nbsp;</td>
<% end %>
<td><%= sale.code rescue '-' %></td>
<% if @item_table == 'sale' %>
<% if sale.item_remark == 'FOC' %>
<td><%= '[PROMO] '.to_s + sale.product_name.to_s rescue '-' %></td>
<% elsif sale.item_remark == 'FOC ITEM' %>
<td><%= '[DIS:QTY] '.to_s + sale.product_name.to_s rescue '-' %></td>
<% elsif sale.item_remark == 'DISCOUNT' %>
<td><%= '[DIS:TP] '.to_s + sale.product_name.to_s rescue '-' %></td>
<% else %>
<td><%= sale.product_name.to_s rescue '-' %></td>
<% end %>
<% if sale.item_remark == 'DISCOUNT' %>
<td> - </td>
<td> - </td>
<td><%= sale.total_price.abs rescue '-' %></td>
<% total_price += sale.total_price %>
<% else %>
<td><%= sale.total_item.abs rescue '-' %></td>
<td><%= sale.unit_price rescue '-' %></td>
<td><%= sale.grand_total.abs rescue '-' %></td>
<% end %>
<% else %>
<td><%= sale.product_name.to_s rescue '-' %></td>
<td><%= sale.total_item.abs rescue '-' %></td>
<td><%= sale.unit_price rescue '-' %></td>
<td><%= sale.grand_total.abs rescue '-' %></td>
<% end %>
</tr>
<!-- sub total -->
<!-- end sub total -->
<% grand_total += sale.grand_total%>
<% end %>
<tr>
<td colspan="5">&nbsp;</td>
<td>Grand Total</td>
<td><span class="double_underline"><%= grand_total + total_discount %></span></td>
</tr>
</tbody>
</table>
<% end %>
</div>
</body>
</html>

View File

@@ -2,7 +2,7 @@
<%= 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="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label>Select Period</label> <label>Select Period</label>
<select name="period" id="sel_period" class="form-control"> <select name="period" id="sel_period" class="form-control">
<option value="">Select Period</option> <option value="">Select Period</option>
@@ -30,21 +30,22 @@
<option value="5">Other Amount Only</option> <option value="5">Other Amount Only</option>
</select> </select>
</div> --> </div> -->
<div class="form-group col-md-3"> <div class="col-lg-3 col-md-3 col-sm-3">
<!-- <label class="">Select Shift Period</label> --> <!-- <label class="">Select Shift Period</label> -->
<label class="">From</label> <label class="">From</label>
<input data-behaviour='datepicker' class="form-control" name="from" id="from" type="text" placeholder="From date"> <input data-behaviour='datepicker' class="form-control" name="from" id="from" type="text" placeholder="From date">
</div> </div>
<div class="form-group col-md-3"> <div class="col-lg-3 col-md-3 col-sm-3">
<label class="">To</label> <label class="">To</label>
<input data-behaviour='datepicker' class="form-control" name="to" id="to" type="text" placeholder="To date"> <input data-behaviour='datepicker' class="form-control" name="to" id="to" type="text" placeholder="To date">
</div> </div>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label class="">All Shift</label> <label class="">All Shift</label>
<select class="form-control select" name="shift_name" id="shift_name" > <select class="form-control select" name="shift_name" id="shift_name" >
</select> </select>
</div> </div>
<div class="form-group col-md-2 margin-top-20"> <div class="col-lg-2 col-md-2 col-sm-2 margin-top-20">
<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>

View File

@@ -1,12 +1,14 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Sale Item Report</li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Sale Item Report</li>
</ul>
</div>
<!-- <div class="container"> --> <!-- <div class="container"> -->
<%= render :partial=>'shift_sale_report_filter', <%= render :partial=>'shift_sale_report_filter',

View File

@@ -2,7 +2,7 @@
<%= 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="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label>Select Period</label> <label>Select Period</label>
<select name="period" id="sel_period" class="form-control"> <select name="period" id="sel_period" class="form-control">
<option value="0">Today</option> <option value="0">Today</option>
@@ -18,21 +18,21 @@
</select> </select>
</div> </div>
<div class="form-group col-md-3"> <div class="col-lg-3 col-md-3 col-sm-3">
<!-- <label class="">Select Shift Period</label> --> <!-- <label class="">Select Shift Period</label> -->
<label class="">From</label> <label class="">From</label>
<input data-behaviour='datepicker' class="form-control" name="from" id="from" type="text" placeholder="From date"> <input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" placeholder="From date">
</div> </div>
<div class="form-group col-md-3"> <div class="col-lg-3 col-md-3 col-sm-3">
<label class="">To</label> <label class="">To</label>
<input data-behaviour='datepicker' class="form-control" name="to" id="to" type="text" placeholder="To date"> <input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" placeholder="To date">
</div> </div>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label class="">All Shift</label> <label class="">All Shift</label>
<select class="form-control select" name="shift_name" id="shift_name" > <select class="form-control select" name="shift_name" id="shift_name" >
</select> </select>
</div> </div>
<div class="form-group col-md-2 margin-top-20"> <div class="col-lg-2 col-md-2 col-sm-2 margin-top-20"><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>

View File

@@ -1,11 +1,14 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Shift Sale Report</li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Shift Sale Report</li>
</ul>
</div>
<!-- <div class="container"> --> <!-- <div class="container"> -->
<%= render :partial=>'shift_sale_report_filter', <%= render :partial=>'shift_sale_report_filter',

View File

@@ -1,12 +1,15 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Stock Check Report</li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Stock Check Report</li>
</ul>
</div>
<!-- <div class="container"> --> <!-- <div class="container"> -->
<%= render :partial => 'stock_check_report_filter', <%= render :partial => 'stock_check_report_filter',
:locals => {:period_type => true, :shift_name => true, :report_path => reports_stock_check_index_path} %> :locals => {:period_type => true, :shift_name => true, :report_path => reports_stock_check_index_path} %>

View File

@@ -2,7 +2,7 @@
<%= 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="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label>Select Period</label> <label>Select Period</label>
<select name="period" id="sel_period" class="form-control"> <select name="period" id="sel_period" class="form-control">
<option value="">Select Period</option> <option value="">Select Period</option>
@@ -19,21 +19,21 @@
</select> </select>
</div> </div>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<!-- <label class="">Select Shift Period</label> --> <!-- <label class="">Select Shift Period</label> -->
<label class="">From</label> <label class="">From</label>
<input data-behaviour='datepicker' class="form-control" name="from" id="from" type="text" placeholder="From date"> <input data-behaviour='datepicker' class="form-control datepicker" name="from" id="from" type="text" placeholder="From date">
</div> </div>
<div class="form-group col-md-2"> <div class="col-lg-2 col-md-2 col-sm-2">
<label class="">To</label> <label class="">To</label>
<input data-behaviour='datepicker' class="form-control" name="to" id="to" type="text" placeholder="To date"> <input data-behaviour='datepicker' class="form-control datepicker" name="to" id="to" type="text" placeholder="To date">
</div> </div>
<div class="form-group col-md-3"> <div class="col-lg-3 col-md-3 col-sm-3">
<label class="">All Shift</label> <label class="">All Shift</label>
<select class="form-control select" name="shift_name" id="shift_name" > <select class="form-control select" name="shift_name" id="shift_name" >
</select> </select>
</div> </div>
<div class="form-group col-md-1 margin-top-20"> <div class="col-lg-1 col-md-1 col-sm-1 margin-top-20">
<input type="submit" value="Generate Report" class='btn btn-primary'> <input type="submit" value="Generate Report" class='btn btn-primary'>
</div> </div>
</div> </div>

View File

@@ -1,12 +1,14 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active"> Void Sale Report</li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= dashboard_path %>">Home</a></li>
<li>Void Sale Report</li>
</ul>
</div>
<!-- <div class="container"> --> <!-- <div class="container"> -->
<%= render :partial=>'shift_sale_report_filter', <%= render :partial=>'shift_sale_report_filter',
:locals=>{ :period_type => true, :shift_name => true, :report_path =>reports_void_sale_index_path} %> :locals=>{ :period_type => true, :shift_name => true, :report_path =>reports_void_sale_index_path} %>

View File

@@ -4,17 +4,16 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Account</li> <li class="breadcrumb-item active">Account</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div>
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_account_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div> </div>
<br>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_account_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card"> <div class="card">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@@ -32,33 +31,33 @@
<tbody> <tbody>
<% @settings_accounts.each do |account| %> <% @settings_accounts.each do |account| %>
<tr> <tr>
<td><%= account.title %></td> <td><%= account.title %></td>
<td><%= %><%= account.account_type == 1 ? "Expense" : "Income"%></td> <td><%= %><%= account.account_type == 1 ? "Expense" : "Income"%></td>
<td><%= account.discount %></td> <td><%= account.discount %></td>
<td><%= account.point %></td> <td><%= account.point %></td>
<td><%= account.bonus %></td> <td><%= account.bonus %></td>
<td><%= account.rebate %></td> <td><%= account.rebate %></td>
<td> <td>
<%= link_to t("views.btn.edit"), edit_settings_account_path(account),:class => 'btn btn-primary btn-lg waves-effect' %> <%= link_to t("views.btn.edit"), edit_settings_account_path(account),:class => 'btn btn-primary btn-lg waves-effect' %>
<%= link_to t("views.btn.delete"), settings_account_path(account),:class => 'btn btn-danger btn-lg waves-effect', method: :delete, data: { confirm: 'Are you sure?' } %> <%= link_to t("views.btn.delete"), settings_account_path(account),:class => 'btn btn-danger btn-lg waves-effect', method: :delete, data: { confirm: 'Are you sure?' } %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card"> <div class="card">
<div class="body"> <div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div> </div>
</div> </div>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_cashier_terminals_path %>">Terminals</a></li> <li class="breadcrumb-item"><a href="<%= settings_cashier_terminals_path %>">Terminals</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_cashier_terminals_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_cashier_terminals_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -3,35 +3,33 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Cashier Terminal</li> <li class="breadcrumb-item active">Cashier Terminal</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div> </div>
<br>
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_cashier_terminal_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_cashier_terminal_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card"> <div class="card">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Active</th> <th>Active</th>
<th>Login?</th> <th>Login?</th>
<th>Auto print</th> <th>Auto print</th>
<th>Printer name</th> <th>Printer name</th>
<th>Show tax</th> <th>Show tax</th>
<th>Show cashier</th> <th>Show cashier</th>
<th>Show guest info</th> <th>Show guest info</th>
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<% @settings_cashier_terminals.each do |settings_cashier_terminal| %> <% @settings_cashier_terminals.each do |settings_cashier_terminal| %>
<tr> <tr>
<td><%= settings_cashier_terminal.name %></td> <td><%= settings_cashier_terminal.name %></td>
<td><%= settings_cashier_terminal.is_active %></td> <td><%= settings_cashier_terminal.is_active %></td>
@@ -43,19 +41,19 @@
<td><%= settings_cashier_terminal.show_guest_info %></td> <td><%= settings_cashier_terminal.show_guest_info %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_cashier_terminal_path(settings_cashier_terminal),:class => 'btn btn-info btn-lg waves-effect' %> <td><%= link_to t("views.btn.edit"), edit_settings_cashier_terminal_path(settings_cashier_terminal),:class => 'btn btn-info btn-lg waves-effect' %>
<%= link_to t("views.btn.delete"), settings_cashier_terminal_path(settings_cashier_terminal), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %></td> <%= link_to t("views.btn.delete"), settings_cashier_terminal_path(settings_cashier_terminal), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card"> <div class="card">
<div class="body"> <div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div> </div>
</div> </div>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_cashier_terminals_path %>">Cashier Terminals</a></li> <li class="breadcrumb-item"><a href="<%= settings_cashier_terminals_path %>">Cashier Terminals</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_cashier_terminals_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_cashier_terminals_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -15,7 +15,7 @@
<li class="breadcrumb-item"><a href="<%= settings_commissioners_path %>">Commissioner</a></li> <li class="breadcrumb-item"><a href="<%= settings_commissioners_path %>">Commissioner</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_accounts_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_commissioners_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -3,34 +3,31 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Commissioner</li> <li class="breadcrumb-item active">Commissioner</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div> </div>
<br>
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_commissioner_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_commissioner_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card"> <div class="card">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Employee Name</th> <th>Employee Name</th>
<th>Commission type</th> <th>Commission type</th>
<th>Joined Date</th> <th>Joined Date</th>
<th>Resigned Date</th> <th>Resigned Date</th>
<th>Active</th> <th>Active</th>
<th colspan="4"></th> <th ></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<% @commissioners.each do |commissioner| %> <% @commissioners.each do |commissioner| %>
<tr> <tr>
<td><%= commissioner.name %></td> <td><%= commissioner.name %></td>
<td> <td>
@@ -40,22 +37,22 @@
<td><%= commissioner.joined_date.utc.getlocal.strftime('%Y-%b-%d') rescue '-' %></td> <td><%= commissioner.joined_date.utc.getlocal.strftime('%Y-%b-%d') rescue '-' %></td>
<td><%= commissioner.resigned_date.utc.getlocal.strftime('%Y-%b-%d') rescue '-' %></td> <td><%= commissioner.resigned_date.utc.getlocal.strftime('%Y-%b-%d') rescue '-' %></td>
<td><%= commissioner.is_active %></td> <td><%= commissioner.is_active %></td>
<td><%= link_to t("views.btn.show"), settings_commissioner_path(commissioner),:class => 'btn btn-info btn-lg waves-effect' %></td> <td><%= link_to t("views.btn.show"), settings_commissioner_path(commissioner),:class => 'btn btn-info btn-sm waves-effect' %>
<td><%= link_to t("views.btn.edit"), edit_settings_commissioner_path(commissioner),:class => 'btn btn-primary btn-lg waves-effect' %></td> <%= link_to t("views.btn.edit"), edit_settings_commissioner_path(commissioner),:class => 'btn btn-primary btn-sm waves-effect' %>
<td><%= link_to t("views.btn.delete"), settings_commissioner_path(commissioner), method: :delete, data: {confirm: 'Are you sure?'},:class => 'btn btn-danger btn-lg waves-effect' %></td> <%= link_to t("views.btn.delete"), settings_commissioner_path(commissioner), method: :delete, data: {confirm: 'Are you sure?'},:class => 'btn btn-danger btn-sm waves-effect' %></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card"> <div class="card">
<div class="body"> <div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div> </div>
</div> </div>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_commissioners_path %>">Commissioner</a></li> <li class="breadcrumb-item"><a href="<%= settings_commissioners_path %>">Commissioner</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_accounts_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_commissioners_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -1,11 +1,12 @@
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ol class="breadcrumb">
<li><a href="<%= settings_commissioner_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= settings_commissioner_path %>">Commissioners</a></li> <li class="breadcrumb-item"><a href="<%= settings_commissioners_path %>">Commissioner</a></li>
<li class="breadcrumb-item active">Details</li>
<span style="float: right"> <span class="float-right">
</span> <%= link_to t('.back', :default => t("views.btn.back")), settings_commissioners_path %>
</ul> </span>
</ol>
</div> </div>
<!-- Nav tabs --> <!-- Nav tabs -->
@@ -56,9 +57,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<%= link_to t('.new', :default => t("views.btn.new")), settings_commissioners_path, class: 'btn btn-success' %>
<%= link_to t("views.btn.edit"), edit_settings_commissioner_path(@commissioner), class: 'btn btn-info' %>
<%= link_to t("views.btn.delete"), settings_commissioner_path(@commissioner), method: :delete, data: {confirm: 'Are you sure?'}, class: 'btn btn-danger' %>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -14,7 +14,7 @@
</div> </div>
<div class="form-actions"> <div class="form-actions">
<%= f.button :submit %> <%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
</div> </div>
<% end %> <% end %>

View File

@@ -2,7 +2,7 @@
<%= render 'form', dining_charge: @dining_charge %>--> <%= render 'form', dining_charge: @dining_charge %>-->
<div class="span12"> <!-- <div class="span12">
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ul class="breadcrumb">
<li><a href="<%= root_path %>">Home</a></li> <li><a href="<%= root_path %>">Home</a></li>
@@ -16,4 +16,21 @@
</ul> </ul>
</div> </div>
<%= render 'form', dining_charge: @dining_charge %> <%= render 'form', dining_charge: @dining_charge %>
</div> -->
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<% if @table %>
<li class="breadcrumb-item"><a href="<%= edit_settings_zone_table_path(@zone,@settings_dining_facility) %>">Table / Room</a></li>
<% elsif @room %>
<li class="breadcrumb-item"><a href="<%= edit_settings_zone_room_path(@zone,@settings_dining_facility) %>">Table / Room</a></li>
<% end %>
<li class="breadcrumb-item active">New</li>
<span class="float-right">
<%= link_to t('.back', :default => t("views.btn.back")), settings_zone_path(@zone) %>
</span>
</ol>
</div> </div>
<%= render 'form', dining_charge: @dining_charge %>

View File

@@ -1,7 +1,7 @@
<!-- <h1>New Dining Charge</h1> <!-- <h1>New Dining Charge</h1>
<%= render 'form', dining_charge: @dining_charge %> --> <%= render 'form', dining_charge: @dining_charge %> -->
<div class="span12"> <!-- <div class="span12">
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ul class="breadcrumb">
<li><a href="<%= root_path %>">Home</a></li> <li><a href="<%= root_path %>">Home</a></li>
@@ -15,8 +15,23 @@
</ul> </ul>
</div> </div>
<%= render 'form', dining_charge: @dining_charge %> <%= render 'form', dining_charge: @dining_charge %>
</div> -->
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<% if @table %>
<li class="breadcrumb-item"><a href="<%= edit_settings_zone_table_path(@zone,@settings_dining_facility) %>">Table / Room</a></li>
<% elsif @room %>
<li class="breadcrumb-item"><a href="<%= edit_settings_zone_room_path(@zone,@settings_dining_facility) %>">Table / Room</a></li>
<% end %>
<li class="breadcrumb-item active">New</li>
<span class="float-right">
<%= link_to t('.back', :default => t("views.btn.back")), settings_zone_path(@zone) %>
</span>
</ol>
</div> </div>
<%= render 'form', dining_charge: @dining_charge %>
<script> <script>
function randomNumber(len) { function randomNumber(len) {
var randomNumber; var randomNumber;

View File

@@ -5,7 +5,7 @@
<li class="breadcrumb-item"><a href="<%= settings_employees_path %>">Employees</a></li> <li class="breadcrumb-item"><a href="<%= settings_employees_path %>">Employees</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_employees_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,58 +4,55 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Employee</li> <li class="breadcrumb-item active">Employee</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div> </div>
<br>
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_employee_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_employee_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card"> <div class="card">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th style="width:20%">Name</th> <th style="width:20%">Name</th>
<th style="width:20%">Role</th> <th style="width:20%">Role</th>
<th style="width:20%">Created At</th> <th style="width:20%">Created At</th>
<th style="width:20%">Updated At</th> <th style="width:20%">Updated At</th>
<th style="width:20%">Action</th> <th style="width:20%">Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<% @employees.each do |employee| %> <% @employees.each do |employee| %>
<tr> <tr>
<td><%= link_to employee.name,settings_employee_path(employee) %></td> <td><%= link_to employee.name,settings_employee_path(employee) %></td>
<td><%= employee.role %></td> <td><%= employee.role %></td>
<td><%= employee.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td> <td><%= employee.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td><%= employee.updated_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td> <td><%= employee.updated_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td> <td>
<%= link_to t("views.btn.edit"), edit_settings_employee_path(employee),:class => 'btn btn-info btn-lg waves-effect' %> <%= link_to t("views.btn.edit"), edit_settings_employee_path(employee),:class => 'btn btn-info btn-sm waves-effect' %>
<%if employee.role != "administrator"%> <%if employee.role != "administrator"%>
<%= link_to t("views.btn.delete"), settings_employee_path(employee) , method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %> <%= link_to t("views.btn.delete"), settings_employee_path(employee) , method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %>
<%end%> <%end%>
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card"> <div class="card">
<div class="body"> <div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div> </div>
</div> </div>
</div> </div>

View File

@@ -5,7 +5,7 @@
<li class="breadcrumb-item"><a href="<%= settings_employees_path %>">Employees</a></li> <li class="breadcrumb-item"><a href="<%= settings_employees_path %>">Employees</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_employees_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_employees_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -13,7 +13,7 @@
<li class="breadcrumb-item">Employees</li> <li class="breadcrumb-item">Employees</li>
<li class="breadcrumb-item active">Details</li> <li class="breadcrumb-item active">Details</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_employees_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_item_sets_path %>">Item Sets</a></li> <li class="breadcrumb-item"><a href="<%= settings_item_sets_path %>">Item Sets</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_item_sets_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_item_sets_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -8,15 +8,14 @@
</span> </span>
</ol> </ol>
</div> </div>
<br>
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_item_set_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="card"> <div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_item_set_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@@ -30,30 +29,30 @@
<tbody> <tbody>
<% @settings_item_sets.each do |item| %> <% @settings_item_sets.each do |item| %>
<tr> <tr>
<td><%= item.name %></td> <td><%= item.name %></td>
<td><%= item.alt_name %></td> <td><%= item.alt_name %></td>
<td><%= item.min_selectable_qty %></td> <td><%= item.min_selectable_qty %></td>
<td><%= item.max_selectable_qty %></td> <td><%= item.max_selectable_qty %></td>
<td><%= link_to t("views.btn.show"), settings_item_set_path(item),:class=>'btn btn-sm btn-success' %> <td><%= link_to t("views.btn.show"), settings_item_set_path(item),:class=>'btn btn-sm btn-success' %>
<%= link_to t("views.btn.edit"), edit_settings_item_set_path(item),:class=>'btn btn-sm btn-primary' %> <%= link_to t("views.btn.edit"), edit_settings_item_set_path(item),:class=>'btn btn-sm btn-primary' %>
<%= link_to t("views.btn.delete"), settings_item_set_path(item), method: :delete, data: { confirm: 'Are you sure?' } ,:class=>'btn btn-danger btn-sm'%></td> <%= link_to t("views.btn.delete"), settings_item_set_path(item), method: :delete, data: { confirm: 'Are you sure?' } ,:class=>'btn btn-danger btn-sm'%></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_item_sets_path %>">Item Sets</a></li> <li class="breadcrumb-item"><a href="<%= settings_item_sets_path %>">Item Sets</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_item_sets_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_item_sets_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -5,7 +5,7 @@
<li class="breadcrumb-item"><a href="<%= settings_lookups_path %>">Lookup</a></li> <li class="breadcrumb-item"><a href="<%= settings_lookups_path %>">Lookup</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_lookups_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_lookups_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,17 +4,16 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">LookUp</li> <li class="breadcrumb-item active">LookUp</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div> </div>
<br>
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_lookup_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="m-b-10 clearfix">
<%= link_to t("views.btn.new"),new_settings_lookup_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card" id="custom-slimscroll"> <div class="card" id="custom-slimscroll">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@@ -32,8 +31,8 @@
<td><%= settings_lookup.lookup_type %></td> <td><%= settings_lookup.lookup_type %></td>
<td><%= settings_lookup.name %></td> <td><%= settings_lookup.name %></td>
<td><%= settings_lookup.value %></td> <td><%= settings_lookup.value %></td>
<!-- <td><%= link_to t("views.btn.show"), settings_lookup_path(settings_lookup),:class => 'btn btn-info btn-lg waves-effect' %></td> --> <!-- <td><%= link_to t("views.btn.show"), settings_lookup_path(settings_lookup),:class => 'btn btn-info btn-sm waves-effect' %></td> -->
<td><%= link_to t("views.btn.edit"), edit_settings_lookup_path(settings_lookup),:class => 'btn btn-primary btn-lg waves-effect' %> <%= link_to t("views.btn.delete"), settings_lookup_path(settings_lookup), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %></td> <td><%= link_to t("views.btn.edit"), edit_settings_lookup_path(settings_lookup),:class => 'btn btn-primary btn-sm waves-effect' %> <%= link_to t("views.btn.delete"), settings_lookup_path(settings_lookup), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>

View File

@@ -5,7 +5,7 @@
<li class="breadcrumb-item"><a href="<%= settings_lookups_path %>">Lookup</a></li> <li class="breadcrumb-item"><a href="<%= settings_lookups_path %>">Lookup</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_lookups_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_lookups_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -1,17 +1,32 @@
<%= simple_form_for([:settings,@settings_membership_action]) do |f| %>
<%= f.error_notification %>
<div class="form-inputs"> <div class="row">
<%= f.input :membership_type %> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<%= f.input :is_active %> <%= simple_form_for([:settings,@settings_membership_action]) do |f| %>
<%= f.input :gateway_communication_type %> <%= f.error_notification %>
<%= f.input :gateway_url %>
<%= f.input :auth_token %>
<%= f.input :merchant_account_id %>
<%= f.input :created_by %>
</div>
<div class="form-actions"> <div class="form-inputs">
<%= f.button :submit %> <%= f.input :membership_type %>
<%= f.input :is_active %>
<%= f.input :gateway_communication_type %>
<%= f.input :gateway_url %>
<%= f.input :auth_token %>
<%= f.input :merchant_account_id %>
<%= f.input :created_by %>
</div>
<div class="form-actions">
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
</div>
<% end %>
</div> </div>
<% end %> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div>

View File

@@ -1,6 +1,13 @@
<h1>Editing Settings Membership Action</h1>
<%= render 'form', settings_membership_action: @settings_membership_action %> <div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item"><a href="<%= settings_membership_actions_path %>">Membership Actions</a></li>
<li class="breadcrumb-item active">Edit</li>
<span class="float-right">
<%= link_to t('.back', :default => t("views.btn.back")), settings_membership_actions_path %>
</span>
</ol>
</div>
<%= link_to t("views.btn.show"), settings_membership_action_path(@settings_membership_action) %> | <%= render 'form', settings_membership_action: @settings_membership_action %>
<%= link_to t('.new', :default => t("views.btn.new")), settings_membership_actions_path %>

View File

@@ -1,42 +1,58 @@
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ol class="breadcrumb">
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li>Settings Membership Actions</li> <li class="breadcrumb-item active">Settings Membership Actions</li>
<span style="float: right"> <span class="float-right">
<%= link_to 'New Settings Membership Action', new_settings_membership_action_path,:class => 'btn btn-primary btn-sm' %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ul> </ol>
</div> </div>
<br>
<div class="card">
<div class="card-block">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Membership type</th>
<th>Gateway url</th>
<th>Merchant account</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody> <div class="row">
<% @settings_membership_actions.each do |settings_membership_action| %> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<tr> <div class="m-b-10 clearfix">
<td><%= settings_membership_action.membership_type %></td> <%= link_to t("views.btn.new"),new_settings_membership_action_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
<td><%= settings_membership_action.gateway_url %></td> </div>
<td><%= settings_membership_action.merchant_account_id %></td> <div class="card">
<td><%= link_to t("views.btn.show"), settings_membership_action_path(settings_membership_action) %></td> <div class="card-block">
<td><%= link_to t("views.btn.edit"), edit_settings_membership_action_path(settings_membership_action) %></td> <div class="table-responsive">
<td><%= link_to t("views.btn.delete"), settings_membership_action_path(settings_membership_action), method: :delete, data: { confirm: 'Are you sure?' } %></td> <table class="table">
</tr> <thead>
<% end %> <tr>
</tbody> <th>Membership type</th>
</table> <!-- <th>Gateway url</th> -->
<th>Merchant account</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<% @settings_membership_actions.each do |settings_membership_action| %>
<tr>
<td><%= settings_membership_action.membership_type %></td>
<!-- <td><%= settings_membership_action.gateway_url %></td> -->
<td><%= settings_membership_action.merchant_account_id %></td>
<td><%= link_to t("views.btn.show"), settings_membership_action_path(settings_membership_action),:class => 'btn btn-info btn-sm waves-effect' %>
<%= link_to t("views.btn.edit"), edit_settings_membership_action_path(settings_membership_action),:class => 'btn btn-primary btn-sm waves-effect' %>
<%= link_to t("views.btn.delete"), settings_membership_action_path(settings_membership_action), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div> </div>
</div> </div>

View File

@@ -1,5 +1,13 @@
<h1>New Settings Membership Action</h1>
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item"><a href="<%= settings_membership_actions_path %>">Membership Actions</a></li>
<li class="breadcrumb-item active">New</li>
<span class="float-right">
<%= link_to t('.back', :default => t("views.btn.back")), settings_membership_actions_path %>
</span>
</ol>
</div>
<%= render 'form', settings_membership_action: @settings_membership_action %> <%= render 'form', settings_membership_action: @settings_membership_action %>
<%= link_to t('.new', :default => t("views.btn.new")), settings_membership_actions_path %>

View File

@@ -1,14 +1,13 @@
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= root_path %>">Home</a></li>
<li><a href="<%= settings_membership_actions_path %>">Membership Action</a></li>
<span style="float: right">
<li> <%= link_to t("views.btn.edit"), edit_settings_membership_action_path(@settings_membership_action) %> |
<%= link_to t('.new', :default => t("views.btn.new")), settings_membership_actions_path %></li>
</span> <div class="page-header">
</ul> <ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item"><a href="<%= settings_membership_actions_path %>">Membership Actions</a></li>
<li class="breadcrumb-item active">Details</li>
<span class="float-right">
<%= link_to t('.back', :default => t("views.btn.back")), settings_membership_actions_path %>
</span>
</ol>
</div> </div>
<div class="card"> <div class="card">
<div class="card-block"> <div class="card-block">

View File

@@ -1,19 +1,34 @@
<%= simple_form_for([:settings, @settings_membership_setting]) do |f| %>
<%= f.error_notification %>
<div class="form-inputs"> <div class="row">
<%= f.input :membership_type %> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<%= f.input :is_active %>
<%= f.input :gateway_communication_type %>
<%= f.input :gateway_url %>
<%= f.input :auth_token %>
<label><%= f.check_box :discount %>Discount</label><br/>
<label><%= f.check_box :rebate %>Rebate</label><br/>
<label><%= f.check_box :bonus %>Bonus</label><br/>
<label><%= f.check_box :point %>Points</label>
</div>
<div class="form-actions"> <%= simple_form_for([:settings, @settings_membership_setting]) do |f| %>
<%= f.button :submit %> <%= f.error_notification %>
<div class="form-inputs">
<%= f.input :membership_type %>
<%= f.input :is_active %>
<%= f.input :gateway_communication_type %>
<%= f.input :gateway_url %>
<%= f.input :auth_token %>
<label><%= f.check_box :discount %>Discount</label><br/>
<label><%= f.check_box :rebate %>Rebate</label><br/>
<label><%= f.check_box :bonus %>Bonus</label><br/>
<label><%= f.check_box :point %>Points</label>
</div>
<div class="form-actions">
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
</div>
<% end %>
</div> </div>
<% end %> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div>

View File

@@ -1,11 +1,13 @@
<div class="span12"> <div class="page-header">
<div class="page-header"> <ol class="breadcrumb">
<ul class="breadcrumb"> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= settings_membership_settings_path %>">Membership Setting</a></li>
<li><a href="<%= settings_membership_settings_path %>">Membership Setting</a></li> <li class="breadcrumb-item active">Edit</li>
<li>Edit</li> <span class="float-right">
</ul> <%= link_to t('.back', :default => t("views.btn.back")), settings_membership_settings_path %>
</div> </span>
<%= render 'form', settings_membership_setting: @settings_membership_setting %> </ol>
</div> </div>
<%= render 'form', settings_membership_setting: @settings_membership_setting %>

View File

@@ -1,48 +1,65 @@
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ol class="breadcrumb">
<li><a href="<%= %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li>Membership Setting</li> <li class="breadcrumb-item active">Settings Membership Actions</li>
<span style="float: right"> <span class="float-right">
<%= link_to t("views.btn.new"),new_settings_membership_setting_path,:class => 'btn btn-primary btn-sm' %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ul> </ol>
</div> </div>
<div class="card"> <div class="row">
<table class="table table-striped"> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<thead> <div class="m-b-10 clearfix">
<tr> <%= link_to t("views.btn.new"),new_settings_employee_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
<th>Membership type</th> </div>
<th>Is active</th> <div class="card">
<th>Gateway communication type</th> <table class="table table-striped">
<th>Gateway url</th> <thead>
<tr>
<th>Membership type</th>
<th>Is active</th>
<th>Gateway communication type</th>
<th>Gateway url</th>
<!-- <th>Auth token</th> <!-- <th>Auth token</th>
<th>Merchant account</th> --> <th>Merchant account</th> -->
<th>Discount</th> <th>Discount</th>
<th>Rebate</th> <th>Rebate</th>
<th>Bonus</th> <th>Bonus</th>
<th>Points</th> <th>Points</th>
<th colspan="3"></th> <th ></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<% @settings_membership_settings.each do |settings_membership_setting| %> <% @settings_membership_settings.each do |settings_membership_setting| %>
<tr> <tr>
<td><%= link_to settings_membership_setting.membership_type, edit_settings_membership_setting_path(settings_membership_setting) %></td> <td><%= link_to settings_membership_setting.membership_type, edit_settings_membership_setting_path(settings_membership_setting) %></td>
<td><%= settings_membership_setting.is_active %></td> <td><%= settings_membership_setting.is_active %></td>
<td><%= settings_membership_setting.gateway_communication_type %></td> <td><%= settings_membership_setting.gateway_communication_type %></td>
<td><%= settings_membership_setting.gateway_url %></td> <td><%= settings_membership_setting.gateway_url %></td>
<!-- <td><%= settings_membership_setting.auth_token %></td> <!-- <td><%= settings_membership_setting.auth_token %></td>
<td><%= settings_membership_setting.merchant_account rescue ''%></td> --> <td><%= settings_membership_setting.merchant_account rescue ''%></td> -->
<td><%= settings_membership_setting.discount %></td> <td><%= settings_membership_setting.discount %></td>
<td><%= settings_membership_setting.rebate %></td> <td><%= settings_membership_setting.rebate %></td>
<td><%= settings_membership_setting.bonus %></td> <td><%= settings_membership_setting.bonus %></td>
<td><%= settings_membership_setting.point %></td> <td><%= settings_membership_setting.point %></td>
<!-- <td><%= link_to t("views.btn.edit"), edit_settings_membership_setting_path(settings_membership_setting) %></td> --> <!-- <td><%= link_to t("views.btn.edit"), edit_settings_membership_setting_path(settings_membership_setting) %></td> -->
<!-- <td><%= link_to t("views.btn.delete"), settings_membership_setting_path(settings_membership_setting), method: :delete, data: { confirm: 'Are you sure?' } %></td> --> <!-- <td><%= link_to t("views.btn.delete"), settings_membership_setting_path(settings_membership_setting), method: :delete, data: { confirm: 'Are you sure?' } %></td> -->
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div> </div>

View File

@@ -1,11 +1,13 @@
<div class="span12"> <div class="page-header">
<div class="page-header"> <ol class="breadcrumb">
<ul class="breadcrumb"> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= settings_membership_settings_path %>">Membership Setting</a></li>
<li><a href="<%= settings_membership_settings_path %>">Membership Setting</a></li> <li class="breadcrumb-item active">New</li>
<li>New</li> <span class="float-right">
</ul> <%= link_to t('.back', :default => t("views.btn.back")), settings_membership_settings_path %>
</div> </span>
<%= render 'form', settings_membership_setting: @settings_membership_setting %> </ol>
</div> </div>
<%= render 'form', settings_membership_setting: @settings_membership_setting %>

View File

@@ -1,11 +1,13 @@
<div class="span12"> <div class="page-header">
<div class="page-header"> <ol class="breadcrumb">
<ul class="breadcrumb"> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= settings_menu_categories_path %>">Menu Categories</a></li>
<li><a href="<%= settings_menu_categories_path %>">Menu Categories</a></li> <li class="breadcrumb-item active">New</li>
<li>New</li> <span class="float-right">
</ul> <%= link_to 'Back', settings_menu_categories_path %>
</div> </span>
<%= render 'form', settings_menu_category: @settings_menu_category %> </ol>
</div> </div>
<br>
<%= render 'form', settings_menu_category: @settings_menu_category %>

View File

@@ -44,7 +44,7 @@
<td><%= @settings_menu.valid_time_to.strftime("%H:%M") rescue "-" %></td> <td><%= @settings_menu.valid_time_to.strftime("%H:%M") rescue "-" %></td>
<td><%= @settings_menu.created_by %></td> <td><%= @settings_menu.created_by %></td>
<td><%= @settings_menu.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td> <td><%= @settings_menu.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_menu_path(@settings_menu) %></td> <td><%= link_to t("views.btn.edit"), edit_settings_menu_path(@settings_menu),:class => 'btn btn-primary btn-sm waves-effect' %></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li> <li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_order_queue_stations_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_order_queue_stations_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Order Queue Stations</li> <li class="breadcrumb-item active">Order Queue Stations</li>
<span class="float-right"> <span class="float-right">
<%= link_to 'Back', dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li> <li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_order_queue_stations_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_order_queue_stations_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -5,7 +5,7 @@
<li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li> <li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li>
<li class="breadcrumb-item active">Detail</li> <li class="breadcrumb-item active">Detail</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_order_queue_stations_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_order_queue_stations_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -1,17 +1,32 @@
<%= simple_form_for([:settings, @settings_payment_method_setting]) do |f| %>
<%= f.error_notification %>
<div class="form-inputs"> <div class="row">
<%= f.input :payment_method %> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<%= f.input :is_active %> <%= simple_form_for([:settings, @settings_payment_method_setting]) do |f| %>
<%= f.input :gateway_communication_type %> <%= f.error_notification %>
<%= f.input :gateway_url %>
<%= f.input :auth_token %>
<%= f.input :merchant_account_id %>
<%= f.input :additional_parameters %>
</div>
<div class="form-actions"> <div class="form-inputs">
<%= f.button :submit %> <%= f.input :payment_method %>
<%= f.input :is_active %>
<%= f.input :gateway_communication_type %>
<%= f.input :gateway_url %>
<%= f.input :auth_token %>
<%= f.input :merchant_account_id %>
<%= f.input :additional_parameters %>
</div>
<div class="form-actions">
<%= f.button :submit %>
</div>
<% end %>
</div> </div>
<% end %> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div>

View File

@@ -1,11 +1,12 @@
<div class="page-header">
<div class="span12"> <ol class="breadcrumb">
<div class="page-header"> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<ul class="breadcrumb"> <li class="breadcrumb-item"><a href="<%= settings_payment_method_settings_path %>"> Payment Method Setting</a></li>
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item active">Edit</li>
<li><a href="<%= settings_payment_method_settings_path %>">Payment Method Setting</a></li> <span class="float-right">
<li>Edit</li> <%= link_to t('.ack', :default => t("views.back")), settings_payment_method_settings_path %>
</ul> </span>
</div> </ol>
<%= render 'form', settings_payment_method_setting: @settings_payment_method_setting %>
</div> </div>
<%= render 'form', settings_payment_method_setting: @settings_payment_method_setting %>

View File

@@ -1,42 +1,59 @@
<div class="page-header"> <div class="page-header">
<ul class="breadcrumb"> <ol class="breadcrumb">
<li><a href="<%= %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li>Payment Method</li> <li class="breadcrumb-item active">Payment Method</li>
<span style="float: right"> <span class="float-right">
<%= link_to t("views.btn.new"),new_settings_payment_method_setting_path,:class => 'btn btn-primary btn-sm' %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ul> </ol>
</div> </div>
<br>
<div class="card">
<table class="table table-striped">
<thead>
<tr>
<th>Payment method</th>
<th>Is active</th>
<th>Gateway communication type</th>
<th>Gateway url</th>
<th>Auth token</th>
<th>Merchant account</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody> <div class="row">
<% @settings_payment_method_settings.each do |settings_payment_method_setting| %> <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<tr> <div class="m-b-10 clearfix">
<td><%= settings_payment_method_setting.payment_method %></td> <%= link_to t("views.btn.new"),new_settings_payment_method_setting_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
<td><%= settings_payment_method_setting.is_active %></td> </div>
<td><%= settings_payment_method_setting.gateway_communication_type %></td>
<td><%= settings_payment_method_setting.gateway_url %></td> <div class="card">
<td><%= settings_payment_method_setting.auth_token %></td> <table class="table table-striped">
<td><%= settings_payment_method_setting.merchant_account_id %></td> <thead>
<td><%= link_to t("views.btn.edit"), edit_settings_payment_method_setting_path(settings_payment_method_setting) %> <tr>
| <%= link_to t("views.btn.delete"), settings_payment_method_setting_path(settings_payment_method_setting), method: :delete, data: { confirm: 'Are you sure?' } %></td> <th>Payment method</th>
</tr> <th>Is active</th>
<% end %> <th>Gateway communication type</th>
</tbody> <th>Gateway url</th>
</table> <th>Auth token</th>
</div> <th>Merchant account</th>
<th ></th>
</tr>
</thead>
<tbody>
<% @settings_payment_method_settings.each do |settings_payment_method_setting| %>
<tr>
<td><%= settings_payment_method_setting.payment_method %></td>
<td><%= settings_payment_method_setting.is_active %></td>
<td><%= settings_payment_method_setting.gateway_communication_type %></td>
<td><%= settings_payment_method_setting.gateway_url %></td>
<td><%= settings_payment_method_setting.auth_token %></td>
<td><%= settings_payment_method_setting.merchant_account_id %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_payment_method_setting_path(settings_payment_method_setting),:class => 'btn btn-primary btn-sm waves-effect' %>
<%= link_to t("views.btn.delete"), settings_payment_method_setting_path(settings_payment_method_setting), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="card">
<div class="body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
</div>
</div>
</div>
</div>

View File

@@ -1,11 +1,13 @@
<div class="span12"> <div class="page-header">
<div class="page-header"> <ol class="breadcrumb">
<ul class="breadcrumb"> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li><a href="<%= root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= settings_payment_method_settings_path %>"> Payment Method Setting</a></li>
<li><a href="<%= settings_payment_method_settings_path %>"> Payment Method Setting</a></li> <li class="breadcrumb-item active">New</li>
<li>New</li> <span class="float-right">
</ul> <%= link_to t('.ack', :default => t("views.back")), settings_payment_method_settings_path %>
</div> </span>
<%= render 'form', settings_payment_method_setting: @settings_payment_method_setting %> </ol>
</div> </div>
<%= render 'form', settings_payment_method_setting: @settings_payment_method_setting %>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li> <li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li>
<li class="breadcrumb-item active"><%= @settings_order_queue_station.station_name %></li> <li class="breadcrumb-item active"><%= @settings_order_queue_station.station_name %></li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_order_queue_stations_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_order_queue_stations_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_products_path %>">Products</a></li> <li class="breadcrumb-item"><a href="<%= settings_products_path %>">Products</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_products_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_products_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Product</li> <li class="breadcrumb-item active">Product</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %> <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span> </span>
</ol> </ol>
</div> </div>
@@ -41,9 +41,9 @@
<td><%= settings_product.description %></td> <td><%= settings_product.description %></td>
<td><%= settings_product.information %></td> <td><%= settings_product.information %></td>
<td><%= settings_product.taxable %></td> <td><%= settings_product.taxable %></td>
<td><%= link_to t("views.btn.show"), settings_product_path(settings_product),:class => 'btn btn-info btn-lg waves-effect' %> <td><%= link_to t("views.btn.show"), settings_product_path(settings_product),:class => 'btn btn-info btn-sm waves-effect' %>
<%= link_to t("views.btn.edit"), edit_settings_product_path(settings_product),:class => 'btn btn-primary btn-lg waves-effect' %> <%= link_to t("views.btn.edit"), edit_settings_product_path(settings_product),:class => 'btn btn-primary btn-sm waves-effect' %>
<%= link_to t("views.btn.delete"), settings_product_path(settings_product), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %></td> <%= link_to t("views.btn.delete"), settings_product_path(settings_product), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>

View File

@@ -14,7 +14,7 @@
<li class="breadcrumb-item"><a href="<%= settings_products_path %>">Products</a></li> <li class="breadcrumb-item"><a href="<%= settings_products_path %>">Products</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_products_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_products_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_products_path %>">Products</a></li> <li class="breadcrumb-item"><a href="<%= settings_products_path %>">Products</a></li>
<li class="breadcrumb-item active">Details</li> <li class="breadcrumb-item active">Details</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_products_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_products_path %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -13,7 +13,7 @@
<ol class="breadcrumb"> <ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item"><!-- <a href="<%= settings_promotion_promotion_products_path %>"> -->Promotion Products</a></li> <li class="breadcrumb-item"><!-- <a href="<%= settings_promotion_promotion_products_path %>"> -->Promotion Products</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Detail</li>
<span class="float-right"> <span class="float-right">
<%= link_to 'Back', settings_products_path %> <%= link_to 'Back', settings_products_path %>
</span> </span>

View File

@@ -5,7 +5,7 @@
<li class="breadcrumb-item"><a href="<%= settings_zone_path(@zone) %>">Rooms</a></li> <li class="breadcrumb-item"><a href="<%= settings_zone_path(@zone) %>">Rooms</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_zone_path(@zone) %> <%= link_to t('.back', :default => t("views.btn.back")), settings_zone_path(@zone) %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -16,7 +16,7 @@
<li class="breadcrumb-item"><a href="<%= settings_zone_path(@zone) %>">Rooms</a></li> <li class="breadcrumb-item"><a href="<%= settings_zone_path(@zone) %>">Rooms</a></li>
<li class="breadcrumb-item active">New</li> <li class="breadcrumb-item active">New</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_zone_path(@zone) %> <%= link_to t('.back', :default => t("views.btn.back")), settings_zone_path(@zone) %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -42,8 +42,8 @@
<td><%= @room.created_by %></td> <td><%= @room.created_by %></td>
<% end %> <% end %>
<td><%= @room.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td> <td><%= @room.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_zone_room_path(@zone,@room) %> <td><%= link_to t("views.btn.edit"), edit_settings_zone_room_path(@zone,@room),:class => 'btn btn-primary btn-sm waves-effect' %>
<%= link_to t("views.btn.delete"), settings_zone_room_path(@zone,@room), method: :delete, data: { confirm: 'Are you sure?' } %></td> <%= link_to t("views.btn.delete"), settings_zone_room_path(@zone,@room), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -59,7 +59,7 @@
<td><%= @category.alt_name %></td> <td><%= @category.alt_name %></td>
<td><%= @category.order_by %></td> <td><%= @category.order_by %></td>
<td><%= @category.parent.name rescue "-" %></td> <td><%= @category.parent.name rescue "-" %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_menu_category_path(@category),:class => 'btn btn-info btn-lg float-right waves-effect"' %></td> <td><%= link_to t("views.btn.edit"), edit_settings_menu_category_path(@category),:class => 'btn btn-info btn-sm float-right waves-effect"' %></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -15,7 +15,7 @@
<li class="breadcrumb-item"><a href="<%= settings_zone_path(@zone) %>">Tables</a></li> <li class="breadcrumb-item"><a href="<%= settings_zone_path(@zone) %>">Tables</a></li>
<li class="breadcrumb-item active">Edit</li> <li class="breadcrumb-item active">Edit</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_zone_path(@zone) %> <%= link_to t('.back', :default => t("views.btn.back")), settings_zone_path(@zone) %>
</span> </span>
</ol> </ol>
</div> </div>

View File

@@ -44,8 +44,7 @@
<td><%= @table.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td> <td><%= @table.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td> <td>
<%= link_to t("views.btn.edit"), edit_settings_zone_table_path(@zone,@table),:class => 'btn btn-primary btn-lg waves-effect' %> <%= link_to t("views.btn.edit"), edit_settings_zone_table_path(@zone,@table),:class => 'btn btn-primary btn-lg waves-effect' %>
<%= link_to t("views.btn.delete"), settings_zone_table_path(@zone,@table), :class => 'btn btn-danger btn-lg waves-effect', method: :delete, data: { confirm: 'Are you sure?' } %> <%= link_to t("views.btn.delete"), settings_zone_table_path(@zone,@table), :class => 'btn btn-danger btn-lg waves-effect', method: :delete, data: { confirm: 'Are you sure?' } %>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@@ -4,7 +4,7 @@
<li class="breadcrumb-item"><a href="<%= settings_zones_path %>">Zones</a></li> <li class="breadcrumb-item"><a href="<%= settings_zones_path %>">Zones</a></li>
<li class="breadcrumb-item active">New Zone</li> <li class="breadcrumb-item active">New Zone</li>
<span class="float-right"> <span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), settings_zones_path %> <%= link_to t('.back', :default => t("views.btn.back")), settings_zones_path %>
</span> </span>
</ul> </ul>
</div> </div>

View File

@@ -1,28 +1,13 @@
<div class="row">
<div class="col-lg-12"> <div class="page-header">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="<%= crm_root_path %>">Home</a></li> <li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="active"> <li class="breadcrumb-item"><a href="<%= transactions_sales_path %>">Sales</a></li>
<a href="<%= transactions_sales_path %>">Sale</a> <li class="breadcrumb-item active">Details</li>
</li> <span class="float-right">
<li class="active"> <%= link_to 'Back', transactions_sales_path %>
<a href="<%= transactions_sale_path(@sale.sale_id) %>"><%= @sale.sale_id %></a> </span>
</li> </ol>
<span style="float: right">
<a href="<%= transactions_sales_path%>" class="btn btn-primary btn-sm">
<i class="fa fa-arrow-left fa-lg"></i> Back
</a>
<!--
<a href="<%= transactions_void_path(@sale)%>" class="btn btn-danger btn-sm">
<i class="fa fa-trash fa-lg"></i> Void Sale
</a>
<a href="<%= transactions_manual_complete_sale_path(@sale)%>" class="btn btn-success btn-sm" disabled>
<i class="fa fa-invoice fa-lg"></i> Complete Sale
</a> -->
</span>
</ol>
</div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-lg-12 col-md-12 col-sm-12"> <div class="col-lg-12 col-md-12 col-sm-12">