2023-09-08 22:09:25 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col1">
|
2023-10-04 21:05:39 +02:00
|
|
|
<?php echo template::button('courseBack', [
|
2023-09-08 22:09:25 +02:00
|
|
|
'class' => 'buttonGrey',
|
2023-11-25 21:44:50 +01:00
|
|
|
'href' => helper::baseUrl(),
|
|
|
|
'value' => template::ico('home')
|
2023-09-08 22:09:25 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2023-11-25 21:44:50 +01:00
|
|
|
<?php if ($this->getUser('group') === self::GROUP_ADMIN): ?>
|
2024-01-08 17:24:05 +01:00
|
|
|
<div class="col1 offset8">
|
|
|
|
<?php echo template::button('courseUpload', [
|
|
|
|
'href' => helper::baseUrl() . 'course/restore/',
|
|
|
|
'value' => template::ico('upload-cloud'),
|
|
|
|
'help' => 'Restaurer'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col1">
|
|
|
|
<?php echo template::button('courseCategory', [
|
|
|
|
'href' => helper::baseUrl() . 'course/category',
|
|
|
|
'value' => template::ico('table'),
|
|
|
|
'help' => 'Catégories'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col1">
|
|
|
|
<?php echo template::button('courseAdd', [
|
|
|
|
'class' => 'buttonGreen',
|
|
|
|
'href' => helper::baseUrl() . 'course/add',
|
|
|
|
'value' => template::ico('plus'),
|
|
|
|
'help' => 'Ajouter un espace'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="col1 offset10">
|
|
|
|
<?php echo template::button('courseUpload', [
|
|
|
|
'href' => helper::baseUrl() . 'course/restore/',
|
|
|
|
'value' => template::ico('upload-cloud'),
|
|
|
|
'help' => 'Restaurer depuis le dossier de l\'espace ' . self::$siteContent
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2023-11-25 21:44:50 +01:00
|
|
|
<?php endif; ?>
|
2023-09-12 22:16:25 +02:00
|
|
|
</div>
|
2024-01-08 17:24:05 +01:00
|
|
|
<?php if ($module::$courses): ?>
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo template::table([4, 4, 3, 1 ], $module::$courses, ['Titre court', 'Description', 'Inscription', '',], ['id' => 'dataTables']); ?>
|
2023-09-30 09:18:08 +02:00
|
|
|
<?php else: ?>
|
2024-01-08 17:24:05 +01:00
|
|
|
<?php echo template::speech('Aucun espace'); ?>
|
|
|
|
<?php endif; ?>
|