From 647147b3e144395ad81f8b3f31aed13a6279d51f Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Wed, 29 Nov 2023 13:41:44 +0300 Subject: [PATCH] fix better text --- fields/InscriptionField.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fields/InscriptionField.php b/fields/InscriptionField.php index e99d995..397cc25 100644 --- a/fields/InscriptionField.php +++ b/fields/InscriptionField.php @@ -25,10 +25,14 @@ class InscriptionField extends BazarField protected function renderStatic($entry) { - if ($this->getWiki()->UserIsInGroup('admins') ||$this->getWiki()->UserIsInGroup('Employeur') ||$this->getWiki()->UserIsInGroup('Coordination') ) { - return "Inscrire a cette formation"; + if ( + $this->getWiki()->UserIsInGroup('admins') + || $this->getWiki()->UserIsInGroup('Employeur') + ||$this->getWiki()->UserIsInGroup('Coordination') + ) { + return 'Inscrire des adultes relais à cette formation'; } else { - return "Faut etre dans le bon groupe"; + return '
Pour vous inscrire à cette session, vous devez en faire la demande à votre employeur qui une fois connecté pourra vous inscrire.
'; } }