From a354c2a7feaedce94b955a4ecb4099e715cb9289 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 27 Nov 2023 11:06:38 +0100 Subject: [PATCH] added create operation to user connexion block --- web/themes/custom/reha/reha.theme | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/web/themes/custom/reha/reha.theme b/web/themes/custom/reha/reha.theme index 2070691..efb77b4 100644 --- a/web/themes/custom/reha/reha.theme +++ b/web/themes/custom/reha/reha.theme @@ -1,5 +1,11 @@ ['destination' => '/node/add/operation']]); + $link = new Link('proposer une operation', $url); + $variables['content']['reha'] = array( + '#theme' => 'item_list', + '#items' => [ + 'operations' => [ + "add_operation" => $link->toRenderable(), + "description" => [ + "#markup" => Markup::create("

Créer un compte pour charger une opération

") + ] + ] + ] + ); + } +} \ No newline at end of file