Upload Files Booking, Mails, Attachments,

This commit is contained in:
Kevin Adametz 2020-04-17 15:51:22 +02:00
parent 5daea268f7
commit 68b9d1ff88
92 changed files with 2837 additions and 1778 deletions

View file

@ -341,362 +341,11 @@ figcaption {
margin: 0;
width: auto;
}
/*
.messages-wrapper {
position: relative;
display: -ms-flexbox;
display: flex;
overflow: hidden;
-ms-flex: 1 1 100%;
flex: 1 1 100%;
width: 100%
.modal-open .tooltip {
z-index: 2120;
}
.messages-card {
overflow: hidden
}
.messages-wrapper,
.messages-sidebox {
transition: all .2s
}
.messages-sidebox {
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
-ms-flex-positive: 0;
flex-grow: 0
}
.messages-wrapper .messages-sidebox,
.messages-card .messages-sidebox {
position: fixed;
left: calc(-14rem - 1px);
z-index: 10;
-ms-flex-preferred-size: auto;
flex-basis: auto;
-ms-flex-positive: 1;
flex-grow: 1;
width: 14rem
}
[dir=rtl] .messages-wrapper .messages-sidebox,
[dir=rtl] .messages-card .messages-sidebox {
right: calc(-14rem - 1px);
left: auto
}
.layout-sidenav-100vh .messages-wrapper .messages-sidebox {
height: 100vh
}
.messages-card .messages-sidebox {
position: absolute;
bottom: 0
}
.messages-scroll {
position: absolute;
top: 0;
bottom: 0;
height: 100%
}
.messages-scroll.messages-content {
position: absolute;
right: 0;
left: 0;
width: 100%
}
.messages-list .list-group-item {
z-index: auto !important;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding-top: .375rem;
padding-bottom: .375rem;
width: 100%;
border-right: 0;
border-left: 0;
border-radius: 0
}
.messages-list .list-group-item:first-child {
border-top: 0
}
.messages-list .list-group-item:last-child {
border-bottom: 0
}
.messages-list .list-group-item>* {
padding-top: .375rem;
padding-bottom: .375rem
}
.message-checkbox .custom-control {
display: block !important;
margin: 0;
margin-top: -1px
}
.message-sender {
min-width: 10rem
}
.message-subject {
width: 100%
}
.message-date {
white-space: nowrap
}
.message-attachment {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
width: 100%
}
.message-attachment>.media-body {
min-width: 0
}
.message-attachment-file,
.message-attachment-img {
display: block;
-ms-flex-positive: 0;
flex-grow: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
width: 4rem;
height: 4rem
}
.message-attachment-file {
display: inline-block;
text-align: center;
line-height: 4rem
}
.message-attachment-img {
background-color: transparent;
background-position: center center;
background-size: cover
}
.message-attachment-filename {
display: block;
overflow: hidden;
width: 100%;
text-overflow: ellipsis;
white-space: nowrap
}
.default-style .messages-wrapper .messages-sidebox {
z-index: 1081
}
.default-style .messages-sidebox-open .messages-sidebox {
left: 0
}
.default-style .messages-card .messages-sidebox {
background: #fff;
box-shadow: 0 0 0 1px rgba(24, 28, 33, 0.075)
}
@media (min-width: 576px) {
.default-style .messages-list .list-group-item {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap
}
.default-style .message-subject {
width: auto
}
.default-style .message-date {
margin-left: auto
}
}
@media (min-width: 768px) {
.default-style .messages-sidebox {
-ms-flex-preferred-size: 14rem;
flex-basis: 14rem
}
.default-style .messages-wrapper .messages-sidebox {
-ms-flex-preferred-size: auto;
flex-basis: auto
}
}
@media (min-width: 992px) {
.default-style .messages-wrapper,
.default-style .messages-sidebox {
transition: none !important
}
.default-style .messages-wrapper {
padding-left: 14rem
}
.default-style .messages-sidebox {
z-index: auto !important
}
.default-style .messages-wrapper .messages-sidebox {
position: absolute;
left: 0;
z-index: auto
}
.default-style .messages-wrapper .messages-sidebox {
height: 100% !important
}
.default-style .messages-card .messages-sidebox {
position: static;
right: auto;
left: auto;
-ms-flex-positive: 0;
flex-grow: 0;
height: auto
}
}
.default-style[dir=rtl] .messages-sidebox-open .messages-sidebox {
right: 0;
left: auto
}
@media (min-width: 576px) {
.default-style[dir=rtl] .message-date {
margin-right: auto;
margin-left: 0
}
}
@media (min-width: 992px) {
.default-style[dir=rtl] .messages-wrapper {
padding-right: 14rem;
padding-left: 0
}
.default-style[dir=rtl] .messages-wrapper .messages-sidebox {
right: 0;
left: auto
}
}
.material-style .messages-wrapper .messages-sidebox {
z-index: 1081
}
.material-style .messages-sidebox-open .messages-sidebox {
left: 0
}
.material-style .messages-card .messages-sidebox {
background: #fff;
box-shadow: 0 0 0 1px rgba(24, 28, 33, 0.075)
}
@media (min-width: 576px) {
.material-style .messages-list .list-group-item {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap
}
.material-style .message-subject {
width: auto
}
.material-style .message-date {
margin-left: auto
}
}
@media (min-width: 768px) {
.material-style .messages-sidebox {
-ms-flex-preferred-size: 14rem;
flex-basis: 14rem
}
.material-style .messages-wrapper .messages-sidebox {
-ms-flex-preferred-size: auto;
flex-basis: auto
}
}
@media (min-width: 992px) {
.material-style .messages-wrapper,
.material-style .messages-sidebox {
transition: none !important
}
.material-style .messages-wrapper {
padding-left: 14rem
}
.material-style .messages-sidebox {
z-index: auto !important
}
.material-style .messages-wrapper .messages-sidebox {
position: absolute;
left: 0;
z-index: auto
}
.material-style .messages-wrapper .messages-sidebox {
height: 100% !important
}
.material-style .messages-card .messages-sidebox {
position: static;
right: auto;
left: auto;
-ms-flex-positive: 0;
flex-grow: 0;
height: auto
}
}
.material-style[dir=rtl] .messages-sidebox-open .messages-sidebox {
right: 0;
left: auto
}
@media (min-width: 576px) {
.material-style[dir=rtl] .message-date {
margin-right: auto;
margin-left: 0
}
}
@media (min-width: 992px) {
.material-style[dir=rtl] .messages-wrapper {
padding-right: 14rem;
padding-left: 0
}
.material-style[dir=rtl] .messages-wrapper .messages-sidebox {
right: 0;
left: auto
}
}
*/
.btn-next {
border-color: rgba(0, 0, 0, 0);
background: #8897AA;
@ -780,4 +429,18 @@ figcaption {
}
.table th, .table td {
padding: 0.4rem;
}
}
.dz-message i {
font-size: 50px;
display: block;
margin-bottom: 16px;
opacity: 0.8;
}
div.dropzone {
border-style: dashed;
}
div.dropzone.dz-drag-hover {
border-style: dashed;
}

View file

@ -7,6 +7,29 @@ $('.iq-save-bar').closest('form').find(':input, select, textarea').keydown(funct
showIqSaveBar($(this).closest('form'));
});
CookiesAddJSONValue = function(name, value) {
var elements = [];
if(Cookies.get(name)){
elements = JSON.parse(Cookies.get(name));
}
if(elements.indexOf(value) === -1){
elements.push(value);
}
Cookies.set(name, JSON.stringify(elements), { expires:30 });
};
CookiesRemoveJSONValue = function(name, value) {
var elements = [];
if(Cookies.get(name)){
elements = JSON.parse(Cookies.get(name));
}
var index = elements.indexOf(value);
if(index > -1){
elements.splice(index, 1);
Cookies.set(name, JSON.stringify(elements), { expires:30 });
}
};
$(function () {
@ -117,7 +140,7 @@ $(function () {
$.each(button.data(), function(index, value){
data[index] = value;
});
console.log(data);
//console.log(data);
loadModalInner(this, data);
});
@ -130,13 +153,12 @@ $(function () {
$.each(button.data(), function(index, value){
data[index] = value;
});
console.log(data);
//console.log(data);
loadModalInner(this, data);
});
}
function loadModalInner(self, data){
var url = data.route,
contentType = 'application/x-www-form-urlencoded; charset=UTF-8';
$.ajax({
@ -151,9 +173,9 @@ $(function () {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(data) {
// console.log(data);
// console.log(data);
$(data.response.target).find('.modal-dialog').html(data.html);
$(data.response.target + '.selectpicker').selectpicker('refresh');
$(data.response.target).find('.selectpicker').selectpicker('refresh');
initModalInner();
},
error: function(xhr, status, errorThrown) {
@ -177,8 +199,8 @@ function ajax_object_action(event, object, callback) {
data[index] = value;
});
var url = data['url'];
/*console.log(data);
console.log(url);*/
//console.log(data);
//console.log(url);
$.ajax({
url: url,
data: data,
@ -228,7 +250,7 @@ function update_modal_data_show(e, $ele) {
},
success: function(data) {
// do what ever you want here. add content to <div> if it was not 1 .
console.log(data);
//console.log(data);
$('#update-modal-content').html(data);
$('.selectpicker').selectpicker(["refresh"]);
$('.input-daterange').datepicker({toggleActive: true,format: 'dd.mm.yyyy'});
@ -251,8 +273,8 @@ function update_modal_data_load(e, $ele) {
data = {data:ele.data('data'), target:ele.data('target')} ,
contentType = 'application/x-www-form-urlencoded; charset=UTF-8';
console.log(data);
console.log(url);
//console.log(data);
//console.log(url);
$.ajax({
url: url,
data: data,
@ -287,8 +309,8 @@ function iq_update_data_load(e, $ele) {
data = {action:ele.data('action'), target:ele.data('target'), data:ele.data('data')} ,
contentType = 'application/x-www-form-urlencoded; charset=UTF-8';
console.log(data);
console.log(url);
//console.log(data);
//console.log(url);
$.ajax({
url: url,
data: data,