WIP: Implement profile editing
This commit is contained in:
@@ -75,7 +75,6 @@
|
||||
Persönliche Daten
|
||||
</h2>
|
||||
<div class="flex flex-col space-y-4">
|
||||
{{ form_row(form.status) }}
|
||||
{{ form_row(form.salutation) }}
|
||||
{{ form_row(form.academicTitle) }}
|
||||
{{ form_row(form.firstName) }}
|
||||
@@ -127,7 +126,6 @@
|
||||
{{ form_row(form.healthInsuranceCompany) }}
|
||||
{{ form_row(form.language) }}
|
||||
{{ form_row(form.size) }}
|
||||
{{ form_row(form.remarks) }}
|
||||
</div>
|
||||
|
||||
<div {{ stimulus_controller('form-collection', { 'prototype': _self.collectionRow(form.pickups.vars.prototype)|json_encode }) }}>
|
||||
|
||||
@@ -4,32 +4,86 @@
|
||||
|
||||
{% block content %}
|
||||
<h2 class="text-xl font-bold pb-2">
|
||||
Lizenzen
|
||||
Ausbildung
|
||||
</h2>
|
||||
<div class="flex flex-col space-x-4 pb-8">
|
||||
{% for license in teamer.licenses %}
|
||||
<div class="flex items-center space-x-2">
|
||||
{{ icon(license.type, 'w-5 h-5') }}
|
||||
<span>{{ license.date|date('m.Y') }}</span>
|
||||
{% if is_granted('DOWNLOAD', license.certificate) %}
|
||||
<a href="{{ path('app_common_download', { 'uuid': license.certificate.uuid }) }}" target="_blank">
|
||||
{{ icon('download', 'w-4 h-4') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<ul class="list-disc pl-4 pb-8">
|
||||
{% for attendance in teamer.trainingAttendances %}
|
||||
<li>
|
||||
{{ attendance.training.name }} {{ attendance.date|date('m/Y') }}
|
||||
</li>
|
||||
{% else %}
|
||||
<div class="text-sm pb-8">
|
||||
Du hast bisher keine Lizenzen hinterlegt
|
||||
</div>
|
||||
<li class="text-sm">
|
||||
Du hast bisher an keinen Fortbildungen teilgenommen
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<div class="pb-8">
|
||||
<h2 class="text-xl font-bold pb-2">
|
||||
Lizenzen
|
||||
</h2>
|
||||
<ul class="list-disc pl-4 pb-8">
|
||||
{% for license in teamer.licenses %}
|
||||
<li>
|
||||
<div class="flex items-center space-x-4">
|
||||
{{ icon(license.type, 'w-5 h-5') }}
|
||||
<span>{{ license.date|date('m/Y') }}</span>
|
||||
{% if is_granted('DOWNLOAD', license.certificate) %}
|
||||
<a href="{{ path('app_common_download', { 'uuid': license.certificate.uuid }) }}" target="_blank">
|
||||
{{ icon('download', 'w-4 h-4') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('DELETE', license) %}
|
||||
<button type="button"
|
||||
class="text-red-500"
|
||||
{{ stimulus_controller('modal-button', [], [], {'confirmation-modal': '#confirmation-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'confirmation', null, {
|
||||
'title': 'Bist du sicher?',
|
||||
'content': 'Möchtest du die Lizenz wirklich löschen?',
|
||||
'target-url': path('app_teamer_profile_license_delete', { 'uuid': license.uuid })
|
||||
}) }}>
|
||||
{{ icon('delete') }}
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
{% else %}
|
||||
<div class="text-sm">
|
||||
Du hast bisher keine Lizenzen hinterlegt
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<button type="button"
|
||||
class="btn"
|
||||
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'ajax', null, {
|
||||
'title': 'Lizenz hinzufügen',
|
||||
'url': path('app_teamer_profile_license_add')
|
||||
}) }}>
|
||||
Lizenz hinzufügen
|
||||
</button>
|
||||
</div>
|
||||
<button type="button"
|
||||
class="btn"
|
||||
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'ajax', null, {
|
||||
'title': 'Lizenz hinzufügen',
|
||||
'url': path('app_teamer_profile_license_add')
|
||||
}) }}>
|
||||
Lizenz hinzufügen
|
||||
|
||||
{{ form_start(form) }}
|
||||
|
||||
<h2 class="text-xl font-bold pb-2">
|
||||
Mögliche Jobprofile
|
||||
</h2>
|
||||
<div class="pb-8">
|
||||
{{ form_row(form.jobProfiles) }}
|
||||
</div>
|
||||
|
||||
<h2 class="text-xl font-bold pb-2">
|
||||
Sonstiges
|
||||
</h2>
|
||||
<div class="flex flex-col space-y-4 pb-8">
|
||||
{{ form_row(form.status) }}
|
||||
{{ form_row(form.remarks) }}
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn">
|
||||
Aktualisieren
|
||||
</button>
|
||||
{{ form_rest(form) }}
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user