Umstellung auf h min format

This commit is contained in:
2026-02-13 15:24:04 +01:00
parent af1f6efb40
commit 5e188cace2
5 changed files with 10 additions and 10 deletions

View File

@@ -91,7 +91,7 @@
</div> </div>
<div class="employee-details" style="margin-top: 10px;"> <div class="employee-details" style="margin-top: 10px;">
<div style="display: inline-block; margin-right: 20px;"> <div style="display: inline-block; margin-right: 20px;">
<strong>Aktuelle Überstunden:</strong> <span class="current-overtime-value" data-user-id="<%= employee.user.id %>">-</span> Stunden <strong>Aktuelle Überstunden:</strong> <span class="current-overtime-value" data-user-id="<%= employee.user.id %>">-</span>
</div> </div>
<div style="display: inline-block; margin-right: 20px;"> <div style="display: inline-block; margin-right: 20px;">
<strong>Verbleibender Urlaub:</strong> <span class="remaining-vacation-value" data-user-id="<%= employee.user.id %>">-</span> Tage <strong>Verbleibender Urlaub:</strong> <span class="remaining-vacation-value" data-user-id="<%= employee.user.id %>">-</span> Tage
@@ -434,7 +434,7 @@
el.textContent = '-'; el.textContent = '-';
el.style.color = ''; el.style.color = '';
} else { } else {
el.textContent = value >= 0 ? '+' + value.toFixed(2) : value.toFixed(2); el.textContent = (value >= 0 ? '+' : '') + formatHoursMin(value);
el.style.color = value >= 0 ? '#27ae60' : '#e74c3c'; el.style.color = value >= 0 ? '#27ae60' : '#e74c3c';
} }
}); });