From 0c8569f7cf45bd9e31caa6db30b1088b69601ef9 Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Tue, 13 Feb 2024 11:22:49 +0100 Subject: [PATCH] 1.6.00 Profil des espaces WIP --- core/module/course/course.php | 8 ++-- core/module/user/user.php | 4 ++ .../user/view/profilEdit/profilEdit.php | 41 +++++++++++++++++++ 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index 32f4230..80b7c91 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -23,17 +23,17 @@ class course extends common 'index' => self::GROUP_EDITOR, 'edit' => self::GROUP_EDITOR, 'manage' => self::GROUP_EDITOR, - 'users' => self::GROUP_EDITOR, + 'users' => self::GROUP_EDITOR, // fait 'usersAdd' => self::GROUP_EDITOR, - 'userDelete' => self::GROUP_EDITOR, 'usersDelete' => self::GROUP_EDITOR, + 'usersHistoryExport' => self::GROUP_EDITOR, //fait + 'userDelete' => self::GROUP_EDITOR, 'userHistory' => self::GROUP_EDITOR, - 'usersHistoryExport' => self::GROUP_EDITOR, 'userHistoryExport' => self::GROUP_EDITOR, 'backup' => self::GROUP_EDITOR, 'restore' => self::GROUP_EDITOR, 'clone' => self::GROUP_ADMIN, - 'add' => self::GROUP_ADMIN, + 'add' => self::GROUP_ADMIN, 'delete' => self::GROUP_ADMIN, 'category' => self::GROUP_ADMIN, 'categoryAdd' => self::GROUP_ADMIN, diff --git a/core/module/user/user.php b/core/module/user/user.php index a653fd6..95576eb 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -708,6 +708,10 @@ class user extends common ], 'course' => [ 'index' => $this->getInput('profilEditCourseIndex', helper::FILTER_BOOLEAN), + 'manage' => $this->getInput('profilEditCourseIndex', helper::FILTER_BOOLEAN), // Les deux fonctions sont groupées + 'users' => $this->getInput('profilEditCourseUsers', helper::FILTER_BOOLEAN), + 'userHistory' => $this->getInput('profilEditCourseUserHistory', helper::FILTER_BOOLEAN), + 'userHistoryExport' => $this->getInput('profilEditCourseUserExport', helper::FILTER_BOOLEAN), ] ]; diff --git a/core/module/user/view/profilEdit/profilEdit.php b/core/module/user/view/profilEdit/profilEdit.php index bf1b0f3..d4c8f37 100644 --- a/core/module/user/view/profilEdit/profilEdit.php +++ b/core/module/user/view/profilEdit/profilEdit.php @@ -92,6 +92,47 @@ ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'edit']) + ]); ?> +
+
+
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'users']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistory']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistoryExport']) + ]); ?> +
+
+
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'users']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistory']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistoryExport']) + ]); ?> +
+