Feat: Add description field to availability

This commit is contained in:
Björn Fromme
2023-10-18 17:18:25 +02:00
parent 4ae28f4f90
commit e8106a270c
6 changed files with 61 additions and 2 deletions
@@ -2,6 +2,7 @@
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.dateFrom) }}
{{ form_row(form.dateTo) }}
{{ form_row(form.description) }}
</div>
<button type="submit" class="btn">
Speichern
@@ -11,12 +11,15 @@
<table class="data-table">
<thead>
<tr>
<th class="w-1/3">
<th class="w-1/4">
{{ knp_pagination_sortable(pagination, 'Datum von', 'availability.dateFrom') }}
</th>
<th class="w-1/3">
<th class="w-1/4">
{{ knp_pagination_sortable(pagination, 'Datum bis', 'availability.dateTo') }}
</th>
<th class="w-1/4">
{{ knp_pagination_sortable(pagination, 'Beschreibung', 'availability.description') }}
</th>
<th></th>
</tr>
</thead>
@@ -29,6 +32,9 @@
<td>
{{ availability.dateTo|date('d.m.Y') }}
</td>
<td>
{{ availability.description|default('-') }}
</td>
<td>
<div class="flex items-center space-x-2 justify-end">
<button type="button"