Adds employee work schedule component

Introduces a new work schedule feature for managing employee shifts and schedules

Implements interactive schedule view with:
- Week-based schedule grid
- Shift status tracking (work, vacation, sick, off)
- Editable time ranges
- Repeat shift functionality

Enhances employee management with dynamic scheduling capabilities
This commit is contained in:
Janus C. H. Knudsen 2026-01-14 22:47:40 +01:00
parent d5a803ba80
commit 3214cbdc16
11 changed files with 1669 additions and 0 deletions

View file

@ -35,6 +35,10 @@
<i class="ph ph-shield-check"></i>
<span localize="employees.tabs.roles">Roller</span>
</swp-tab>
<swp-tab data-tab="schedule">
<i class="ph ph-calendar-dots"></i>
<span localize="employees.detail.tabs.schedule">Vagtplan</span>
</swp-tab>
</swp-tab-bar>
</swp-sticky-header>
@ -51,6 +55,13 @@
@await Component.InvokeAsync("PermissionsMatrix", "default")
</swp-page-container>
</swp-tab-content>
<!-- Tab: Schedule -->
<swp-tab-content data-tab="schedule">
<swp-page-container>
@await Component.InvokeAsync("EmployeeWorkSchedule", "default")
</swp-page-container>
</swp-tab-content>
</swp-employees-list-view>
<!-- Detail View (hidden by default, shown when row clicked) -->