feat: assignments with disabled formalities

addresses #869dnvm8c
This commit is contained in:
2026-08-26 16:15:55 +02:00
parent 5979988dcc
commit c33c1b6bf0
20 changed files with 720 additions and 67 deletions
+37 -18
View File
@@ -5,7 +5,7 @@
{% block content %}
{% set assignment = disposition.assignment %}
<h1 class="text-2xl font-bold pb-8">
{% if workflow_has_marked_place(disposition, 'ended') %}
{% if workflow_has_marked_place(disposition, 'ended') or workflow_has_marked_place(disposition, 'completed') %}
Dein Einsatz ist abgeschlossen
{% else %}
Dein Einsatz wurde bestätigt!
@@ -146,17 +146,27 @@
{% endif %}
{% if workflow_has_marked_place(disposition, 'confirmed') %}
<h3 class="text-xl font-bold pb-4">
Danke für den Upload des Honorarvertrags
</h3>
{% set contract = disposition.documentByType('contract') %}
{% if contract %}
<div class="pb-4">
<a href="{{ path('app_common_download', { 'uuid': contract.uuid }) }}"
class="underline">
Download Vertrag
</a>
</div>
{% if assignment.skipFormalities %}
<h3 class="text-xl font-bold pb-4">
Dein Einsatz ist bestätigt
</h3>
<p class="pb-4">
Es sind keine weiteren Schritte nötig - für diesen Einsatz brauchen wir
weder einen Honorarvertrag noch eine Honorarnote von dir.
</p>
{% else %}
<h3 class="text-xl font-bold pb-4">
Danke für den Upload des Honorarvertrags
</h3>
{% set contract = disposition.documentByType('contract') %}
{% if contract %}
<div class="pb-4">
<a href="{{ path('app_common_download', { 'uuid': contract.uuid }) }}"
class="underline">
Download Vertrag
</a>
</div>
{% endif %}
{% endif %}
{% endif %}
@@ -183,12 +193,21 @@
{# Invoice paid #}
{% if workflow_has_marked_place(disposition, 'completed') %}
<h3 class="text-xl font-bold pb-4">
Danke für die Honorarnote
</h3>
<p class="pb-4">
Wir werden sie schnellstmöglich bearbeiten.
</p>
{% if assignment.skipFormalities %}
<h3 class="text-xl font-bold pb-4">
Dein Einsatz ist abgeschlossen
</h3>
<p class="pb-4">
Danke, dass du dabei warst!
</p>
{% else %}
<h3 class="text-xl font-bold pb-4">
Danke für die Honorarnote
</h3>
<p class="pb-4">
Wir werden sie schnellstmöglich bearbeiten.
</p>
{% endif %}
{% endif %}
<div class="pt-4">