Mails etc. in Lead finish
This commit is contained in:
parent
66ca252bfa
commit
b362b93bca
45 changed files with 1460 additions and 418 deletions
|
|
@ -73,6 +73,7 @@
|
|||
</a>
|
||||
@endforeach
|
||||
@foreach($travel_user_booking_fewo::$customer_mail_dirs as $dir_id => $customer_mail_dir)
|
||||
@php($badge = "badge-outline-primary")
|
||||
<a href="javascript:void(0)" class="d-flex justify-content-between align-items-center py-2 px-4 sidebox-nav-item"
|
||||
data-dir="{{$dir_id}}" data-subdir="0" data-icon="{{$customer_mail_dir['icon']}}" data-name="{{$customer_mail_dir['name']}}">
|
||||
<div class="item">
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
<div class="card-datatable table-responsive py-2">
|
||||
<input type="hidden" name="sort_travel_country_id" value="">
|
||||
<input type="hidden" name="sort_travelagenda_id" value="">
|
||||
<table id="datatables-default" class="table table-striped table-bordered">
|
||||
<table id="datatables-fewos" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="max-width: 10px;"> </th>
|
||||
|
|
@ -52,6 +52,7 @@
|
|||
<th>{{__('bis')}}</th>
|
||||
<th>{{__('Eingetragen')}}</th>
|
||||
<th>{{__('Mails')}}</th>
|
||||
<th>{{__('N.')}}</th>
|
||||
<th>{{__('Kanal')}}</th>
|
||||
<th>{{__('Datum')}}</th>
|
||||
<th>{{__('R.-Nr.')}}</th>
|
||||
|
|
@ -67,7 +68,7 @@
|
|||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
var table =$('#datatables-default').DataTable({
|
||||
var table =$('#datatables-fewos').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"searching": true,
|
||||
|
|
@ -87,6 +88,7 @@
|
|||
{ data: 'to_date', name: 'to_date' },
|
||||
{ data: 'is_calendar', name: 'is_calendar', orderable: false },
|
||||
{ data: 'is_mail', name: 'is_mail', orderable: false },
|
||||
{ data: 'booking_fewo_notice', name: 'booking_fewo_notice', orderable: false },
|
||||
{ data: 'travel_booking_fewo_channel.name', name: 'travel_booking_fewo_channel.name' },
|
||||
{ data: 'booking_date', name: 'booking_date' },
|
||||
{ data: 'invoice_number', name: 'invoice_number' },
|
||||
|
|
@ -97,6 +99,10 @@
|
|||
"iDisplayLength": 50,
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
},
|
||||
drawCallback: function () {
|
||||
$('#datatables-fewos [rel="tooltip"]').tooltip({trigger: "hover"});
|
||||
$('#datatables-fewos [data-toggle="popover"]').popover({trigger: "hover", content: get_popover_content, html: true,});
|
||||
}
|
||||
});
|
||||
$('#option_fewo_id').on('change', function(){
|
||||
|
|
@ -105,7 +111,38 @@
|
|||
$('#option_channel_id').on('change', function(){
|
||||
table.draw();
|
||||
});
|
||||
$('#datatables-default').tooltip({selector: '[data-toggle="tooltip"]'});
|
||||
$('#datatables-fewos').tooltip({selector: '[data-toggle="tooltip"]'});
|
||||
|
||||
function get_popover_content() {
|
||||
if ($(this).data('travel_user_booking_fewo_id')) {
|
||||
var data = {};
|
||||
data['action'] = $(this).data('action');
|
||||
data['travel_user_booking_fewo_id'] = $(this).data('travel_user_booking_fewo_id');
|
||||
$(this).addClass("loading");
|
||||
var icontent = $.ajax({
|
||||
url: '{!! route( 'travel_user_booking_fewo_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>
|
||||
|
||||
|
|
|
|||
|
|
@ -30,26 +30,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<hr class="border-light m-0">
|
||||
<!-- / Header -->
|
||||
{{-- <!-- Controls -->
|
||||
<div class="media flex-wrap align-items-center p-2">
|
||||
<div class="media-body d-flex flex-wrap flex-basis-100 flex-basis-sm-auto">
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted mr-3" title="Back"><i class="ion ion-md-arrow-back"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Mark as unread"><i class="ion ion-md-mail-unread"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Mark as important"><i class="ion ion-md-alert"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Move to spam"><i class="ion ion-md-folder-open"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Move to trash"><i class="ion ion-md-trash"></i></button>
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center ml-auto">
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat text-muted px-3"><i class="ion ion-ios-undo"></i> Reply</button>
|
||||
<div class="text-lighter">|</div>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat text-muted px-3">Forward <i class="ion ion-ios-redo"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="border-light m-0">
|
||||
<!-- / Controls -->
|
||||
--}}
|
||||
|
||||
<div class="p-4">
|
||||
{!! nl2br($customer_mail->message) !!}
|
||||
</div>
|
||||
|
|
@ -61,7 +42,7 @@
|
|||
<p><strong>Kunde: </strong>
|
||||
{{ $customer_mail->customer->getSalutation() }} {{ $customer_mail->customer->title }} {{ $customer_mail->customer->firstname }} {{ $customer_mail->customer->name }}
|
||||
@if($customer_mail->booking)
|
||||
({{$customer_mail->booking->id}})1
|
||||
({{$customer_mail->booking->id}})
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
|
|
@ -149,7 +130,7 @@
|
|||
</div>
|
||||
<div class="col-sm-6">
|
||||
<button type="submit" class="btn btn-xs btn-default float-right mt-1" onclick="return confirm('{{__('Wirklich weiterleiten? E-Mail wird erneut gesendet!')}}');"><i class="ion ion-ios-send"></i> weiterleiten</button>
|
||||
</div
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue