feat: additional functionality and layout adjustments for season teamers
This commit is contained in:
1 parent
80c6016da3
commit
4cab57d136
30 files changed
+916
-192
No files matched your search
@@ -3,11 +3,32 @@
|
||||
{% block title %}Dokument für {{ task.label }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ form_start(form, { 'attr': { 'hx-post': app.request.uri, 'hx-target': '#htmx-modal', 'hx-swap': 'outerHTML' } }) }}
|
||||
<div class="flex flex-col space-y-4 pb-8">
|
||||
{% 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()) }) }}
|
||||
{{ form_errors(form) }}
|
||||
<div class="pb-4 text-gray-500">
|
||||
Das Dokument gilt für Saisoneinsätze, die ab jetzt angelegt werden. Bestehende Einsätze
|
||||
behalten ihre Datei - sie lässt sich von der Übersicht aus auf offene Einsätze übertragen.
|
||||
</div>
|
||||
<div class="flex flex-col space-y-4 pb-4">
|
||||
{{ form_row(form.document) }}
|
||||
</div>
|
||||
<button type="submit" class="btn">
|
||||
<div class="pb-4">
|
||||
<div class="font-bold">oder neue Datei hochladen</div>
|
||||
<div class="pb-2 text-sm text-gray-500">
|
||||
Eine hochgeladene Datei ersetzt die Auswahl oben.
|
||||
</div>
|
||||
{% include '_partials/_upload_collection_form.html.twig' with {
|
||||
'endpoint_upload': path('_uploader_upload_document'),
|
||||
'max_filesize': 5,
|
||||
'max_files': 1,
|
||||
'accepted_files': 'application/pdf',
|
||||
} %}
|
||||
</div>
|
||||
<div class="flex flex-col space-y-4 pb-8">
|
||||
{{ form_row(form.displayName) }}
|
||||
</div>
|
||||
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
|
||||
Speichern
|
||||
</button>
|
||||
{{ form_rest(form) }}
|
||||
|
||||
Reference in new issue
Block a user