{% extends 'teamer/layout.html.twig' %} {% block title %}Einsatzdetails{% endblock %} {% block content %} {% set assignment = disposition.assignment %}

{% if workflow_has_marked_place(disposition, 'ended') or workflow_has_marked_place(disposition, 'completed') %} Dein Einsatz ist abgeschlossen {% else %} Dein Einsatz wurde bestätigt! {% endif %}

{% include '_partials/_assignment_info.html.twig' with { 'additional': [ { 'type': 'Ansprechperson', 'description': 'Für alle reisebezogenen Themen wende dich bitte an ' ~ assignment.contact ~ ' (' ~ assignment.contact.email ~ ')' }, { 'type': 'Kalendereintrag', 'description': 'Hier klicken' } ] } %}
{# Upload contract #} {% if workflow_has_marked_place(disposition, 'new') %}

Honorarvertrag

{# Existing upload has been rejected #} {% set contract = disposition.documentByType('contract') %} {% if contract and contract.status == constant('App\\Entity\\Upload::STATUS_REJECTED') %} {% if contract.comment %}
Begründung: {{ contract.comment|nl2br }}
{% endif %} {% endif %} {# New upload #} {% if workflow_can(disposition, 'upload_contract') %} {% set formAttr = stimulus_controller('form-upload-guard')|stimulus_action('form-upload-guard', 'guard', 'submit') %} {{ form_start(form, { 'attr': formAttr.toArray() }) }}
Honorarvertrag
Bitte lade ihn unterschrieben hier wieder hoch:
{% include '_partials/_upload_collection_form.html.twig' with { 'endpoint_upload': path('_uploader_upload_contract'), 'accepted_files': 'image/jpg,image/jpeg,application/pdf', } %} {% if form.pickup is defined %} {{ form_row(form.pickup) }} {% endif %}
{{ form_rest(form) }} {{ form_end(form) }} {% else %} {% for blocker in workflow_transition_blockers(disposition, 'upload_contract') %} {% endfor %} {% endif %} {% endif %} {# Upload invoice #} {% if workflow_has_marked_place(disposition, 'ended') %}

Honorarnote

{# Existing invoice has been rejected #} {% set invoice = disposition.documentByType('invoice') %} {% if invoice and invoice.status == constant('App\\Entity\\Upload::STATUS_REJECTED') %} {% if invoice.comment %}
Begründung: {{ invoice.comment|nl2br }}
{% endif %} {% endif %} {# New invoice #} {% if workflow_can(disposition, 'upload_invoice') %} {% set formAttr = stimulus_controller('form-upload-guard')|stimulus_action('form-upload-guard', 'guard', 'submit') %} {{ form_start(form, { 'attr': formAttr.toArray() }) }}
Honorarnote
Bitte lade sie ausgefüllt und unterschrieben hier wieder hoch:
{% include '_partials/_upload_collection_form.html.twig' with { 'endpoint_upload': path('_uploader_upload_invoice'), 'accepted_files': 'image/jpg,image/jpeg,application/pdf', } %} {% if form.confirmInvoiceData is defined %} {{ form_row(form.confirmInvoiceData) }} {% endif %}
{{ form_rest(form) }} {{ form_end(form) }} {% else %} {% for blocker in workflow_transition_blockers(disposition, 'upload_invoice') %} {% endfor %} {% endif %} {% endif %} {# Contract uploaded #} {% if workflow_has_marked_place(disposition, 'checking_contract') %}

Danke für den Upload des Honorarvertrags

Wir prüfen das Dokument schnellstmöglich.
{# Existing upload is being checked #} {% set contract = disposition.documentByType('contract') %} {% if contract and contract.status == constant('App\\Entity\\Upload::STATUS_PENDING') %} {% if contract.comment %}
Begründung: {{ contract.comment|nl2br }}
{% endif %} {% endif %} {% endif %} {% if workflow_has_marked_place(disposition, 'confirmed') %} {% if assignment.skipFormalities %}

Dein Einsatz ist bestätigt

Es sind keine weiteren Schritte nötig - für diesen Einsatz brauchen wir weder einen Honorarvertrag noch eine Honorarnote von dir.

{% else %}

Danke für den Upload des Honorarvertrags

{% set contract = disposition.documentByType('contract') %} {% if contract %} {% endif %} {% endif %} {% endif %} {# Invoice uploaded #} {% if workflow_has_marked_place(disposition, 'checking_invoice') %}

Danke für den Upload der Honorarnote

Wir prüfen das Dokument schnellstmöglich.
{# Existing upload is being checked #} {% set invoice = disposition.documentByType('invoice') %} {% if invoice and invoice.status == constant('App\\Entity\\Upload::STATUS_PENDING') %} {% if invoice.comment %}
Begründung: {{ invoice.comment|nl2br }}
{% endif %} {% endif %} {% endif %} {# Invoice paid #} {% if workflow_has_marked_place(disposition, 'completed') %} {% if assignment.skipFormalities %}

Dein Einsatz ist abgeschlossen

Danke, dass du dabei warst!

{% else %}

Danke für die Honorarnote

Wir werden sie schnellstmöglich bearbeiten.

{% endif %} {% endif %}
{% endblock %}