Mails etc. in Lead finish
This commit is contained in:
parent
66ca252bfa
commit
b362b93bca
45 changed files with 1460 additions and 418 deletions
|
|
@ -4,12 +4,8 @@
|
|||
|
||||
<style>
|
||||
body {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
|
||||
}
|
||||
.btn-xs {
|
||||
line-height: 1.3em;
|
||||
|
|
@ -91,10 +87,7 @@
|
|||
{!! Form::close() !!}
|
||||
|
||||
@if($id !== "new")
|
||||
{{--
|
||||
@include('lead._detail_mails')
|
||||
|
||||
--}}
|
||||
@include('lead._detail_mails')
|
||||
@include('lead._detail_files')
|
||||
@endif
|
||||
|
||||
|
|
@ -105,9 +98,6 @@
|
|||
<a href="{{ make_old_url('/index.php/leads/'.$lead->id.'/edit') }}" class="btn btn-sm btn-default float-right">{{ __('zurück ins CRM v2') }}</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
|
|
@ -165,20 +155,18 @@
|
|||
}
|
||||
init_site();
|
||||
|
||||
|
||||
/*
|
||||
|
||||
var oTable = $('#datatables-customer-mails').DataTable({
|
||||
|
||||
var oTable = $('#datatables-lead-mails').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"searching": false,
|
||||
ajax: {
|
||||
url: '{!! route( 'customer_fewo_mail_data_table' ) !!}',
|
||||
url: '{!! route( 'lead_mail_data_table' ) !!}',
|
||||
data: function(d) {
|
||||
d.model = 'CustomerFewoMail';
|
||||
d.travel_user_booking_fewo_id = $('#customer_mails_table input[name=travel_user_booking_fewo_id]').val();
|
||||
d.customer_mail_dir = $('#customer_mails_table input[name=customer_mail_dir]').val();
|
||||
d.customer_mail_subdir = $('#customer_mails_table input[name=customer_mail_subdir]').val();
|
||||
d.model = 'LeadMail';
|
||||
d.lead_id = $('#lead_mails_table input[name=lead_id]').val();
|
||||
d.lead_mail_dir = $('#lead_mails_table input[name=lead_mail_dir]').val();
|
||||
d.lead_mail_subdir = $('#lead_mails_table input[name=lead_mail_subdir]').val();
|
||||
d.data_table_search = $('#dataTableInputSearchField').val();
|
||||
}
|
||||
},
|
||||
|
|
@ -196,13 +184,13 @@
|
|||
"url": "/js/German.json"
|
||||
},
|
||||
"drawCallback": function( settings ) {
|
||||
$('#datatables-customer-mails [rel="tooltip"]').tooltip({trigger: "hover"});
|
||||
$('#datatables-customer-mails .customer-mail-ajax-action').on('click', function (event) {
|
||||
ajax_object_action(event, $(this), callback_customer_mails_data_table);
|
||||
$('#datatables-lead-mails [rel="tooltip"]').tooltip({trigger: "hover"});
|
||||
$('#datatables-lead-mails .lead-mail-ajax-action').on('click', function (event) {
|
||||
ajax_object_action(event, $(this), callback_lead_mails_data_table);
|
||||
});
|
||||
}
|
||||
});
|
||||
function callback_customer_mails_data_table(data) {
|
||||
function callback_lead_mails_data_table(data) {
|
||||
if(data.status === 'success'){
|
||||
oTable.draw();
|
||||
}
|
||||
|
|
@ -213,14 +201,14 @@
|
|||
if($(this).hasClass('active')){
|
||||
return;
|
||||
}
|
||||
$('#customer_mails_table input[name=customer_mail_dir]').val($(this).data('dir'));
|
||||
$('#customer_mails_table input[name=customer_mail_subdir]').val($(this).data('subdir'));
|
||||
$('#lead_mails_table input[name=lead_mail_dir]').val($(this).data('dir'));
|
||||
$('#lead_mails_table input[name=lead_mail_subdir]').val($(this).data('subdir'));
|
||||
if($(this).data('dir') <= 10){
|
||||
$('.btn-compare-customer-mails').data('customer_mail_dir', $(this).data('dir'));
|
||||
$('.btn-compare-customer-mails').data('customer_mail_subdir', $(this).data('subdir'));
|
||||
$('.btn-compare-customer-mails').prop('disabled', false);
|
||||
$('.btn-compare-lead-mails').data('lead_mail_dir', $(this).data('dir'));
|
||||
$('.btn-compare-lead-mails').data('lead_mail_subdir', $(this).data('subdir'));
|
||||
$('.btn-compare-lead-mails').prop('disabled', false);
|
||||
}else{
|
||||
$('.btn-compare-customer-mails').prop('disabled', true);
|
||||
$('.btn-compare-lead-mails').prop('disabled', true);
|
||||
}
|
||||
oTable.draw();
|
||||
$('.messages-wrapper .sidebox-nav-item').removeClass('active');
|
||||
|
|
@ -236,9 +224,5 @@
|
|||
});
|
||||
|
||||
});
|
||||
*/
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue