feat: provide feedback as manager user
This commit is contained in:
@@ -25,12 +25,14 @@ class IndexController extends AbstractController
|
|||||||
$documents = $this->uploadRepository->getNew();
|
$documents = $this->uploadRepository->getNew();
|
||||||
$newDocumentsCount = $this->uploadRepository->getCountByStatus(Upload::STATUS_NEW);
|
$newDocumentsCount = $this->uploadRepository->getCountByStatus(Upload::STATUS_NEW);
|
||||||
$pendingDocumentsCount = $this->uploadRepository->getCountByStatus(Upload::STATUS_PENDING);
|
$pendingDocumentsCount = $this->uploadRepository->getCountByStatus(Upload::STATUS_PENDING);
|
||||||
|
$overdueFeedbacks = $this->dispositionRepository->findDispositionsWithOverdueFeedback(7);
|
||||||
|
|
||||||
return $this->render('manager/index.html.twig', [
|
return $this->render('manager/index.html.twig', [
|
||||||
'dispositions' => $dispositions,
|
'dispositions' => $dispositions,
|
||||||
'documents' => $documents,
|
'documents' => $documents,
|
||||||
'newDocumentsCount' => $newDocumentsCount,
|
'newDocumentsCount' => $newDocumentsCount,
|
||||||
'pendingDocumentsCount' => $pendingDocumentsCount,
|
'pendingDocumentsCount' => $pendingDocumentsCount,
|
||||||
|
'overdueFeedbacks' => $overdueFeedbacks,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -53,5 +53,34 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
||||||
|
<h2 class="font-bold text-lg pb-2">
|
||||||
|
überfällige Feedbacks
|
||||||
|
</h2>
|
||||||
|
<ul class="divide-y divide-gray-200">
|
||||||
|
{% for disposition in overdueFeedbacks %}
|
||||||
|
{% set assignment = disposition.assignment %}
|
||||||
|
<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">
|
||||||
|
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
|
||||||
|
<span class="whitespace-nowrap">{{ disposition.teamer }}</span>
|
||||||
|
{% if assignment.destination %}
|
||||||
|
{% include '_partials/_dot.html.twig' %}
|
||||||
|
<span class="whitespace-nowrap">{{ assignment.destination }}</span>
|
||||||
|
{% endif %}
|
||||||
|
{% if assignment.jobProfile %}
|
||||||
|
{% include '_partials/_dot.html.twig' %}
|
||||||
|
<span class="whitespace-nowrap">{{ assignment.jobProfile.name }}</span>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% else %}
|
||||||
|
<li class="py-2 first:pt-0 last:pb-0">
|
||||||
|
-
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user