jipie
All checks were successful
/ ls (pull_request) Successful in 1m27s
/ ls (push) Successful in 1m24s
/ ls (release) Successful in 54s

This commit is contained in:
lubiana 2025-06-28 22:22:40 +02:00
parent 86dc3b010b
commit 7897621621
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
5 changed files with 145 additions and 1 deletions

View file

@ -37,13 +37,19 @@
{{ form_widget(drinkTypeForm.name) }}
</td>
<td>
lol
<button class="btn btn-sm btn-info"
hx-get="{{ path('app_drink_type_history_chart', {'id': drinkTypeForm.vars.value.id}) }}"
hx-target="#history-row-{{ drinkTypeForm.vars.value.id }}"
hx-swap="outerHTML"
type="button"
>📊 Show History</button>
</td>
<td>
{{ form_widget(drinkTypeForm.wantedStock) }}
{{ form_errors(drinkTypeForm.wantedStock) }}
</td>
</tr>
<tr id="history-row-{{ drinkTypeForm.vars.value.id }}" style="display: none;" class="history-row"></tr>
{% endfor %}
</tbody>
</table>