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

{% if workflow_has_marked_place(disposition, 'ended') %} 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') %} {{ form_start(form) }}
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') %} {{ form_start(form) }}
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', } %}
{{ 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 %} {# 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') %}

Dein Honorar wurde überwiesen

{% endif %}
{% endblock %}