Mails previews, Lead Passolution, Lead Country Files, LeadParticipant
This commit is contained in:
parent
5e3bd3a1ba
commit
ae70577289
28 changed files with 596 additions and 97 deletions
|
|
@ -163,6 +163,12 @@
|
|||
<select class="ql-placeholder">
|
||||
{!! \App\Services\Placeholder::getBookingOptions() !!}
|
||||
</select>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-preview" id="open_modal_quill_preview"
|
||||
data-route="{{ route('customer_mail_ajax') }}"
|
||||
data-booking_id="{{ $value->booking->id }}"
|
||||
data-action="load_preview_mail"><i class="fa fa-eye"></i></button>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div id="message-editor" style="height: 400px">{!! $value->message !!}</div>
|
||||
|
|
@ -347,8 +353,21 @@
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#open_modal_quill_preview').on('click', function (event) {
|
||||
data = {};
|
||||
$.each($(this).data(), function(index, value){
|
||||
data[index] = value;
|
||||
});
|
||||
data['content'] = $('#message-editor .ql-editor').html();
|
||||
data['subject'] = $('input#subject').val();
|
||||
data['target'] = '#modal_quill_preview';
|
||||
loadModalPreviewInner(this, data);
|
||||
$('#modal_quill_preview').modal('show');
|
||||
});
|
||||
|
||||
change_mail_subdir_select();
|
||||
$('#send_mail_dir').on('change', function () {
|
||||
change_mail_subdir_select();
|
||||
|
|
@ -365,7 +384,7 @@
|
|||
toolbar: '#message-editor-toolbar',
|
||||
placeholder: {
|
||||
placeholders: [
|
||||
{!! \App\Services\Placeholder::getBookingQuill() !!}
|
||||
{!! \App\Services\Placeholder::getOptionsQuill('booking') !!}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue