mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-28 06:34:33 +00:00
Add a counter for invitations awaiting reply
This commit is contained in:
6
.changes/unreleased/Feature-20251125-165811.yaml
Normal file
6
.changes/unreleased/Feature-20251125-165811.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Feature
|
||||||
|
body: Add a counter for invitations awaiting reply
|
||||||
|
time: 2025-11-25T16:58:11.780678466+01:00
|
||||||
|
custom:
|
||||||
|
Issue: "459"
|
||||||
|
SchemaChange: No schema change
|
||||||
@@ -47,10 +47,16 @@ class MyInvitationsController extends AbstractController
|
|||||||
$paginator->getCurrentPageFirstItemNumber()
|
$paginator->getCurrentPageFirstItemNumber()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$invitationsWaiting = count($this->inviteRepository->findBy([
|
||||||
|
'user' => $user,
|
||||||
|
'status' => 'pending',
|
||||||
|
]));
|
||||||
|
|
||||||
$view = '@ChillCalendar/Invitations/listByUser.html.twig';
|
$view = '@ChillCalendar/Invitations/listByUser.html.twig';
|
||||||
|
|
||||||
return $this->render($view, [
|
return $this->render($view, [
|
||||||
'invitations' => $invitations,
|
'invitations' => $invitations,
|
||||||
|
'invitationsWaiting' => $invitationsWaiting,
|
||||||
'paginator' => $paginator,
|
'paginator' => $paginator,
|
||||||
'templates' => $this->docGeneratorTemplateRepository->findByEntity(Calendar::class),
|
'templates' => $this->docGeneratorTemplateRepository->findByEntity(Calendar::class),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
<h1>{{ 'invite.list.title'|trans }}</h1>
|
<h1>{{ 'invite.list.title'|trans }}</h1>
|
||||||
|
|
||||||
|
<p>{{ 'invite.number of invitations waiting'|trans }}: <span class="badge rounded-pill bg-primary mt-3">{{ invitationsWaiting }}</span></p>
|
||||||
|
|
||||||
{% if invitations|length == 0 %}
|
{% if invitations|length == 0 %}
|
||||||
<p class="chill-no-data-statement">
|
<p class="chill-no-data-statement">
|
||||||
{{ "invite.list.none"|trans }}
|
{{ "invite.list.none"|trans }}
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ invite:
|
|||||||
list:
|
list:
|
||||||
none: Il n'y aucun invitation
|
none: Il n'y aucun invitation
|
||||||
title: Mes invitations
|
title: Mes invitations
|
||||||
|
number of invitations waiting: Invitations en attente
|
||||||
|
|
||||||
# exports
|
# exports
|
||||||
Exports of calendar: Exports des rendez-vous
|
Exports of calendar: Exports des rendez-vous
|
||||||
|
|||||||
Reference in New Issue
Block a user