style: restyle the teamer assignment, placement and application pages
This commit is contained in:
1 parent
64fac372c0
commit
8b44c7f14d
5 files changed
+89
-129
No files matched your search
@@ -1,94 +1,44 @@
|
|||||||
<dl class="divide-y divide-gray-100">
|
<dl class="grid grid-cols-[minmax(0,9rem)_minmax(0,1fr)] gap-x-4 gap-y-3">
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
<dt class="text-muted">Jobprofil</dt>
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
<dd class="break-words">
|
||||||
Jobprofil
|
<span class="font-bold">{{ assignment.jobProfile.name }}</span>
|
||||||
</dt>
|
{% if assignment.jobProfileInfo %}
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
<div class="pt-2">
|
||||||
{{ assignment.jobProfile.name }}
|
{{ assignment.jobProfileInfo|nl2br }}
|
||||||
{% if assignment.jobProfileInfo %}
|
</div>
|
||||||
<div class="pt-2">
|
{% endif %}
|
||||||
{{ assignment.jobProfileInfo|nl2br }}
|
</dd>
|
||||||
</div>
|
<dt class="text-muted">Destination</dt>
|
||||||
{% endif %}
|
<dd class="break-words">{{ assignment.destination.product }}</dd>
|
||||||
</dd>
|
<dt class="text-muted">Einsatztermin</dt>
|
||||||
</div>
|
<dd>{{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}</dd>
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
|
||||||
Destination
|
|
||||||
</dt>
|
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
|
||||||
{{ assignment.destination.product }}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
|
||||||
Einsatztermin
|
|
||||||
</dt>
|
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
|
||||||
{{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
{% if assignment.pickup %}
|
{% if assignment.pickup %}
|
||||||
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
|
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
|
||||||
{% if pickup is not null %}
|
{% if pickup is not null %}
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
<dt class="text-muted">Busbegleitung</dt>
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
<dd class="break-words">ab {{ pickup.city }}, {{ pickup.street }}</dd>
|
||||||
Busbegleitung
|
<dt class="text-muted">Busabfahrt</dt>
|
||||||
</dt>
|
<dd>{{ pickup.time }} Uhr</dd>
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
|
||||||
ab {{ pickup.city }}, {{ pickup.street }}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
|
||||||
Busabfahrt
|
|
||||||
</dt>
|
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
|
||||||
{{ pickup.time }} Uhr
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if application is defined and application is not null and application.pickup is not null %}
|
{% if application is defined and application is not null and application.pickup is not null %}
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
<dt class="text-muted">Gewählter Zustieg</dt>
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
<dd class="break-words">{{ application.pickup|bpn_pickup_label }}</dd>
|
||||||
Gewählter Zustieg
|
|
||||||
</dt>
|
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
|
||||||
{{ application.pickup|bpn_pickup_label }}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
<dt class="text-muted">Du bekommst</dt>
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
<dd>{{ assignment.benefits|nl2list }}</dd>
|
||||||
Du bekommst
|
|
||||||
</dt>
|
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
|
||||||
{{ assignment.benefits|nl2list }}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
{% if assignment.fees|length %}
|
{% if assignment.fees|length %}
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
<dt class="text-muted">Honorar</dt>
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
<dd>
|
||||||
Honorar
|
{% for fee in assignment.fees %}
|
||||||
</dt>
|
<div>{{ fee.name }} {{ fee.value|format_money }}</div>
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
{% endfor %}
|
||||||
{% for fee in assignment.fees %}
|
</dd>
|
||||||
{{ fee.name }} {{ fee.value|format_money }}
|
|
||||||
{% endfor %}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if additional is defined %}
|
{% if additional is defined %}
|
||||||
{% for item in additional %}
|
{% for item in additional %}
|
||||||
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-3 sm:gap-4">
|
<dt class="text-muted">{{ item.type }}</dt>
|
||||||
<dt class="text-sm font-bold leading-6 text-gray-900">
|
<dd class="break-words">{{ item.description|raw }}</dd>
|
||||||
{{ item.type }}
|
|
||||||
</dt>
|
|
||||||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
|
|
||||||
{{ item.description|raw }}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
@@ -1,32 +1,30 @@
|
|||||||
<ul class="pb-8">
|
{% macro check(met) %}
|
||||||
|
{% if met %}
|
||||||
|
{{ icon('check', 'w-5 h-5 text-emerald-700 shrink-0') }}
|
||||||
|
<span class="sr-only">erfüllt</span>
|
||||||
|
{% else %}
|
||||||
|
{{ icon('close', 'w-5 h-5 text-red-700 shrink-0') }}
|
||||||
|
<span class="sr-only">nicht erfüllt</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
|
<ul class="divide-y divide-line pb-6">
|
||||||
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
|
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
|
||||||
{% if pickup is not null %}
|
{% if pickup is not null %}
|
||||||
<li class="py-2">
|
<li class="flex items-center justify-between gap-x-4 py-2">
|
||||||
<div class="flex items-center justify-between">
|
<span class="flex-1">Busbegleitung ab {{ pickup.city }}</span>
|
||||||
<span class="flex-1">Busbegleitung ab {{ pickup.city }}</span>
|
{{ _self.check(has_pickup(assignment.pickup, teamer)) }}
|
||||||
{% if has_pickup(assignment.pickup, teamer) %}
|
|
||||||
{{ icon('check', 'w-5 h-5 text-green-500 shrink-0') }}
|
|
||||||
{% else %}
|
|
||||||
{{ icon('close', 'w-5 h-5 text-red-500 shrink-0') }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for training in assignment.jobProfile.requiredTrainings %}
|
{% for training in assignment.jobProfile.requiredTrainings %}
|
||||||
<li class="py-2">
|
<li class="flex items-center justify-between gap-x-4 py-2">
|
||||||
<div class="flex items-center justify-between">
|
<span class="flex-1">{{ training.name }} absolviert</span>
|
||||||
<span class="flex-1">{{ training.name }} absolviert</span>
|
{{ _self.check(teamer.trainingAttendance(training)) }}
|
||||||
{% if teamer.trainingAttendance(training) %}
|
|
||||||
{{ icon('check', 'w-5 h-5 text-green-500 shrink-0') }}
|
|
||||||
{% else %}
|
|
||||||
{{ icon('close', 'w-5 h-5 text-red-500 shrink-0') }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
{% if not loop.last %}
|
{% if not loop.last %}
|
||||||
<li>
|
<li class="py-1 text-xs font-bold uppercase tracking-wide text-muted">
|
||||||
oder
|
oder
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -7,11 +7,12 @@
|
|||||||
Bewerbung
|
Bewerbung
|
||||||
</h1>
|
</h1>
|
||||||
<div class="grid lg:grid-cols-2 gap-8 items-start">
|
<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' %}
|
{% include '_partials/_assignment_info.html.twig' %}
|
||||||
</div>
|
</section>
|
||||||
<div>
|
<div class="card p-5">
|
||||||
<h2 class="text-xl font-bold pb-2">
|
<h2 class="section-title pb-2">
|
||||||
Voraussetzungen für diesen Einsatz
|
Voraussetzungen für diesen Einsatz
|
||||||
</h2>
|
</h2>
|
||||||
{% include '_partials/_assignment_requirements_info.html.twig' %}
|
{% include '_partials/_assignment_requirements_info.html.twig' %}
|
||||||
@@ -26,7 +27,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{{ form_row(form.requests) }}
|
{{ form_row(form.requests) }}
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn">
|
<button type="submit" class="btn btn--cta">
|
||||||
Bewerbung abschicken!
|
Bewerbung abschicken!
|
||||||
</button>
|
</button>
|
||||||
{{ form_rest(form) }}
|
{{ form_rest(form) }}
|
||||||
|
|||||||
@@ -3,13 +3,23 @@
|
|||||||
{% block title %}Einsatzübersicht{% endblock %}
|
{% block title %}Einsatzübersicht{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1 class="text-2xl font-bold pb-8">
|
<a href="{{ returnUrl }}" class="inline-flex items-center gap-x-1 pb-4 text-sm font-bold text-brand hover:text-brand-dark">
|
||||||
Einsatzübersicht
|
{{ icon('arrow-left', 'w-4 h-4 shrink-0') }}
|
||||||
</h1>
|
<span>zurück</span>
|
||||||
<div class="grid lg:grid-cols-2 gap-8 items-start">
|
</a>
|
||||||
{% include '_partials/_assignment_info.html.twig' %}
|
<div class="pb-6">
|
||||||
<div>
|
<h1 class="text-2xl font-bold">{{ assignment.jobProfile.name }}</h1>
|
||||||
<h2 class="text-xl font-bold pb-2">
|
<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
|
Voraussetzungen für diesen Einsatz
|
||||||
</h2>
|
</h2>
|
||||||
{% include '_partials/_assignment_requirements_info.html.twig' %}
|
{% include '_partials/_assignment_requirements_info.html.twig' %}
|
||||||
@@ -20,13 +30,13 @@
|
|||||||
{% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %}
|
{% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %}
|
||||||
<twig:MessageBox message="Deine Bewerbung wurde leider abgelehnt." type="error"/>
|
<twig:MessageBox message="Deine Bewerbung wurde leider abgelehnt." type="error"/>
|
||||||
{% if application.comment and application.commentVisible %}
|
{% if application.comment and application.commentVisible %}
|
||||||
<strong>Begründung:</strong> {{ application.comment|nl2br}}
|
<p><strong>Begründung:</strong> {{ application.comment|nl2br}}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if application.status == constant('App\\Entity\\Application::STATUS_PENDING') %}
|
{% if application.status == constant('App\\Entity\\Application::STATUS_PENDING') %}
|
||||||
<twig:MessageBox message="Deine Bewerbung befindet sich in Bearbeitung."/>
|
<twig:MessageBox message="Deine Bewerbung befindet sich in Bearbeitung."/>
|
||||||
{% if application.comment and application.commentVisible %}
|
{% if application.comment and application.commentVisible %}
|
||||||
<strong>Begründung:</strong> {{ application.comment|nl2br}}
|
<p><strong>Begründung:</strong> {{ application.comment|nl2br}}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if is_granted('WITHDRAW', application) %}
|
{% if is_granted('WITHDRAW', application) %}
|
||||||
@@ -41,20 +51,21 @@
|
|||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div>
|
<p>
|
||||||
Erfüllst du mehrere oder alle Voraussetzungen für diesen Einsatz?
|
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>
|
</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 %}
|
{% endif %}
|
||||||
<a href="{{ returnUrl }}" class="underline">
|
|
||||||
zurück
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
<div class="grid lg:grid-cols-2 gap-8 items-start">
|
<div class="grid lg:grid-cols-2 gap-8 items-start">
|
||||||
<div>
|
<div class="card p-5">
|
||||||
{% include '_partials/_assignment_info.html.twig' with {
|
{% include '_partials/_assignment_info.html.twig' with {
|
||||||
'additional': [
|
'additional': [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user