feat: add the house manager questionnaire per travel and compact the questionnaire layout
This commit is contained in:
1 parent
d760ed3cdf
commit
bfef08b519
50 files changed
+2763
-180
No files matched your search
@@ -46,13 +46,24 @@
|
||||
Ausstehende Feedbacks
|
||||
</h2>
|
||||
<ul class="divide-y divide-gray-200">
|
||||
{% for disposition in pendingFeedbacks %}
|
||||
{% set assignment = disposition.assignment %}
|
||||
{% for row in pendingTravels %}
|
||||
{% set destination = row[0] %}
|
||||
{% set questionnaireOpen = destination.dateTo >= goLive and row.questionnaireStatus != 'submitted' %}
|
||||
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
||||
<a href="{{ path('app_administrative_feedback_provide', { 'uuid': disposition.uuid, 'r': return_url() }) }}"
|
||||
class="flex items-center space-x-1">
|
||||
<a href="{{ questionnaireOpen ? path('app_house_manager_questionnaire_edit', { 'id': destination.id }) : path('app_house_manager_feedback_index') }}"
|
||||
class="flex flex-wrap items-center gap-x-1">
|
||||
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
|
||||
{{ _self.dispositionData(disposition) }}
|
||||
<span class="whitespace-nowrap">{{ destination.dateFrom|date('d.m.y') }} - {{ destination.dateTo|date('d.m.y') }}</span>
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span>{{ destination.product }}</span>
|
||||
{% if questionnaireOpen %}
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span class="whitespace-nowrap">Fragebogen {{ row.questionnaireStatus == 'draft' ? 'im Entwurf' : 'offen' }}</span>
|
||||
{% endif %}
|
||||
{% if row.openFeedbacks > 0 %}
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span class="whitespace-nowrap">{{ row.openFeedbacks }} {{ row.openFeedbacks == 1 ? 'Bewertung' : 'Bewertungen' }} offen</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
|
||||
Reference in new issue
Block a user