Déplace les boutons de gestion des utilisateurs dans la liste des espaces.

This commit is contained in:
Fred Tempez 2024-04-23 18:09:28 +02:00
parent 7cee16389f
commit 8dedb39a33
6 changed files with 20 additions and 12 deletions

View File

@ -111,13 +111,20 @@ class course extends common
self::$courseAccess[$this->getData(['course', $courseId, 'access'])], self::$courseAccess[$this->getData(['course', $courseId, 'access'])],
self::$courseEnrolment[$this->getData(['course', $courseId, 'enrolment'])] 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[] = [ self::$courses[] = [
$info, $info,
$this->getData(['course', $courseId, 'description']), $this->getData(['course', $courseId, 'description']),
$enrolment, $enrolment,
$users,
template::button('categoryUser' . $courseId, [ template::button('categoryUser' . $courseId, [
'href' => helper::baseUrl() . 'course/manage/' . $courseId, 'href' => helper::baseUrl() . 'course/manage/' . $courseId,
'value' => template::ico('eye'), 'value' => template::ico('sliders'),
'help' => 'Gérer' 'help' => 'Gérer'
]) ])
]; ];

View File

@ -23,6 +23,16 @@ $(document).ready(function () {
target: 2, target: 2,
orderable: false, orderable: false,
searchable: false searchable: false
},
{
target: 3,
orderable: false,
searchable: false
},
{
target: 4,
orderable: false,
searchable: false
} }
] ]
}); });

View File

@ -37,7 +37,7 @@
</div> </div>
</div> </div>
<?php if ($module::$courses): ?> <?php if ($module::$courses): ?>
<?php echo template::table([4, 4, 3, 1], $module::$courses, ['Titre court', 'Description', 'Inscription', '',], ['id' => 'dataTables']); ?> <?php echo template::table([4, 3, 3, 1, 1], $module::$courses, ['Titre court', 'Description', 'Inscription', '', '',], ['id' => 'dataTables']); ?>
<?php else: ?> <?php else: ?>
<?php echo template::speech('Aucun espace'); ?> <?php echo template::speech('Aucun espace'); ?>
<?php endif; ?> <?php endif; ?>

View File

@ -55,15 +55,6 @@
]); ?> ]); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if ($this->getUser('permission', 'course', 'users') === true): ?>
<div class="col2">
<?php echo template::button('categoryUser' . $this->getUrl(2), [
'href' => helper::baseUrl() . 'course/users/' . $this->getUrl(2),
'value' => 'Participants',
'ico' => 'users'
]); ?>
</div>
<?php endif; ?>
</div> </div>
<div class="row"> <div class="row">

View File

@ -2,7 +2,7 @@
<div class="col1"> <div class="col1">
<?php echo template::button('courseUserBack', [ <?php echo template::button('courseUserBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'course/manage/' . $this->getUrl(2), 'href' => helper::baseUrl() . 'course/' . $this->getUrl(2),
'value' => template::ico('left') 'value' => template::ico('left')
]); ?> ]); ?>
</div> </div>

BIN
site/sync.ffs_db Normal file

Binary file not shown.