97 lines
3.8 KiB
Twig
97 lines
3.8 KiB
Twig
{% extends 'teamer/layout.html.twig' %}
|
|
|
|
{% block title %}Meine Jobprofile & Skills{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="text-2xl font-bold pb-6">
|
|
Meine Jobprofile & Skills
|
|
</h1>
|
|
<div class="grid gap-6 lg:grid-cols-2 items-start pb-6">
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-3">
|
|
Ausbildung
|
|
</h2>
|
|
<ul class="divide-y divide-line">
|
|
{% for attendance in teamer.trainingAttendances %}
|
|
<li class="flex items-center justify-between gap-x-4 py-2">
|
|
<span>{{ attendance.training.name }}</span>
|
|
<span class="text-muted">{{ attendance.date|date('m/Y') }}</span>
|
|
</li>
|
|
{% else %}
|
|
<li class="py-2 text-muted">
|
|
Du hast bisher an keinen Fortbildungen teilgenommen.
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-3">
|
|
Lizenzen
|
|
</h2>
|
|
<ul class="divide-y divide-line pb-4">
|
|
{% for license in teamer.licenses %}
|
|
<li class="flex items-center gap-x-4 py-2">
|
|
<span class="flex-1">{{ license.type|license_label }}</span>
|
|
<span class="text-muted">{{ license.date|date('m/Y') }}</span>
|
|
{% if is_granted('DOWNLOAD', license.certificate) %}
|
|
<a href="{{ path('app_common_download', { 'uuid': license.certificate.uuid }) }}"
|
|
class="text-brand hover:text-brand-dark"
|
|
target="_blank"
|
|
title="Download Nachweis">
|
|
{{ icon('download', 'w-4 h-4') }}
|
|
</a>
|
|
{% endif %}
|
|
{% if is_granted('DELETE', license) %}
|
|
<button type="button"
|
|
class="text-red-700 hover:text-red-900"
|
|
title="Lizenz löschen"
|
|
hx-get="{{ path('app_teamer_profile_license_delete', { 'uuid': license.uuid }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('delete', 'w-5 h-5') }}
|
|
</button>
|
|
{% endif %}
|
|
</li>
|
|
{% else %}
|
|
<li class="py-2 text-muted">
|
|
Du hast bisher keine Lizenzen hinterlegt.
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<button type="button"
|
|
class="btn btn--small btn--secondary"
|
|
title="Lizenz hinzufügen"
|
|
hx-get="{{ path('app_teamer_profile_license_add') }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('plus', 'w-4 h-4 shrink-0') }}
|
|
<span>Lizenz hinzufügen</span>
|
|
</button>
|
|
</section>
|
|
</div>
|
|
|
|
{{ form_start(form) }}
|
|
<div class="grid gap-6 lg:grid-cols-2 items-start pb-6">
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-3">
|
|
Mögliche Jobprofile
|
|
</h2>
|
|
{{ form_row(form.jobProfiles) }}
|
|
</section>
|
|
|
|
<section class="card p-5">
|
|
<h2 class="section-title pb-3">
|
|
Sonstiges
|
|
</h2>
|
|
{{ form_row(form.remarks) }}
|
|
</section>
|
|
</div>
|
|
|
|
<button type="submit" class="btn">
|
|
Aktualisieren
|
|
</button>
|
|
{{ form_rest(form) }}
|
|
{{ form_end(form) }}
|
|
{% endblock %}
|