update crm layout
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
$(function(){
|
||||
|
||||
$(".booking_click").on("click", function(){
|
||||
$(this).css('background-color', '#CCC');
|
||||
$(".summary-items tbody tr").remove();
|
||||
$("#cancel").removeAttr("disabled");
|
||||
$("#assign").removeAttr("disabled");
|
||||
@@ -94,7 +93,6 @@ $(function(){
|
||||
|
||||
|
||||
$(".customer_detail").on("click", function(){
|
||||
$(this).css('background-color', '#CCC');
|
||||
$(".summary-items tbody tr").remove();
|
||||
$("#crm_print").removeAttr("disabled");
|
||||
var id = $(this).attr('data-ref');
|
||||
@@ -118,13 +116,14 @@ function show_details(url_item){
|
||||
success: function(data) {
|
||||
item_data = data.order_items;
|
||||
//console.log(item_data.length);
|
||||
|
||||
|
||||
$("#table").text(data.table_name)
|
||||
$("#order_at").text(data.checkin_at)
|
||||
$("#order_by").text(data.checkin_by)
|
||||
$("#assign").val(data.id)
|
||||
$("#cancel").val(data.id)
|
||||
|
||||
$('.no_record').addClass('hide');
|
||||
|
||||
for(var field in item_data) {
|
||||
if (item_data[field].item_name){
|
||||
var price = parseFloat(item_data[field].price).toFixed(2);
|
||||
@@ -157,13 +156,14 @@ function customer_details(id){
|
||||
$("#for-booking").remove();
|
||||
var div_data = "<strong>CUSTOMER DETAILS</strong>";
|
||||
$("#order-title").replaceWith(div_data);
|
||||
|
||||
$('.no_record').addClass('hide');
|
||||
$('.customer-detail').removeClass('hide') ;
|
||||
|
||||
$("#cus_name").text(data.name)
|
||||
$("#cus_email").text(data.email)
|
||||
$("#cus_contact_no").text(data.contact_no)
|
||||
|
||||
|
||||
if(item_data.length>0){
|
||||
for(var field in item_data) {
|
||||
if (item_data[field].item_name){
|
||||
@@ -178,7 +178,8 @@ function customer_details(id){
|
||||
$(".summary-items tbody").append(row);
|
||||
}
|
||||
}else{
|
||||
|
||||
$('.no_record').removeClass('hide');
|
||||
$("#crm_print").attr("disabled","disabled");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
<div class="tab-content" style="min-height:670px; max-height:670px; overflow-y:scroll">
|
||||
<!--- Panel 0 - Completed -->
|
||||
<div class="tab-pane" id="queue" role="tabpanel" style="min-height:670px; max-height:670px; overflow-y:scroll">
|
||||
<div class="tab-pane" id="queue" role="tabpanel" style="min-height:670px; max-height:670px; overflow-y:">
|
||||
<%= render :partial => 'queue' %>
|
||||
|
||||
</div>
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
<!-- Panel 1 - Tables - End -->
|
||||
<!-- Panel 2 - Rooms -->
|
||||
<div class="tab-pane" id="customer" role="tabpanel" style="min-height:670px; max-height:670px; overflow-y:scroll">
|
||||
<div class="tab-pane" id="customer" role="tabpanel" style="min-height:670px; max-height:670px; overflow-y:">
|
||||
<%= render :partial => 'customer' %>
|
||||
</div>
|
||||
<!-- Panel 2 - Rooms - End -->
|
||||
@@ -90,6 +90,9 @@
|
||||
<th style="width:33%; text-align:center">Qty</th>
|
||||
<th style="width:33%; text-align:right">Price</th>
|
||||
</tr>
|
||||
<tr class="hide no_record">
|
||||
<td style="width:44%; text-align:center;" id="no_record">No Order Items</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user