133 lines
5.8 KiB
Twig
133 lines
5.8 KiB
Twig
{% extends 'administrative/layout.html.twig' %}
|
|
|
|
{% block title %}Stammdaten und Foto {{ teamer }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ knp_menu_render(knp_menu_get('default_teamer', [], { 'return_url': returnUrl }), { 'template': '_partials/_tabs.html.twig' }) }}
|
|
<div>
|
|
<h1 class="text-2xl font-bold pb-8">
|
|
Stammdaten und Foto {{ teamer }}
|
|
</h1>
|
|
<div class="grid md:grid-cols-2 gap-6 items-start">
|
|
|
|
<section class="card p-5">
|
|
<div class="flex items-start justify-between gap-x-4">
|
|
<div class="flex-1">
|
|
<h2 class="section-title pb-4">
|
|
Persönliche Daten
|
|
</h2>
|
|
{{ _self.fields({
|
|
'Gender': teamer.gender,
|
|
'Titel': teamer.academicTitle|default('-'),
|
|
'Vorname': teamer.firstName,
|
|
'Nachname': teamer.lastName,
|
|
'Geburtsdatum': teamer.dateOfBirth|date('d.m.Y'),
|
|
'Staatsangehörigkeit': teamer.nationality|bpn_country_label('nationality'),
|
|
}) }}
|
|
</div>
|
|
{% if teamer.photo %}
|
|
<img src="{{ asset(teamer.photo | upload_filename_full | imagine_filter('profile')) }}"
|
|
class="w-32 h-auto border border-line"
|
|
alt="{{ teamer.firstName }}">
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-4">
|
|
Adressdaten
|
|
</h2>
|
|
{{ _self.fields({
|
|
'Straße, Hausnummer': teamer.address.street,
|
|
'PLZ': teamer.address.postCode,
|
|
'Ort': teamer.address.city,
|
|
'Land': teamer.address.country|bpn_country_label,
|
|
'E-Mail': teamer.communication.email|default('-'),
|
|
'Mobilnummer': teamer.communication.mobile|default('-'),
|
|
}) }}
|
|
</section>
|
|
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-4">
|
|
Honorardaten
|
|
</h2>
|
|
{{ _self.fields({
|
|
'Steuer-ID': teamer.taxId|default('-'),
|
|
'IBAN': teamer.bankAccount.iban|default('-'),
|
|
'BIC': teamer.bankAccount.bic|default('-'),
|
|
'Bank/Kreditinstitut': teamer.bankAccount.bank|default('-'),
|
|
'Krankenversicherung': teamer.healthInsuranceCompany|default('-'),
|
|
}) }}
|
|
</section>
|
|
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-4">
|
|
Sonstiges
|
|
</h2>
|
|
{{ _self.fields({
|
|
'Sprache(n)': teamer.language|default('-'),
|
|
'Klamottengröße': teamer.size|default('-'),
|
|
'Ernährungsweise': teamer.mealPreference ? teamer.mealPreference.label : '-',
|
|
}) }}
|
|
</section>
|
|
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-4">
|
|
Buszustiege
|
|
</h2>
|
|
{% set pickupLabels = [] %}
|
|
{% for pickup in teamer.pickups %}
|
|
{% set label = pickup|bpn_pickup_label %}
|
|
{% if label is not empty %}
|
|
{% set pickupLabels = pickupLabels|merge([label]) %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
<ul class="divide-y divide-line">
|
|
{% for label in pickupLabels %}
|
|
<li class="py-1.5 first:pt-0 last:pb-0">
|
|
{{ label }}
|
|
</li>
|
|
{% else %}
|
|
<li class="text-muted">Keine Daten</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
|
|
{% if teamer.allSeason %}
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-4">
|
|
Saisoneinsätze
|
|
</h2>
|
|
<ul class="divide-y divide-line">
|
|
{% for seasonAssignment in teamer.seasonAssignments|filter(seasonAssignment => not seasonAssignment.deleted) %}
|
|
<li class="py-1.5 first:pt-0 last:pb-0">
|
|
<a href="{{ path('app_administrative_season_assignment_detail', { 'uuid': seasonAssignment.uuid, 'r': return_url() }) }}"
|
|
class="font-bold text-brand underline underline-offset-2 hover:text-brand-dark">
|
|
{{ seasonAssignment.hotelCode | house_label }}
|
|
</a>
|
|
<span class="text-sm text-muted block">
|
|
{{ seasonAssignment.dateFrom | date('d.m.Y') }} - {{ seasonAssignment.dateTo | date('d.m.Y') }},
|
|
{{ seasonAssignment.jobProfile.name }}
|
|
</span>
|
|
</li>
|
|
{% else %}
|
|
<li class="text-muted">Keine Daten</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{# Label and value pairs of one card, the labels muted beside their values. #}
|
|
{% macro fields(fields) %}
|
|
<dl class="grid grid-cols-[minmax(0,10rem)_minmax(0,1fr)] gap-x-4 gap-y-2">
|
|
{% for label, value in fields %}
|
|
<dt class="text-muted">{{ label }}</dt>
|
|
<dd class="break-words">{{ value }}</dd>
|
|
{% endfor %}
|
|
</dl>
|
|
{% endmacro %}
|