mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-25 15:22:24 +01:00
Aggiunto in Dashboard sfondo rosso per giorni non lavorativi
This commit is contained in:
parent
16937e7320
commit
93be92efdf
@ -1119,12 +1119,6 @@ div.tip {
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stile Fullcalendar per weekend */
|
|
||||||
.fc-day-sat,
|
|
||||||
.fc-day-sun {
|
|
||||||
background-color: rgba(255,49,21,.3) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-box .img-responsive {
|
.login-box .img-responsive {
|
||||||
padding: 18px 0px 4px;
|
padding: 18px 0px 4px;
|
||||||
}
|
}
|
||||||
@ -1222,4 +1216,13 @@ input[type="radio"] {
|
|||||||
.widget-user .widget-user-image>img {
|
.widget-user .widget-user-image>img {
|
||||||
-webkit-box-shadow: -10px 0px 13px -7px #000000, 10px 0px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
|
-webkit-box-shadow: -10px 0px 13px -7px #000000, 10px 0px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
|
||||||
box-shadow: -10px 0px 13px -7px #000000, 10px 0px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
|
box-shadow: -10px 0px 13px -7px #000000, 10px 0px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Colore eventi fullcalendar
|
||||||
|
*/
|
||||||
|
.fc .fc-bg-event {
|
||||||
|
background: rgba(255, 49, 21, .5) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -339,6 +339,24 @@ if ($vista == 'mese') {
|
|||||||
$def = 'listWeek';
|
$def = 'listWeek';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$days = [
|
||||||
|
1 => 'Lunedì',
|
||||||
|
2 => 'Martedì',
|
||||||
|
3 => 'Mercoledì',
|
||||||
|
4 => 'Giovedì',
|
||||||
|
5 => 'Venerdì',
|
||||||
|
6 => 'Sabato',
|
||||||
|
0 => 'Domenica'
|
||||||
|
];
|
||||||
|
$working_days = explode(",",setting('Giorni lavorativi'));
|
||||||
|
$non_working_days = [];
|
||||||
|
|
||||||
|
foreach ($days as $key => $day) {
|
||||||
|
if (!in_array($day, $working_days)) {
|
||||||
|
array_push($non_working_days, $key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$modulo_interventi = Modules::get('Interventi');
|
$modulo_interventi = Modules::get('Interventi');
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
@ -687,10 +705,10 @@ echo '
|
|||||||
|
|
||||||
eventDidMount: function(info){
|
eventDidMount: function(info){
|
||||||
let element = $(info.el);
|
let element = $(info.el);
|
||||||
|
|
||||||
let id_record = info.event.extendedProps.idintervento;
|
let id_record = info.event.extendedProps.idintervento;
|
||||||
|
|
||||||
if (globals.dashboard.tooltip == 1) {
|
if (globals.dashboard.tooltip == 1 && element[0].childElementCount > 0 ) {
|
||||||
element.tooltipster({
|
element.tooltipster({
|
||||||
content: globals.translations.loading + "...",
|
content: globals.translations.loading + "...",
|
||||||
animation: "grow",
|
animation: "grow",
|
||||||
@ -713,9 +731,10 @@ echo '
|
|||||||
id_record: id_record,
|
id_record: id_record,
|
||||||
allDay: info.event.allDay,
|
allDay: info.event.allDay,
|
||||||
}, function (data, response) {
|
}, function (data, response) {
|
||||||
instance.content(data);
|
if (data !== "") {
|
||||||
|
instance.content(data);
|
||||||
$origin.data("loaded", true);
|
$origin.data("loaded", true);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -732,6 +751,13 @@ echo '
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
calendar.addEvent({
|
||||||
|
daysOfWeek: "'.implode(',', $non_working_days).'",
|
||||||
|
display: "background",
|
||||||
|
overlap: true,
|
||||||
|
allDay: true
|
||||||
|
});
|
||||||
|
|
||||||
calendar.render();
|
calendar.render();
|
||||||
|
|
||||||
globals.dashboard.calendar = calendar;
|
globals.dashboard.calendar = calendar;
|
||||||
|
Loading…
Reference in New Issue
Block a user