diff --git a/core/module/course/course.php b/core/module/course/course.php index 742caa8..e51b9f6 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -111,13 +111,20 @@ class course extends common self::$courseAccess[$this->getData(['course', $courseId, 'access'])], self::$courseEnrolment[$this->getData(['course', $courseId, 'enrolment'])] ); + if ($this->getUser('permission', 'course', 'users') === true) { + $users = template::button('categoryUser' . $this->getUrl(2), [ + 'href' => helper::baseUrl() . 'course/users/' . $courseId, + 'value' => template::ico('users'), + ]); + } self::$courses[] = [ $info, $this->getData(['course', $courseId, 'description']), $enrolment, + $users, template::button('categoryUser' . $courseId, [ 'href' => helper::baseUrl() . 'course/manage/' . $courseId, - 'value' => template::ico('eye'), + 'value' => template::ico('sliders'), 'help' => 'GĂ©rer' ]) ]; diff --git a/core/module/course/view/index/index.js.php b/core/module/course/view/index/index.js.php index e2a14a3..3a24fb7 100644 --- a/core/module/course/view/index/index.js.php +++ b/core/module/course/view/index/index.js.php @@ -23,6 +23,16 @@ $(document).ready(function () { target: 2, orderable: false, searchable: false + }, + { + target: 3, + orderable: false, + searchable: false + }, + { + target: 4, + orderable: false, + searchable: false } ] }); diff --git a/core/module/course/view/index/index.php b/core/module/course/view/index/index.php index 6310c29..a374468 100644 --- a/core/module/course/view/index/index.php +++ b/core/module/course/view/index/index.php @@ -37,7 +37,7 @@ - 'dataTables']); ?> + 'dataTables']); ?> \ No newline at end of file diff --git a/core/module/course/view/manage/manage.php b/core/module/course/view/manage/manage.php index 3a910f8..2a8a8ec 100644 --- a/core/module/course/view/manage/manage.php +++ b/core/module/course/view/manage/manage.php @@ -55,15 +55,6 @@ ]); ?> - getUser('permission', 'course', 'users') === true): ?> -
- getUrl(2), [ - 'href' => helper::baseUrl() . 'course/users/' . $this->getUrl(2), - 'value' => 'Participants', - 'ico' => 'users' - ]); ?> -
-
diff --git a/core/module/course/view/users/users.php b/core/module/course/view/users/users.php index 1409955..ae6b5f7 100644 --- a/core/module/course/view/users/users.php +++ b/core/module/course/view/users/users.php @@ -2,7 +2,7 @@
'buttonGrey', - 'href' => helper::baseUrl() . 'course/manage/' . $this->getUrl(2), + 'href' => helper::baseUrl() . 'course/' . $this->getUrl(2), 'value' => template::ico('left') ]); ?>
diff --git a/site/sync.ffs_db b/site/sync.ffs_db new file mode 100644 index 0000000..593797c Binary files /dev/null and b/site/sync.ffs_db differ