fix
Some checks are pending
Image optimization / general_image_workflow (push) Waiting to run
CI / general_module_workflow_php (push) Waiting to run
CI / general_module_workflow_js (push) Waiting to run

This commit is contained in:
Dennis Eichhorn 2024-05-18 00:53:21 +00:00
parent 314ccee8fd
commit 0384e62271
5 changed files with 42 additions and 42 deletions

View File

@ -13,25 +13,25 @@
declare(strict_types=1); declare(strict_types=1);
return ['HumanResourceTimeRecording' => [ return ['HumanResourceTimeRecording' => [
'Break' => 'Brechen', 'Break' => 'Pause',
'CS1' => 'Anfang', ':CS1' => 'Anfang',
'CS2' => 'Pause', ':CS2' => 'Pause',
'CS3' => 'Fortsetzen', ':CS3' => 'Fortsetzen',
'CS4' => 'Ende', ':CS4' => 'Ende',
'CT1' => 'Sekretariat', ':CT1' => 'Sekretariat',
'CT2' => 'Heim', ':CT2' => 'Heim',
'CT3' => 'Fernbedienung', ':CT3' => 'Fernbedienung',
'CT4' => 'Urlaub', ':CT4' => 'Urlaub',
'CT5' => 'Krank', ':CT5' => 'Krank',
'CT6' => 'Unterwegs', ':CT6' => 'Unterwegs',
'CT-1' => 'Keine Daten', ':CT-1' => 'Keine Daten',
'D0' => 'Sonntag', ':D0' => 'Sonntag',
'D1' => 'Montag', ':D1' => 'Montag',
'D2' => 'Dienstag', ':D2' => 'Dienstag',
'D3' => 'Mittwoch', ':D3' => 'Mittwoch',
'D4' => 'Donnerstag', ':D4' => 'Donnerstag',
'D5' => 'Freitag', ':D5' => 'Freitag',
'D6' => 'Samstag', ':D6' => 'Samstag',
'Date' => 'Datum', 'Date' => 'Datum',
'Employee' => 'Mitarbeiter', 'Employee' => 'Mitarbeiter',
'End' => 'Ende', 'End' => 'Ende',

View File

@ -14,24 +14,24 @@ declare(strict_types=1);
return ['HumanResourceTimeRecording' => [ return ['HumanResourceTimeRecording' => [
'Break' => 'Break', 'Break' => 'Break',
'CS1' => 'Start', ':CS1' => 'Start',
'CS2' => 'Pause', ':CS2' => 'Pause',
'CS3' => 'Continue', ':CS3' => 'Continue',
'CS4' => 'End', ':CS4' => 'End',
'CT1' => 'Office', ':CT1' => 'Office',
'CT2' => 'Home', ':CT2' => 'Home',
'CT3' => 'Remote', ':CT3' => 'Remote',
'CT4' => 'Vacation', ':CT4' => 'Vacation',
'CT5' => 'Sick', ':CT5' => 'Sick',
'CT6' => 'On the move', ':CT6' => 'On the move',
'CT-1' => 'No data', ':CT-1' => 'No data',
'D0' => 'Sunday', ':D0' => 'Sunday',
'D1' => 'Monday', ':D1' => 'Monday',
'D2' => 'Tuesday', ':D2' => 'Tuesday',
'D3' => 'Wednesday', ':D3' => 'Wednesday',
'D4' => 'Thursday', ':D4' => 'Thursday',
'D5' => 'Friday', ':D5' => 'Friday',
'D6' => 'Saturday', ':D6' => 'Saturday',
'Date' => 'Date', 'Date' => 'Date',
'Employee' => 'Employee', 'Employee' => 'Employee',
'End' => 'End', 'End' => 'End',

View File

@ -215,10 +215,10 @@ echo $this->data['nav']->render(); ?>
) : ?> ) : ?>
<span class="tag">Today</span> <span class="tag">Today</span>
<?php else : ?> <?php else : ?>
<?= $session->start->format('Y-m-d'); ?> - <?= $this->getHtml('D' . $session->start->format('w'), 'HumanResourceTimeRecording', 'Backend'); ?> <?= $session->start->format('Y-m-d'); ?> - <?= $this->getHtml(':D' . $session->start->format('w'), 'HumanResourceTimeRecording', 'Backend'); ?>
<?php endif; ?></a> <?php endif; ?></a>
<td><a href="<?= $url; ?>"><span class="tag"><?= $this->getHtml('CT' . $session->type, 'HumanResourceTimeRecording', 'Backend'); ?></span></a> <td><a href="<?= $url; ?>"><span class="tag"><?= $this->getHtml(':CT' . $session->type, 'HumanResourceTimeRecording', 'Backend'); ?></span></a>
<td><a href="<?= $url; ?>"><span class="tag"><?= $this->getHtml('CS' . $session->getStatus(), 'HumanResourceTimeRecording', 'Backend'); ?></span></a> <td><a href="<?= $url; ?>"><span class="tag"><?= $this->getHtml(':CS' . $session->getStatus(), 'HumanResourceTimeRecording', 'Backend'); ?></span></a>
<td><a href="<?= $url; ?>"><?= $session->start->format('H:i'); ?></a> <td><a href="<?= $url; ?>"><?= $session->start->format('H:i'); ?></a>
<td><a href="<?= $url; ?>"><?= (int) ($session->getBreak() / 3600); ?>h <?= ((int) ($session->getBreak() / 60) % 60); ?>m</a> <td><a href="<?= $url; ?>"><?= (int) ($session->getBreak() / 3600); ?>h <?= ((int) ($session->getBreak() / 60) % 60); ?>m</a>
<td><a href="<?= $url; ?>"><?= $session->end?->format('H:i'); ?></a> <td><a href="<?= $url; ?>"><?= $session->end?->format('H:i'); ?></a>

View File

@ -34,7 +34,7 @@ echo $this->data['nav']->render(); ?>
++$c; ++$c;
?> ?>
<tr> <tr>
<td><?= $this->getHtml('CS' . $element->status); ?> <td><?= $this->getHtml(':CS' . $element->status); ?>
<td><?= $element->datetime->format('H:i:s'); ?> <td><?= $element->datetime->format('H:i:s'); ?>
<td><?= $element->datetime->format('Y-m-d'); ?> <td><?= $element->datetime->format('Y-m-d'); ?>
<?php endforeach; ?> <?php endforeach; ?>

View File

@ -94,7 +94,7 @@ echo $this->data['nav']->render(); ?>
<tbody> <tbody>
<?php foreach ($sessions as $session) : ?> <?php foreach ($sessions as $session) : ?>
<tr> <tr>
<td><?= $session->getStart()->format('Y-m-d'); ?> - <?= $this->getHtml('D' . $session->getStart()->format('w')); ?> <td><?= $session->getStart()->format('Y-m-d'); ?> - <?= $this->getHtml(':D' . $session->getStart()->format('w')); ?>
<td><span class="tag">Status Here</span> <td><span class="tag">Status Here</span>
<td><?= $session->getStart()->format('H:i'); ?> <td><?= $session->getStart()->format('H:i'); ?>
<td><?= (int) ($session->getBreak() / 3600); ?>h <?= ((int) ($session->getBreak() / 60) % 60); ?>m <td><?= (int) ($session->getBreak() / 3600); ?>h <?= ((int) ($session->getBreak() / 60) % 60); ?>m