Mails etc. in Lead finish
This commit is contained in:
parent
66ca252bfa
commit
b362b93bca
45 changed files with 1460 additions and 418 deletions
50
resources/views/lead/modal-show-mail.blade.php
Normal file
50
resources/views/lead/modal-show-mail.blade.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">
|
||||
{{ $value->title }}
|
||||
</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
@include('lead.modal-show-mail-inner', ['lead_mail' => $lead_mail, 'show_move_dirs' => true])
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function change_mail_subdir_select(_form){
|
||||
|
||||
var $dir_id = _form.find('#lead_mail_dir').val();
|
||||
$('.lead_mail_subdir').each(function () {
|
||||
var lead_mail_subdir = 'lead_mail_subdir_' + $dir_id;
|
||||
if($(this).attr('id') === lead_mail_subdir){
|
||||
$(this).prop('disabled', false);
|
||||
$(this).show();
|
||||
}else{
|
||||
$(this).prop('disabled', true);
|
||||
$(this).val(0);
|
||||
$(this).hide();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('form.move-mail-form').each(function () {
|
||||
var _form = $(this);
|
||||
$(this).find('.lead_mail_dir').on('change', function () {
|
||||
change_mail_subdir_select(_form);
|
||||
_form.find('.btn-default').removeClass('btn-default').addClass('btn-primary');
|
||||
});
|
||||
$(this).find('.lead_mail_subdir').on('change', function () {
|
||||
_form.find('.btn-default').removeClass('btn-default').addClass('btn-primary');
|
||||
});
|
||||
change_mail_subdir_select(_form);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue