Catégory non éditable

This commit is contained in:
Fred Tempez 2023-11-08 11:56:44 +01:00
parent 106ace8cef
commit 0b5325c241
2 changed files with 3 additions and 1 deletions

View File

@ -312,11 +312,13 @@ class course extends common
self::$courseCategories[] = [
$categoryId,
$categoryTitle,
/**
template::button('categoryEdit' . $categoryId, [
'href' => helper::baseUrl() . 'course/categoryEdit/' . $categoryId,
'value' => template::ico('pencil'),
'help' => 'Éditer'
]),
*/
template::button('courseDelete' . $categoryId, [
'class' => 'categoryDelete buttonRed',
'href' => helper::baseUrl() . 'course/categoryDelete/' . $categoryId,

View File

@ -16,7 +16,7 @@
</div>
<?php if($module::$courseCategories): ?>
<?php echo template::table([5,5,1,1], $module::$courseCategories, ['Id', 'Titre', '', '']); ?>
<?php echo template::table([5,6,1], $module::$courseCategories, ['Id', 'Titre', '']); ?>
<?php else: ?>
<?php echo template::speech('Aucune catégorie'); ?>
<?php endif; ?>