feat: upload in behalf of teamer for administrative users

This commit is contained in:
Björn Fromme
2025-01-08 13:04:49 +01:00
parent edaa294cc9
commit f269068b71
4 changed files with 148 additions and 1 deletions
@@ -0,0 +1,20 @@
{% extends 'htmx_modal.html.twig' %}
{% block title %}{{ modalTitle }}{% endblock %}
{% block content %}
{{ form_start(form, { 'attr': { 'hx-post': app.request.uri, 'hx-target': '#htmx-modal', 'hx-swap': 'outerHTML' }}) }}
<div class="pb-4">
{% include '_partials/_upload_collection_form.html.twig' with {
'endpoint_upload': path(uploaderRoute),
'max_filesize': 5,
'max_files': 1,
'accepted_files': 'image/jpg,image/jpeg,application/pdf',
} %}
</div>
<button type="submit" class="btn">
Upload speichern
</button>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}