From 4d1ea7aad7135bb6aac6a5a9edd7d79e75974ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 4 Apr 2024 11:11:04 +0200 Subject: [PATCH] feat: reminder to upload profile photo --- src/Controller/Teamer/IndexController.php | 1 + templates/teamer/index.html.twig | 3 +++ templates/teamer/profile/index.html.twig | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Controller/Teamer/IndexController.php b/src/Controller/Teamer/IndexController.php index 667b5f9..1e6898b 100644 --- a/src/Controller/Teamer/IndexController.php +++ b/src/Controller/Teamer/IndexController.php @@ -60,6 +60,7 @@ class IndexController extends AbstractController $dispositionDocuments = $this->processDocuments($upcomingDispositions); return $this->render('teamer/index.html.twig', [ + 'teamer' => $teamer, 'matchingAssignments' => $matchingAssignments, 'recentFeedback' => $recentFeedback, 'pendingApplications' => $pendingApplications, diff --git a/templates/teamer/index.html.twig b/templates/teamer/index.html.twig index 4316320..b7484eb 100644 --- a/templates/teamer/index.html.twig +++ b/templates/teamer/index.html.twig @@ -8,6 +8,9 @@ Dashboard + {% if not teamer.photo %} + {% include '_partials/_toast.html.twig' with { level: 'info', messages: ['Bitte lade ein Foto von dir hoch'] } %} + {% endif %}

diff --git a/templates/teamer/profile/index.html.twig b/templates/teamer/profile/index.html.twig index 1ab4b9b..1b16551 100644 --- a/templates/teamer/profile/index.html.twig +++ b/templates/teamer/profile/index.html.twig @@ -146,7 +146,6 @@

- {% if teamer.photo %}