Files
myep-team/templates/house_manager/questionnaire/_team.html.twig
T

41 lines
1.8 KiB
Twig

{#
# "Bewerte dein Wochenteam": the travel's teamers, each linking to the existing rating form until
# rated. Not part of the questionnaire's answers; a rating is filed against the placement as
# always. Expects `dispositions` (DispositionRepository::findForHouseManagerQuestionnaire()).
#}
<section class="card mt-6 p-5">
<h2 class="section-title pb-2">
Bewerte dein Wochenteam
</h2>
{% if hint|default(false) %}
<p class="pb-2 text-sm text-muted">
Speichere deinen Fragebogen vorher als Entwurf, sonst gehen deine Eingaben verloren.
</p>
{% endif %}
<ul class="divide-y divide-line">
{% for disposition in dispositions %}
<li class="flex flex-wrap items-center justify-between gap-2 py-3">
<span>
<span class="font-bold">{{ disposition.teamer.fullName }}</span>
<span class="text-sm text-muted">{{ disposition.assignment.jobProfile.name }}</span>
</span>
{% if disposition.feedback %}
<span class="inline-flex items-center gap-x-1 text-sm text-emerald-700">
{{ icon('check', 'w-4 h-4') }} bewertet
</span>
{% elseif disposition.feedbackWaived %}
<span class="text-sm text-muted">nicht nötig</span>
{% else %}
<a href="{{ path('app_administrative_feedback_provide', { 'uuid': disposition.uuid, 'r': return_url() }) }}"
class="btn btn--small btn--secondary">
{{ icon('feedback', 'w-4 h-4') }}
Bewerten
</a>
{% endif %}
</li>
{% else %}
<li class="py-3 text-muted">-</li>
{% endfor %}
</ul>
</section>