72 lines
4.2 KiB
Twig
72 lines
4.2 KiB
Twig
{% extends 'administrative/layout.html.twig' %}
|
||
|
||
{% block title %}Einstellungen{% endblock %}
|
||
|
||
{# role: who may open the page; the routes under app_admin_system_ are admin-only #}
|
||
{% set groups = [
|
||
{
|
||
title: 'Reisen & Besetzung',
|
||
pages: [
|
||
{ route: 'app_administrative_system_destination_index', label: 'Reisen', description: 'Reisen und ihre Destinationen', role: 'ROLE_ADMINISTRATIVE' },
|
||
{ route: 'app_administrative_system_staffing_rule_index', label: 'Besetzungsmatrix', description: 'Wie jeder Termin eines Produkts besetzt wird – daraus entstehen die Einsatzentwürfe', role: 'ROLE_ADMINISTRATIVE' },
|
||
{ route: 'app_admin_system_job_profile_index', label: 'Jobprofile', description: 'Die Aufgaben, für die Teamer:innen eingesetzt werden', role: 'ROLE_TEAM_ADMIN' },
|
||
{ route: 'app_admin_system_availability_index', label: 'Verfügbarkeiten', description: 'Zeiträume, für die Teamer:innen ihre Verfügbarkeit angeben', role: 'ROLE_TEAM_ADMIN' },
|
||
],
|
||
},
|
||
{
|
||
title: 'Teamer:innen',
|
||
pages: [
|
||
{ route: 'app_admin_system_fee_index', label: 'Honorare', description: 'Honorarsätze', role: 'ROLE_TEAM_ADMIN' },
|
||
{ route: 'app_admin_system_training_index', label: 'Fortbildungen', description: 'Fortbildungen, die bei Teamer:innen hinterlegt werden', role: 'ROLE_TEAM_ADMIN' },
|
||
{ route: 'app_admin_system_feedback_set_index', label: 'Feedbackvorlagen', description: 'Bewertungskategorien für das Teamer:innen-Feedback', role: 'ROLE_TEAM_ADMIN' },
|
||
],
|
||
},
|
||
{
|
||
title: 'Kommunikation',
|
||
pages: [
|
||
{ route: 'app_admin_system_email_text_index', label: 'E-Mail-Texte', description: 'Wortlaut der automatischen E-Mails', role: 'ROLE_TEAM_ADMIN' },
|
||
{ route: 'app_administrative_system_mailing_template_index', label: 'Mailvorlagen', description: 'Vorlagen für Rundmails an die Teamer:innen eines Einsatzes', role: 'ROLE_ADMINISTRATIVE' },
|
||
{ route: 'app_administrative_system_news_index', label: 'News', description: 'Meldungen im Teambereich', role: 'ROLE_ADMINISTRATIVE' },
|
||
{ route: 'app_administrative_system_faq_index', label: 'FAQ', description: 'Fragen und Antworten im Teambereich', role: 'ROLE_ADMINISTRATIVE' },
|
||
{ route: 'app_admin_system_contact_index', label: 'Ansprechpersonen', description: 'Kontakte, die Teamer:innen im Teambereich sehen', role: 'ROLE_TEAM_ADMIN' },
|
||
],
|
||
},
|
||
{
|
||
title: 'Dokumente',
|
||
pages: [
|
||
{ route: 'app_administrative_system_document_index', label: 'Dokumente', description: 'Dokumente für Teamer:innen', role: 'ROLE_ADMINISTRATIVE' },
|
||
{ route: 'app_administrative_system_season_task_document_index', label: 'Saisonteam-Dokumente', description: 'Standarddokumente der Saisonteam-Checkliste', role: 'ROLE_ADMINISTRATIVE' },
|
||
],
|
||
},
|
||
{
|
||
title: 'Zugänge',
|
||
pages: [
|
||
{ route: 'app_admin_system_user_index', label: 'Administrative Benutzer:innen', description: 'Zugänge für Admins, Management und Hausleitungen', role: 'ROLE_TEAM_ADMIN' },
|
||
],
|
||
},
|
||
] %}
|
||
|
||
{% block content %}
|
||
<h1 class="text-2xl font-bold pb-8">
|
||
Einstellungen
|
||
</h1>
|
||
<div class="space-y-8">
|
||
{% for group in groups %}
|
||
{% set pages = group.pages|filter(page => is_granted(page.role)) %}
|
||
{% if pages is not empty %}
|
||
<section>
|
||
<h2 class="pb-3 text-base font-semibold uppercase tracking-wide text-brand">{{ group.title }}</h2>
|
||
<div class="grid gap-4 sm:grid-cols-2 xl:grid-cols-3">
|
||
{% for page in pages %}
|
||
<a href="{{ path(page.route) }}" class="block border border-line bg-white p-4 hover:border-brand" {{ qa_attribute('settings-page', page.route) }}>
|
||
<span class="block font-semibold text-brand">{{ page.label }}</span>
|
||
<span class="block pt-1 text-muted">{{ page.description }}</span>
|
||
</a>
|
||
{% endfor %}
|
||
</div>
|
||
</section>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</div>
|
||
{% endblock %}
|