Feat: Display comment for document status on disposition detail page
This commit is contained in:
@@ -43,11 +43,28 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# Upload contract #}
|
{# Upload contract #}
|
||||||
{% if workflow_has_marked_place(disposition, 'new') %}
|
{% if workflow_has_marked_place(disposition, 'new') %}
|
||||||
<h2 class="text-lg font-bold pb-4">
|
<h2 class="text-lg font-bold pb-4">
|
||||||
Honorarvertrag
|
Honorarvertrag
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
|
||||||
|
{# Existing upload has been rejected #}
|
||||||
|
{% set contract = disposition.documentByType('contract') %}
|
||||||
|
{% if contract and contract.status == constant('App\\Entity\\Upload::STATUS_REJECTED') %}
|
||||||
|
{% include '_partials/_errorbox.html.twig' with {
|
||||||
|
'message': 'Dein Honorarvertrag muss überarbeitet werden'
|
||||||
|
} %}
|
||||||
|
{% if contract.comment %}
|
||||||
|
<div class="py-2">
|
||||||
|
<strong>Begründung:</strong> {{ contract.comment|nl2br }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{# New upload #}
|
||||||
{% if workflow_can(disposition, 'upload_contract') %}
|
{% if workflow_can(disposition, 'upload_contract') %}
|
||||||
<div class="pb-4">
|
<div class="pb-4">
|
||||||
<a href="{{ path('app_teamer_disposition_contractpdf', { 'uuid': disposition.uuid }) }}" target="_blank" class="inline-block">
|
<a href="{{ path('app_teamer_disposition_contractpdf', { 'uuid': disposition.uuid }) }}" target="_blank" class="inline-block">
|
||||||
@@ -117,6 +134,19 @@
|
|||||||
<div class="pb-4">
|
<div class="pb-4">
|
||||||
Wir prüfen das Dokument schnellstmöglich.
|
Wir prüfen das Dokument schnellstmöglich.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{# Existing upload is being checked #}
|
||||||
|
{% set contract = disposition.documentByType('contract') %}
|
||||||
|
{% if contract and contract.status == constant('App\\Entity\\Upload::STATUS_PENDING') %}
|
||||||
|
{% include '_partials/_infobox.html.twig' with {
|
||||||
|
'message': 'Dein Honorarvertrag befindet sich in Bearbeitung'
|
||||||
|
} %}
|
||||||
|
{% if contract.comment %}
|
||||||
|
<div class="py-2">
|
||||||
|
<strong>Begründung:</strong> {{ contract.comment|nl2br }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# Invoice uploaded #}
|
{# Invoice uploaded #}
|
||||||
|
|||||||
Reference in New Issue
Block a user