style: restyle the teamer assignment, placement and application pages

This commit is contained in:
fromme committed 2026-11-12 11:25:30 +01:00
1 parent 64fac372c0
commit 8b44c7f14d
5 files changed
+89 -129

No files matched your search

@@ -7,11 +7,12 @@
Bewerbung
</h1>
<div class="grid lg:grid-cols-2 gap-8 items-start">
<div class="card p-4">
<section class="card p-5">
<h2 class="section-title pb-4">Einsatz</h2>
{% include '_partials/_assignment_info.html.twig' %}
</div>
<div>
<h2 class="text-xl font-bold pb-2">
</section>
<div class="card p-5">
<h2 class="section-title pb-2">
Voraussetzungen für diesen Einsatz
</h2>
{% include '_partials/_assignment_requirements_info.html.twig' %}
@@ -26,7 +27,7 @@
{% endif %}
{{ form_row(form.requests) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn btn--cta">
Bewerbung abschicken!
</button>
{{ form_rest(form) }}
+32 -21
View File
@@ -3,13 +3,23 @@
{% block title %}Einsatzübersicht{% endblock %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Einsatzübersicht
</h1>
<div class="grid lg:grid-cols-2 gap-8 items-start">
{% include '_partials/_assignment_info.html.twig' %}
<div>
<h2 class="text-xl font-bold pb-2">
<a href="{{ returnUrl }}" class="inline-flex items-center gap-x-1 pb-4 text-sm font-bold text-brand hover:text-brand-dark">
{{ icon('arrow-left', 'w-4 h-4 shrink-0') }}
<span>zurück</span>
</a>
<div class="pb-6">
<h1 class="text-2xl font-bold">{{ assignment.jobProfile.name }}</h1>
<p class="text-muted">
{{ assignment.destination.product }} · {{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}
</p>
</div>
<div class="grid lg:grid-cols-2 gap-6 items-start">
<section class="card p-5">
<h2 class="section-title pb-4">Einsatz</h2>
{% include '_partials/_assignment_info.html.twig' %}
</section>
<section class="card p-5">
<h2 class="section-title pb-2">
Voraussetzungen für diesen Einsatz
</h2>
{% include '_partials/_assignment_requirements_info.html.twig' %}
@@ -20,13 +30,13 @@
{% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %}
<twig:MessageBox message="Deine Bewerbung wurde leider abgelehnt." type="error"/>
{% if application.comment and application.commentVisible %}
<strong>Begründung:</strong> {{ application.comment|nl2br}}
<p><strong>Begründung:</strong> {{ application.comment|nl2br}}</p>
{% endif %}
{% endif %}
{% if application.status == constant('App\\Entity\\Application::STATUS_PENDING') %}
<twig:MessageBox message="Deine Bewerbung befindet sich in Bearbeitung."/>
{% if application.comment and application.commentVisible %}
<strong>Begründung:</strong> {{ application.comment|nl2br}}
<p><strong>Begründung:</strong> {{ application.comment|nl2br}}</p>
{% endif %}
{% endif %}
{% if is_granted('WITHDRAW', application) %}
@@ -41,20 +51,21 @@
</button>
{% endif %}
{% else %}
<div>
<p>
Erfüllst du mehrere oder alle Voraussetzungen für diesen Einsatz?
</p>
<div class="flex flex-wrap items-center gap-x-6 gap-y-3">
<a href="{{ path('app_teamer_application_create', { 'uuid': assignment.uuid }) }}" class="btn btn--cta">
Hier bewerben!
</a>
<a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="inline-flex items-center gap-x-1 text-sm font-bold text-brand hover:text-brand-dark">
{{ icon('star', 'w-4 h-4 shrink-0') }}
<span>{% if not isBookmarked %}auf die Merkliste setzen{% else %}von der Merkliste löschen{% endif %}</span>
</a>
</div>
<a href="{{ path('app_teamer_application_create', { 'uuid': assignment.uuid }) }}" class="btn">
Hier bewerben!
</a>
<a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}" class="underline">
{% if not isBookmarked %}auf die Merkliste setzen{% else %}von der Merkliste löschen{% endif %}
</a>
{% endif %}
<a href="{{ returnUrl }}" class="underline">
zurück
</a>
</div>
</div>
</section>
</div>
{% endblock %}
{% endblock %}
@@ -12,7 +12,7 @@
{% endif %}
</h1>
<div class="grid lg:grid-cols-2 gap-8 items-start">
<div>
<div class="card p-5">
{% include '_partials/_assignment_info.html.twig' with {
'additional': [
{