feat: let managers edit the staffing matrix

This commit is contained in:
fromme committed 2026-11-05 17:18:26 +01:00
1 parent f9d2ff084d
commit 4ff963d1e2
15 files changed
+84 -52

No files matched your search

@@ -1,4 +1,4 @@
{% extends 'admin/layout.html.twig' %}
{% extends 'administrative/layout.html.twig' %}
{% block title %}Einstellungen - Besetzungsmatrix{% endblock %}
@@ -9,7 +9,7 @@
<h1 class="text-2xl font-bold">
Besetzungsmatrix
</h1>
<a href="{{ path('app_admin_system_staffing_rule_preview') }}" class="btn">
<a href="{{ path('app_administrative_system_staffing_rule_preview') }}" class="btn">
Vorschau
</a>
</div>
@@ -53,14 +53,14 @@
<button type="button"
class="text-red-500"
title="Zeile löschen"
hx-get="{{ path('app_admin_system_staffing_rule_delete', { 'uuid': rule.uuid }) }}"
hx-get="{{ path('app_administrative_system_staffing_rule_delete', { 'uuid': rule.uuid }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('delete') }}
</button>
<button type="button"
title="Zeile bearbeiten"
hx-get="{{ path('app_admin_system_staffing_rule_edit', { 'uuid': rule.uuid }) }}"
hx-get="{{ path('app_administrative_system_staffing_rule_edit', { 'uuid': rule.uuid }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('edit') }}
@@ -82,7 +82,7 @@
<button type="button"
class="btn"
title="Zeile hinzufügen"
hx-get="{{ path('app_admin_system_staffing_rule_create') }}"
hx-get="{{ path('app_administrative_system_staffing_rule_create') }}"
hx-target="body"
hx-swap="beforeend">
Zeile hinzufügen
@@ -3,5 +3,5 @@
{% block title %}Zeile hinzufügen{% endblock %}
{% block content %}
{% include 'admin/system/staffing_rule/_form.html.twig' %}
{% include 'administrative/system/staffing_rule/_form.html.twig' %}
{% endblock %}
@@ -3,5 +3,5 @@
{% block title %}Zeile bearbeiten{% endblock %}
{% block content %}
{% include 'admin/system/staffing_rule/_form.html.twig' %}
{% include 'administrative/system/staffing_rule/_form.html.twig' %}
{% endblock %}
@@ -1,4 +1,4 @@
{% extends 'admin/layout.html.twig' %}
{% extends 'administrative/layout.html.twig' %}
{% block title %}Einstellungen - Besetzungsmatrix - Vorschau{% endblock %}
@@ -8,10 +8,10 @@
Besetzungsmatrix – Vorschau
</h1>
<div class="flex items-center space-x-2">
<a href="{{ path('app_admin_system_staffing_rule_index') }}" class="btn">
<a href="{{ path('app_administrative_system_staffing_rule_index') }}" class="btn">
Zurück zur Matrix
</a>
<a href="{{ path('app_admin_system_staffing_rule_export') }}" class="btn">
<a href="{{ path('app_administrative_system_staffing_rule_export') }}" class="btn">
Excel-Export
</a>
</div>