style: restyle the assignment detail page

This commit is contained in:
fromme committed 2026-11-12 11:25:30 +01:00
1 parent eda7856e48
commit 64fac372c0
2 files changed
+106 -122

No files matched your search

@@ -1,104 +1,54 @@
<div class="grid lg:grid-cols-2 gap-x-8 gap-y-4">
<dl class="divide-y divide-gray-100">
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 sm:gap-4">
<dt class="text-sm font-bold leading-6 text-gray-900">
Jobprofil
</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-3 sm:mt-0 max-h-96 overflow-y-auto pr-3">
<strong>{{ assignment.jobProfile.name }}</strong>
{% macro field(label) %}
<dt class="text-muted">{{ label }}</dt>
{% endmacro %}
<div class="grid gap-6 lg:grid-cols-2">
<section class="card p-5">
<h2 class="section-title pb-4">Einsatz</h2>
<dl class="grid grid-cols-[minmax(0,10rem)_minmax(0,1fr)] gap-x-4 gap-y-2">
{{ _self.field('Jobprofil') }}
<dd class="max-h-96 overflow-y-auto break-words pr-3">
<span class="font-bold">{{ assignment.jobProfile.name }}</span>
{% if assignment.jobProfileInfo %}
<div class="pt-2">
{{ assignment.jobProfileInfo|nl2br }}
</div>
{% endif %}
</dd>
</div>
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 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-3 sm:mt-0">
{{ assignment.destination.product }}
</dd>
</div>
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 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-3 sm:mt-0">
{{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}
</dd>
</div>
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 sm:gap-4">
<dt class="text-sm font-bold leading-6 text-gray-900">
Anmerkungen intern
</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-3 sm:mt-0">
{{ assignment.remarks|default('-')|nl2br }}
</dd>
</div>
</dl>
<dl class="divide-y divide-gray-100">
{% if assignment.pickup %}
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 sm:gap-4">
<dt class="text-sm font-bold leading-6 text-gray-900">
Busbegleitung
</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-3 sm:mt-0">
{{ pickup.city }}
</dd>
</div>
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 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-3 sm:mt-0">
{{ pickup.time }} Uhr
</dd>
</div>
{% endif %}
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 sm:gap-4">
<dt class="text-sm font-bold leading-6 text-gray-900">
Benefits
</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-3 sm:mt-0">
{{ assignment.benefits|nl2list }}
</dd>
</div>
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 sm:gap-4">
<dt class="text-sm font-bold leading-6 text-gray-900">
Honorar
</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-3 sm:mt-0">
{% if assignment.fees|length %}
{% for fee in assignment.fees %}
{{ fee.name }} {{ fee.value|format_money }}
{% endfor %}
{{ _self.field('Destination') }}
<dd class="break-words">{{ assignment.destination.product }}</dd>
{{ _self.field('Einsatztermin') }}
<dd>{{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}</dd>
{{ _self.field('Anmerkungen intern') }}
<dd class="break-words">{{ assignment.remarks|default('-')|nl2br }}</dd>
</dl>
</section>
<section class="card p-5">
<h2 class="section-title pb-4">Konditionen</h2>
<dl class="grid grid-cols-[minmax(0,10rem)_minmax(0,1fr)] gap-x-4 gap-y-2">
{% if assignment.pickup %}
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
{{ _self.field('Busbegleitung') }}
<dd>{{ pickup.city }}</dd>
{{ _self.field('Busabfahrt') }}
<dd>{{ pickup.time }} Uhr</dd>
{% endif %}
{{ _self.field('Benefits') }}
<dd>{{ assignment.benefits|nl2list }}</dd>
{{ _self.field('Honorar') }}
<dd>
{% for fee in assignment.fees %}
<div>{{ fee.name }} {{ fee.value|format_money }}</div>
{% else %}
-
{% endif %}
{% endfor %}
</dd>
</div>
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 sm:gap-4">
<dt class="text-sm font-bold leading-6 text-gray-900">
erstellt
</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-3 sm:mt-0">
{{ assignment.createdAt|date('d.m.Y, H:i') }} Uhr
</dd>
</div>
<div class="py-6 first:pt-0 last:pb-0 sm:grid sm:grid-cols-4 sm:gap-4">
<dt class="text-sm font-bold leading-6 text-gray-900">
aktualisiert
</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-3 sm:mt-0">
{% if assignment.updatedAt %}
{{ assignment.updatedAt|date('d.m.Y, H:i') }} Uhr
{% else %}
-
{% endif %}
</dd>
</div>
</dl>
</dl>
<p class="mt-4 border-t border-line pt-3 text-xs text-muted">
erstellt {{ assignment.createdAt|date('d.m.Y, H:i') }} Uhr
{% if assignment.updatedAt %}
· aktualisiert {{ assignment.updatedAt|date('d.m.Y, H:i') }} Uhr
{% endif %}
</p>
</section>
</div>