74 lines
3.2 KiB
Twig
74 lines
3.2 KiB
Twig
{% extends 'admin/layout.html.twig' %}
|
|
|
|
{% block title %}Einstellungen - Jobprofile{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="text-2xl font-bold pb-8">
|
|
Job-Profile
|
|
</h1>
|
|
<div class="data-table-wrapper">
|
|
<div class="data-table-wrapper__inner">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Bezeichnung
|
|
</th>
|
|
<th>
|
|
Fortbildung
|
|
</th>
|
|
<th>
|
|
Lizenzen
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for jobProfile in jobProfiles %}
|
|
<tr>
|
|
<td>
|
|
{{ jobProfile.name }}
|
|
</td>
|
|
<td>
|
|
{{ jobProfile.requiredTraining.name|default('-') }}
|
|
</td>
|
|
<td>
|
|
<div class="flex items-center space-x-2">
|
|
{% for license in jobProfile.requiredLicenses %}
|
|
{{ icon(license, 'w-5 h-5') }}
|
|
{% endfor %}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="flex items-center space-x-2 justify-end">
|
|
<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 das Job-Profil wirklich löschen?',
|
|
'target-url': path('app_admin_system_job_profile_delete', { 'id': jobProfile.id })
|
|
}) }}>
|
|
{{ icon('delete') }}
|
|
</button>
|
|
<a href="{{ path('app_admin_system_job_profile_edit', { 'id': jobProfile.id }) }}">
|
|
{{ icon('edit') }}
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="4">
|
|
<div class="text-sm">Keine Daten...</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<a href="{{ path('app_admin_system_job_profile_create') }}" class="btn">
|
|
Neu
|
|
</a>
|
|
{% endblock %} |