feat: special agreements for disposition

This commit is contained in:
Björn Fromme
2024-04-04 13:06:35 +02:00
parent 4d1ea7aad7
commit 26239488ba
19 changed files with 310 additions and 31 deletions
@@ -22,14 +22,14 @@
<th class="w-1/4">
Name
</th>
<th class="w-1/4">
Zustieg
<th class="w-1/5">
Status
</th>
<th>
Wünsche
</th>
<th>
Status
Zustieg
</th>
<th></th>
</tr>
@@ -49,15 +49,15 @@
</button>
<twig:RatingStars rating="{{ application.teamer.averageRating }}" />
</td>
<td>
{{ ('label.application.status.' ~ application.status)|trans }}
</td>
<td>
{{ application.pickup|bpn_pickup_label|default('-') }}
</td>
<td>
{{ application.requests|nl2br|default('-') }}
</td>
<td>
{{ ('label.application.status.' ~ application.status)|trans }}
</td>
<td>
<div class="flex items-center justify-end space-x-2">
{% if is_granted('DISPOSE', application) %}
@@ -95,7 +95,7 @@
</tr>
{% else %}
<tr>
<td colspan="4">
<td colspan="5">
Es liegen keine Bewerbungen vor...
</td>
</tr>
@@ -116,11 +116,14 @@
<th class="w-1/4">
Name
</th>
<th class="w-1/4">
<th class="w-1/5">
Status
</th>
<th>
Anmerkungen
</th>
<th>
Status
Absprachen
</th>
<th></th>
</tr>
@@ -140,11 +143,20 @@
</button>
<twig:RatingStars rating="{{ disposition.teamer.averageRating }}" />
</td>
<td>
{{ ('label.disposition.status.' ~ disposition.status)|trans }}
</td>
<td>
{{ disposition.remarks|nl2br|default('-') }}
</td>
<td>
{{ ('label.disposition.status.' ~ disposition.status)|trans }}
<button type="button"
title="zusätzliche Apsprachen {{ disposition.teamer }}"
hx-get="{{ path('app_administrative_disposition_special_agreements', { 'uuid': disposition.uuid }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('edit') }}
</button>
</td>
<td>
<div class="flex items-center justify-end space-x-2">
@@ -163,7 +175,7 @@
</tr>
{% else %}
<tr>
<td colspan="4">
<td colspan="5">
Es gibt noch keine Einteilungen...
</td>
</tr>
@@ -0,0 +1,18 @@
{% extends 'htmx_modal.html.twig' %}
{% block title %}Zusätzliche Abspsprachen{% endblock %}
{% block content %}
{{ form_start(form) }}
<h2 class="font-bold text-lg pb-4">
Teamer {{ disposition.teamer }}
</h2>
<div class="flex flex-col space-y-4 pb-4">
{{ form_row(form.specialAgreements) }}
</div>
<button type="submit" class="btn">
Aktualisieren
</button>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}
@@ -9,6 +9,9 @@
</h2>
<div class="flex flex-col space-y-4 pb-4">
{{ form_row(form.status) }}
{% if form.specialAgreements is defined %}
{{ form_row(form.specialAgreements) }}
{% endif %}
{{ form_row(form.comment) }}
</div>
<button type="submit" class="btn">