feat: remind teamers of open questionnaires on the dashboard
This commit is contained in:
1 parent
5e4e574076
commit
890e04f8a6
7 files changed
+313
-4
No files matched your search
@@ -219,6 +219,19 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{# Questionnaire after a bus escort; the edit page forwards to the read-only view once submitted #}
|
||||
{% if is_granted('QUESTIONNAIRE', disposition) %}
|
||||
<h3 class="text-xl font-bold pb-4">
|
||||
Fragebogen zur Busbegleitung
|
||||
</h3>
|
||||
<p class="pb-4">
|
||||
Wie lief dein Einsatz? Dein Feedback hilft uns, besser zu werden.
|
||||
</p>
|
||||
<a href="{{ path('app_teamer_questionnaire_edit', { 'uuid': disposition.uuid }) }}" class="btn inline-block mb-4">
|
||||
Zum Fragebogen
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<div class="pt-4">
|
||||
<a href="{{ returnUrl }}" class="underline">
|
||||
zurück
|
||||
|
||||
@@ -15,6 +15,24 @@
|
||||
{% set alertType = news.status == 2 ? 'warning' : 'info' %}
|
||||
{% include '_partials/_alert.html.twig' with { 'type': alertType, 'message': news.message } %}
|
||||
{% endif %}
|
||||
{% if pendingQuestionnaires is not empty %}
|
||||
{% embed '_partials/_alert.html.twig' with { 'type': 'info' } %}
|
||||
{% block message %}
|
||||
<p>Bitte fülle den Fragebogen zu deiner Busbegleitung aus:</p>
|
||||
<ul class="pt-1">
|
||||
{% for row in pendingQuestionnaires %}
|
||||
{% set destination = row.disposition.assignment.destination %}
|
||||
<li>
|
||||
<a href="{{ path('app_teamer_questionnaire_edit', { 'uuid': row.disposition.uuid }) }}" class="underline">
|
||||
{{ destination.dateFrom|date('d.m.y') }} - {{ destination.dateTo|date('d.m.y') }}, {{ destination.hotel }}
|
||||
</a>
|
||||
{% if row.draft %}(Entwurf gespeichert){% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
{% endif %}
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
||||
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
||||
<h2 class="font-bold text-lg pb-2">
|
||||
|
||||
Reference in new issue
Block a user