55 lines
2.3 KiB
Twig
55 lines
2.3 KiB
Twig
{% 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>
|
|
{{ _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 %}
|
|
-
|
|
{% endfor %}
|
|
</dd>
|
|
</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>
|