style: restyle the teamer skills and availability pages

This commit is contained in:
fromme committed 2026-11-12 11:25:30 +01:00
1 parent 8b44c7f14d
commit 981e9f2762
3 files changed
+89 -90

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ class TeamerMenuBuilder extends AbstractMenuBuilder
]); ]);
$profileMenu = $menu->addChild('Mein Profil', [ $profileMenu = $menu->addChild('Mein Profil', [
'extras' => [ 'extras' => [
'icon' => 'profile', 'icon' => 'user',
], ],
]); ]);
@@ -2,35 +2,27 @@
{% block title %}Meine Verfügbarkeit{% endblock %} {% block title %}Meine Verfügbarkeit{% endblock %}
{% block content %} {#
<h1 class="text-2xl font-bold pb-4"> The periods grouped by year and month; `selected` decides whether a row offers removing the
Meine Verfügbarkeit period or adding it.
</h1> #}
<p class="pb-8"> {% macro periods(years, selected) %}
Hier kannst du angeben, wann du allgemein Zeit und Lust hättest, Einsätze zu absolvieren. Wenn wir in diesem {% for year, months in years %}
Zeitraum einen Einsatz zu vergeben haben, dann nehmen wir telefonisch oder per E-Mail Kontakt zu dir auf. <h3 class="pt-4 pb-1 text-lg font-bold first:pt-0">
</p>
<h2 class="text-xl font-bold pb-2">
Ich bin verfügbar
</h2>
<div class="grid md:grid-cols-2 gap-8 pb-8">
{% for year, months in selectedAvailabilities %}
<div>
<h3 class="text-lg font-bold">
{{ year }} {{ year }}
</h3> </h3>
<div class="flex flex-col space-y-3">
{% for month, availabilities in months %} {% for month, availabilities in months %}
<div> <h4 class="pt-2 text-xs font-bold uppercase tracking-wide text-muted">
<h4 class="font-bold">
{{ month }} {{ month }}
</h4> </h4>
<ul class="divide-y divide-line">
{% for availability in availabilities %} {% for availability in availabilities %}
<div class="flex items-center space-x-2"> <li class="flex items-center justify-between gap-x-4 py-2">
<span>{{ availability }}{% if availability.description %} ({{ availability.description }}){% endif %}</span> <span>{{ availability }}{% if availability.description %} <span class="text-muted">({{ availability.description }})</span>{% endif %}</span>
{% if selected %}
{% if is_granted('DELETE', availability) %} {% if is_granted('DELETE', availability) %}
<button type="button" <button type="button"
class="text-red-700 hover:text-red-900"
title="Zeitraum entfernen/löschen" title="Zeitraum entfernen/löschen"
hx-get="{{ path('app_teamer_profile_availability_delete', { 'id': availability.id }) }}" hx-get="{{ path('app_teamer_profile_availability_delete', { 'id': availability.id }) }}"
hx-target="body" hx-target="body"
@@ -38,58 +30,61 @@
{{ icon('delete', 'w-5 h-5') }} {{ icon('delete', 'w-5 h-5') }}
</button> </button>
{% endif %} {% endif %}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
{% else %} {% else %}
<div class="md:col-span-2 text-sm">
Du hast bisher keine Verfügbarkeiten hinterlegt.
</div>
{% endfor %}
</div>
<h2 class="text-xl font-bold pb-2">
Weitere Verfügbarkeiten
</h2>
<div class="grid md:grid-cols-2 gap-8 pb-8">
{% for year, months in selectableAvailabilities %}
<div>
<h3 class="text-lg font-bold">
{{ year }}
</h3>
<div class="flex flex-col space-y-3">
{% for month, availabilities in months %}
<div>
<h4 class="font-bold">
{{ month }}
</h4>
{% for availability in availabilities %}
<div class="flex items-center space-x-2">
<span>{{ availability }}{% if availability.description %} ({{ availability.description }}){% endif %}</span>
<a href="{{ path('app_teamer_profile_availability_add', { 'id': availability.id }) }}" <a href="{{ path('app_teamer_profile_availability_add', { 'id': availability.id }) }}"
class="text-brand hover:text-brand-dark"
title="Zeitraum hinzufügen"> title="Zeitraum hinzufügen">
{{ icon('plus', 'w-5 h-5') }} {{ icon('plus', 'w-5 h-5') }}
</a> </a>
</div> {% endif %}
</li>
{% endfor %} {% endfor %}
</div> </ul>
{% endfor %} {% endfor %}
</div> {% endfor %}
</div> {% endmacro %}
{% block content %}
<h1 class="text-2xl font-bold pb-4">
Meine Verfügbarkeit
</h1>
<p class="max-w-prose pb-6">
Hier kannst du angeben, wann du allgemein Zeit und Lust hättest, Einsätze zu absolvieren. Wenn wir in diesem
Zeitraum einen Einsatz zu vergeben haben, dann nehmen wir telefonisch oder per E-Mail Kontakt zu dir auf.
</p>
<div class="grid gap-6 lg:grid-cols-2 items-start">
<section class="card p-5">
<h2 class="section-title pb-3">
Ich bin verfügbar
</h2>
{% if selectedAvailabilities is empty %}
<p class="text-muted">Du hast bisher keine Verfügbarkeiten hinterlegt.</p>
{% else %} {% else %}
<div class="md:col-span-2 text-sm"> {{ _self.periods(selectedAvailabilities, true) }}
Es sind keine weiteren Zeiträume verfügbar. {% endif %}
</div> </section>
{% endfor %}
<section class="card p-5">
<h2 class="section-title pb-3">
Weitere Verfügbarkeiten
</h2>
{% if selectableAvailabilities is empty %}
<p class="pb-4 text-muted">Es sind keine weiteren Zeiträume verfügbar.</p>
{% else %}
<div class="pb-4">
{{ _self.periods(selectableAvailabilities, false) }}
</div> </div>
{% endif %}
<button type="button" <button type="button"
class="btn" class="btn btn--small btn--secondary"
title="Eigenen Zeitraum hinzufügen" title="Eigenen Zeitraum hinzufügen"
hx-get="{{ path('app_teamer_profile_availability_create') }}" hx-get="{{ path('app_teamer_profile_availability_create') }}"
hx-target="body" hx-target="body"
hx-swap="beforeend"> hx-swap="beforeend">
Eigenen Zeitraum hinzufügen {{ icon('plus', 'w-4 h-4 shrink-0') }}
<span>Eigenen Zeitraum hinzufügen</span>
</button> </button>
</section>
</div>
{% endblock %} {% endblock %}
+33 -29
View File
@@ -3,36 +3,40 @@
{% block title %}Meine Jobprofile & Skills{% endblock %} {% block title %}Meine Jobprofile & Skills{% endblock %}
{% block content %} {% block content %}
<h1 class="text-2xl font-bold pb-4"> <h1 class="text-2xl font-bold pb-6">
Meine Jobprofile &amp; Skills Meine Jobprofile &amp; Skills
</h1> </h1>
<h2 class="text-xl font-bold pb-2"> <div class="grid gap-6 lg:grid-cols-2 items-start pb-6">
<section class="card p-5">
<h2 class="section-title pb-3">
Ausbildung Ausbildung
</h2> </h2>
<ul class="list-disc pl-4 pb-8"> <ul class="divide-y divide-line">
{% for attendance in teamer.trainingAttendances %} {% for attendance in teamer.trainingAttendances %}
<li> <li class="flex items-center justify-between gap-x-4 py-2">
{{ attendance.training.name }} {{ attendance.date|date('m/Y') }} <span>{{ attendance.training.name }}</span>
<span class="text-muted">{{ attendance.date|date('m/Y') }}</span>
</li> </li>
{% else %} {% else %}
<li class="text-sm"> <li class="py-2 text-muted">
Du hast bisher an keinen Fortbildungen teilgenommen Du hast bisher an keinen Fortbildungen teilgenommen.
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</section>
<div class="pb-8"> <section class="card p-5">
<h2 class="text-xl font-bold pb-2"> <h2 class="section-title pb-3">
Lizenzen Lizenzen
</h2> </h2>
<ul class="list-disc pl-4 pb-8"> <ul class="divide-y divide-line pb-4">
{% for license in teamer.licenses %} {% for license in teamer.licenses %}
<li> <li class="flex items-center gap-x-4 py-2">
<div class="flex items-center space-x-4"> <span class="flex-1">{{ license.type|license_label }}</span>
<span>{{ license.type|license_label }}</span> <span class="text-muted">{{ license.date|date('m/Y') }}</span>
<span>{{ license.date|date('m/Y') }}</span>
{% if is_granted('DOWNLOAD', license.certificate) %} {% if is_granted('DOWNLOAD', license.certificate) %}
<a href="{{ path('app_common_download', { 'uuid': license.certificate.uuid }) }}" <a href="{{ path('app_common_download', { 'uuid': license.certificate.uuid }) }}"
class="text-brand hover:text-brand-dark"
target="_blank" target="_blank"
title="Download Nachweis"> title="Download Nachweis">
{{ icon('download', 'w-4 h-4') }} {{ icon('download', 'w-4 h-4') }}
@@ -40,48 +44,48 @@
{% endif %} {% endif %}
{% if is_granted('DELETE', license) %} {% if is_granted('DELETE', license) %}
<button type="button" <button type="button"
class="text-red-500" class="text-red-700 hover:text-red-900"
title="Lizenz löschen" title="Lizenz löschen"
hx-get="{{ path('app_teamer_profile_license_delete', { 'uuid': license.uuid }) }}" hx-get="{{ path('app_teamer_profile_license_delete', { 'uuid': license.uuid }) }}"
hx-target="body" hx-target="body"
hx-swap="beforeend"> hx-swap="beforeend">
{{ icon('delete') }} {{ icon('delete', 'w-5 h-5') }}
</button> </button>
{% endif %} {% endif %}
</div>
</li> </li>
{% else %} {% else %}
<li class="text-sm"> <li class="py-2 text-muted">
Du hast bisher keine Lizenzen hinterlegt Du hast bisher keine Lizenzen hinterlegt.
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<button type="button" <button type="button"
class="btn" class="btn btn--small btn--secondary"
title="Lizenz hinzufügen" title="Lizenz hinzufügen"
hx-get="{{ path('app_teamer_profile_license_add') }}" hx-get="{{ path('app_teamer_profile_license_add') }}"
hx-target="body" hx-target="body"
hx-swap="beforeend"> hx-swap="beforeend">
Lizenz hinzufügen {{ icon('plus', 'w-4 h-4 shrink-0') }}
<span>Lizenz hinzufügen</span>
</button> </button>
</section>
</div> </div>
{{ form_start(form) }} {{ form_start(form) }}
<div class="grid gap-6 lg:grid-cols-2 items-start pb-6">
<h2 class="text-xl font-bold pb-2"> <section class="card p-5">
<h2 class="section-title pb-3">
Mögliche Jobprofile Mögliche Jobprofile
</h2> </h2>
<div class="pb-8">
{{ form_row(form.jobProfiles) }} {{ form_row(form.jobProfiles) }}
</div> </section>
<h2 class="text-xl font-bold pb-2"> <section class="card p-5">
<h2 class="section-title pb-3">
Sonstiges Sonstiges
</h2> </h2>
<div class="grid md:grid-cols-2 gap-y-4 md:gap-x-8 pb-8">
<div>
{{ form_row(form.remarks) }} {{ form_row(form.remarks) }}
</div> </section>
</div> </div>
<button type="submit" class="btn"> <button type="submit" class="btn">