Files
myep-team/templates/teamer/work_month/modal_upload.html.twig
T

27 lines
1.1 KiB
Twig

{% extends 'htmx_modal.html.twig' %}
{% block title %}Arbeitszeitnachweis hochladen{% endblock %}
{% block content %}
{% set formAttr = stimulus_controller('form-upload-guard')|stimulus_action('form-upload-guard', 'guard', 'submit') %}
{{ form_start(form, { 'attr': { 'hx-post': app.request.uri, 'hx-target': '#htmx-modal', 'hx-swap': 'outerHTML' }|merge(formAttr.toArray()) }) }}
<div class="pb-4">
Lade hier deinen unterschriebenen Arbeitszeitnachweis für
{{ workMonth.period|format_datetime(pattern='LLLL yyyy', locale='de') }} hoch.
Ein Foto genügt, solange alles lesbar ist.
</div>
<div class="pb-4">
{% include '_partials/_upload_collection_form.html.twig' with {
'endpoint_upload': path('_uploader_upload_work_month'),
'max_filesize': 5,
'max_files': 2,
'accepted_files': 'image/jpg,image/jpeg,application/pdf',
} %}
</div>
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
Nachweis speichern
</button>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}