WIP: Implement admin CRUD

This commit is contained in:
Björn Fromme
2023-09-26 17:44:01 +02:00
parent 3e0353c79b
commit c55fd85314
63 changed files with 1367 additions and 532 deletions
@@ -0,0 +1,16 @@
{{ form_start(form) }}
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.name) }}
{{ form_row(form.requiredTraining) }}
{{ form_widget(form.requiredLicenses) }}
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
Speichern
</button>
<a href="{{ path('app_admin_system_job_profile_index') }}" class="btn btn--secondary">
Abbrechen
</a>
</div>
{{ form_rest(form) }}
{{ form_end(form) }}
@@ -0,0 +1,12 @@
{% extends 'admin/layout.html.twig' %}
{% block title %}Einstellungen - Job-Profil anlegen{% endblock %}
{% block content %}
<div class="max-w-screen-sm">
<h1 class="text-2xl font-bold pb-8">
Job-Profil anlegen
</h1>
{% include 'admin/system/job_profile/_form.html.twig' %}
</div>
{% endblock %}
@@ -0,0 +1,57 @@
{% 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|default('-') }}
</td>
<td>
{{ jobProfile.requiredLicenses|join(', ') }}
</td>
<td>
<div class="flex items-center space-x-2 justify-end">
</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 %}