From ae372e1d9c7eb15e83b03fbe94a20a41e6ebb531 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 9 Oct 2023 19:40:59 +0200 Subject: [PATCH] course membre filtre form template --- core/module/course/course.php | 4 ++-- core/module/course/view/user/user.php | 10 +++++----- core/module/user/view/index/index.php | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index c38a4c2..ca7360e 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -55,7 +55,7 @@ class course extends common public static $alphabet = []; public static $courseGroups = [ - 'all' => 'Tous' + 'all' => 'Tout' ]; public static $courses = []; @@ -402,7 +402,7 @@ class course extends common self::$alphabet = range('A', 'Z'); $alphabet = range('A', 'Z'); self::$alphabet = array_combine($alphabet, self::$alphabet); - self::$alphabet = array_merge(['all'=>'Toute'], self::$alphabet ); + self::$alphabet = array_merge(['all'=>'Tout'], self::$alphabet ); // Liste des inscrits dans le cours sélectionné. $courseId = $this->getUrl(2); $users = $this->getData(['enrolment', $courseId]); diff --git a/core/module/course/view/user/user.php b/core/module/course/view/user/user.php index f7cdea9..5a9ba01 100644 --- a/core/module/course/view/user/user.php +++ b/core/module/course/view/user/user.php @@ -19,31 +19,31 @@
-
+

-
+
'Groupes / Profils', 'selected' => isset($_POST['courseFilterGroup']) ? $_POST['courseFilterGroup'] : 'all', ]); ?>
-
+
'Prénom commence par', 'selected' => isset($_POST['courseFilterFirstName']) ? $_POST['courseFilterFirstName'] : 'all', ]); ?>
-
+
'Nom commence par', 'selected' => isset($_POST['courseFilterLastName']) ? $_POST['courseFilterLastName'] : 'all', ]); ?>
-
+
'Filtrer', 'uniqueSubmission' => true diff --git a/core/module/user/view/index/index.php b/core/module/user/view/index/index.php index 4d8984c..80e36a3 100644 --- a/core/module/user/view/index/index.php +++ b/core/module/user/view/index/index.php @@ -40,31 +40,31 @@
-
+

-
+
'Groupes / Profils', 'selected' => isset($_POST['userFilterGroup']) ? $_POST['userFilterGroup'] : 'all', ]); ?>
-
+
'Prénom commence par', 'selected' => isset($_POST['userFilterFirstName']) ? $_POST['userFilterFirstName'] : 'all', ]); ?>
-
+
'Nom commence par', 'selected' => isset($_POST['userFilterLastName']) ? $_POST['userFilterLastName'] : 'all', ]); ?>
-
+
'Filtrer', 'uniqueSubmission' => true