Fewo Mails / Booking Country Services
This commit is contained in:
parent
b9c26d06d0
commit
48a6eb2282
154 changed files with 7761 additions and 1643 deletions
|
|
@ -188,6 +188,7 @@
|
|||
<th>{{__('Anreise')}}</th>
|
||||
<th>{{__('Abreise')}}</th>
|
||||
<th>{{__('U.')}}</th>
|
||||
<th>{{__('L.')}}</th>
|
||||
<th>{{__('Sachbearbeiter')}}</th>
|
||||
<th>{{__('Status')}}</th>
|
||||
<th>{{__('E-Mail')}}</th>
|
||||
|
|
@ -266,6 +267,7 @@
|
|||
{ data: 'start_date', name: 'start_date' },
|
||||
{ data: 'end_date', name: 'end_date' },
|
||||
{ data: 'travel_documents', name: 'travel_documents', orderable: false },
|
||||
{ data: 'booking_country_services', name: 'booking_country_services', orderable: false },
|
||||
{ data: 'sf_guard_user_id', name: 'sf_guard_user_id', orderable: false },
|
||||
{ data: 'lead.status_id', name: 'lead.status_id', orderable: false },
|
||||
{ data: 'last_customer_email', name: 'last_customer_email', orderable: true },
|
||||
|
|
@ -302,7 +304,7 @@
|
|||
}
|
||||
} );
|
||||
} );*/
|
||||
this.api().columns(11).every( function () {
|
||||
this.api().columns(13).every( function () {
|
||||
var column = this;
|
||||
var title = $(column.header()).html();
|
||||
var select = $('<select class="selectpicker"><option value="">'+title+'</option></select>')
|
||||
|
|
@ -344,6 +346,21 @@
|
|||
drawCallback: function () {
|
||||
//console.log($('#travel_option_agenda_id').prop('disabled'));
|
||||
//only when is disabled, refesh list is load by other filter.
|
||||
|
||||
$('#datatables-requests [rel="tooltip"]').tooltip({trigger: "hover"});
|
||||
$('#datatables-requests [data-toggle="popover"]').popover({trigger: "hover", content: get_popover_content, html: true,});
|
||||
|
||||
/* $('#datatables-requests [data-toggle="popover"]').hover(function() {
|
||||
var e = $(this);
|
||||
e.off('hover');
|
||||
console.log(e.data('booking_id'))
|
||||
e.popover({content: "test"}).popover('show');
|
||||
/*$.get(e.data('load_id'),function(d) {
|
||||
e.popover({content: d}).popover('show');
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
if($('#travel_option_agenda_id').prop('disabled')) {
|
||||
var data = table.ajax.params();
|
||||
//console.log(data);
|
||||
|
|
@ -381,6 +398,41 @@
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
function get_popover_content() {
|
||||
|
||||
|
||||
|
||||
if ($(this).data('booking_id')) {
|
||||
var data = {};
|
||||
data['action'] = 'get_popover_booking_services';
|
||||
data['booking_id'] = $(this).data('booking_id');
|
||||
$(this).addClass("loading");
|
||||
var icontent = $.ajax({
|
||||
url: '{!! route( 'data_ajax_requests' ) !!}',
|
||||
data: data,
|
||||
type: "POST",
|
||||
dataType: "html",
|
||||
cache: false,
|
||||
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
|
||||
encode: true,
|
||||
async: false,
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
success: function() {
|
||||
// just get the response
|
||||
},
|
||||
error: function() {
|
||||
// nothing
|
||||
}
|
||||
}).responseText;
|
||||
$(this).removeClass("loading");
|
||||
return icontent;
|
||||
}
|
||||
return "Keine Buchungs-ID";
|
||||
}
|
||||
|
||||
function clearTravelOptionAgenda(){
|
||||
$('#travel_option_agenda_id').empty().prop('disabled', true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue