WIP: Implement profile editing

This commit is contained in:
Björn Fromme
2023-10-02 12:39:52 +02:00
parent d776d37cd5
commit 953aa9c8e0
27 changed files with 598 additions and 43 deletions
+29
View File
@@ -3,4 +3,33 @@
{% block title %}Meine Jobprofile & Skills{% endblock %}
{% block content %}
<h2 class="text-xl font-bold pb-2">
Lizenzen
</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>
{% else %}
<div class="text-sm pb-8">
Du hast bisher keine Lizenzen hinterlegt
</div>
{% endfor %}
</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
</button>
{% endblock %}