Umstellung auf h min format
This commit is contained in:
@@ -52,11 +52,11 @@
|
||||
<div class="summary">
|
||||
<div class="summary-item">
|
||||
<strong>Gesamtstunden diese Woche:</strong>
|
||||
<span id="totalHours">0 h 0 min</span>
|
||||
<span id="totalHours">0h 0min</span>
|
||||
</div>
|
||||
<div class="summary-item" id="overtimeSummaryItem" style="display: none;">
|
||||
<strong>Überstunden diese Woche:</strong>
|
||||
<span id="overtimeHours">0 h 0 min</span>
|
||||
<span id="overtimeHours">0h 0min</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
</div>
|
||||
<div class="employee-details" style="margin-top: 10px;">
|
||||
<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 style="display: inline-block; margin-right: 20px;">
|
||||
<strong>Verbleibender Urlaub:</strong> <span class="remaining-vacation-value" data-user-id="<%= employee.user.id %>">-</span> Tage
|
||||
@@ -434,7 +434,7 @@
|
||||
el.textContent = '-';
|
||||
el.style.color = '';
|
||||
} else {
|
||||
el.textContent = value >= 0 ? '+' + value.toFixed(2) : value.toFixed(2);
|
||||
el.textContent = (value >= 0 ? '+' : '') + formatHoursMin(value);
|
||||
el.style.color = value >= 0 ? '#27ae60' : '#e74c3c';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user