Merge branch 'spidev' into 'master'
Zeiterfassung Update See merge request fronk/thetool!1815
This commit is contained in:
@@ -35,6 +35,7 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
|
||||
.fc .fc-button-primary:not(:disabled).fc-button-active:focus, .fc .fc-button-primary:not(:disabled):active:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.fc .fc-event.fc-tentative,
|
||||
.fc .fc-timegrid-event.fc-tentative,
|
||||
.fc .fc-daygrid-event.fc-tentative {
|
||||
@@ -44,6 +45,7 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
|
||||
.fc .fc-list-event.fc-tentative td {
|
||||
border-bottom: 2px dashed currentColor;
|
||||
}
|
||||
|
||||
.popper, .tooltip {
|
||||
position: absolute;
|
||||
z-index: 9999;
|
||||
@@ -228,7 +230,7 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
|
||||
<script>
|
||||
var calendar;
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
let requestUrl = "<?= self::getUrl("TimerecordingReport", "api", ['do' => 'getTimerecordings', 'datatype' => '3', 'datayear' => time(),'calendar'=>'1']) ?>";
|
||||
let requestUrl = "<?= self::getUrl("TimerecordingReport", "api", ['do' => 'getTimerecordings', 'datatype' => '3', 'datayear' => time(), 'calendar' => '1']) ?>";
|
||||
var cindex = 1;
|
||||
var holiDays = [];
|
||||
var birthdays = [];
|
||||
@@ -306,7 +308,8 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
|
||||
description: category + " " + value.user.user,
|
||||
extendedProps: {
|
||||
approved: Number(value?.approved?.approved ?? 1),
|
||||
hourday: Number(value?.hourday?.hourday ?? -1)
|
||||
hourday: Number(value?.hourday?.hourday ?? -1),
|
||||
approval: Number(value?.approval?.approval ?? 0),
|
||||
}
|
||||
});
|
||||
cindex++;
|
||||
@@ -367,11 +370,11 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
|
||||
container: 'body'
|
||||
});
|
||||
},
|
||||
eventClassNames: ({ event }) => {
|
||||
eventClassNames: ({event}) => {
|
||||
const approved = Number(event.extendedProps?.approved ?? 1);
|
||||
const hourday = Number(event.extendedProps?.hourday ?? -1);
|
||||
|
||||
if (approved === 0 && (hourday === 2 || hourday === 6)) {
|
||||
const approval = Number(event.extendedProps?.approval ?? 0);
|
||||
const hourday = Number(event.extendedProps?.hourday ?? -1);
|
||||
if (approved === 0 && approval === 1 && (hourday === 2 || hourday === 6)) {
|
||||
return ['fc-tentative'];
|
||||
}
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user