Mails etc. in Lead finish
This commit is contained in:
parent
66ca252bfa
commit
b362b93bca
45 changed files with 1460 additions and 418 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div class="card">
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="datatables-leads table table-striped table-bordered">
|
||||
<table class="datatables-leads table table-striped table-bordered" id="datatables-leads">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -19,8 +19,11 @@
|
|||
<th>{{__('Nachname')}}</th>
|
||||
<th>{{__('E-Mail')}}</th>
|
||||
<th>{{__('Anfrage-Datum')}}</th>
|
||||
<th>{{__('N.')}}</th>
|
||||
<th>{{__('Sachbearbeiter')}}</th>
|
||||
<th>{{__('Status')}}</th>
|
||||
<th>{{__('E-Mail')}}</th>
|
||||
<th style="max-width: 60px;">{{__('delete')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
|
@ -29,7 +32,7 @@
|
|||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
$('.datatables-leads').dataTable({
|
||||
var table = $('#datatables-leads').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ajax": '{!! route('data_table_leads') !!}',
|
||||
|
|
@ -42,16 +45,55 @@
|
|||
{ data: 'customer.name', name: 'customer.name' },
|
||||
{ data: 'customer.email', name: 'customer.email' },
|
||||
{ data: 'request_date', name: 'request_date' },
|
||||
{ data: 'lead_notice', name: 'lead_notice', orderable: false },
|
||||
{ data: 'sf_guard_user.last_name', name: 'sf_guard_user.last_name', searchable: false },
|
||||
{ data: 'status', name: 'status' },
|
||||
{ data: 'last_lead_email', name: 'last_lead_email', orderable: true },
|
||||
{ data: 'action_delete', orderable: false, searchable: false},
|
||||
|
||||
|
||||
],
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 100,
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
},
|
||||
drawCallback: function () {
|
||||
$('#datatables-leads [rel="tooltip"]').tooltip({trigger: "hover"});
|
||||
$('#datatables-leads [data-toggle="popover"]').popover({trigger: "hover", content: get_popover_content, html: true,});
|
||||
}
|
||||
});
|
||||
|
||||
function get_popover_content() {
|
||||
if ($(this).data('lead_id')) {
|
||||
var data = {};
|
||||
data['action'] = $(this).data('action');
|
||||
data['lead_id'] = $(this).data('lead_id');
|
||||
$(this).addClass("loading");
|
||||
var icontent = $.ajax({
|
||||
url: '{!! route( 'lead_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";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue