2024-01-14 19:30:14 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col1">
|
|
|
|
<?php echo template::button('courseManageBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'course',
|
|
|
|
'value' => template::ico('left')
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-01-14 20:56:23 +01:00
|
|
|
</div>
|
2024-01-21 11:21:35 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col2 offset1">
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo template::button('categoryUser' . $this->getUrl(2), [
|
|
|
|
'href' => helper::baseUrl() . 'course/users/' . $this->getUrl(2),
|
2024-01-14 20:56:23 +01:00
|
|
|
'value' => 'Participants',
|
|
|
|
'ico' => 'users'
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-01-14 20:56:23 +01:00
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('courseManageEdit' . $this->getUrl(2), [
|
2024-01-14 19:30:14 +01:00
|
|
|
'href' => helper::baseUrl() . 'course/edit/' . $this->getUrl(2),
|
2024-01-14 20:56:23 +01:00
|
|
|
'value' => 'Éditer',
|
|
|
|
'ico' => 'pencil'
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-01-14 20:56:23 +01:00
|
|
|
<div class="col2">
|
|
|
|
<?php echo
|
|
|
|
template::button('courseManageDuplicate' . $this->getUrl(2), [
|
|
|
|
'href' => helper::baseUrl() . 'course/clone/' . $this->getUrl(2),
|
|
|
|
'value' => 'Cloner',
|
|
|
|
'ico' => 'clone'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo
|
|
|
|
template::button('courseManageDownload' . $this->getUrl(2), [
|
|
|
|
'href' => helper::baseUrl() . 'course/backup/' . $this->getUrl(2),
|
2024-01-14 20:56:23 +01:00
|
|
|
'value' => 'Sauvegarder',
|
|
|
|
'ico' => 'download-cloud'
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-01-14 20:56:23 +01:00
|
|
|
<div class="col2 ">
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo
|
|
|
|
template::button('courseManageDelete' . $this->getUrl(2), [
|
|
|
|
'class' => 'courseDelete buttonRed',
|
|
|
|
'href' => helper::baseUrl() . 'course/delete/' . $this->getUrl(2),
|
2024-01-14 20:56:23 +01:00
|
|
|
'value' => 'Supprimer',
|
|
|
|
'ico' => 'trash'
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Paramètres'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col7">
|
|
|
|
<?php echo template::text('courseManageShortTitle', [
|
|
|
|
'label' => 'Titre',
|
|
|
|
'value' => $this->getdata(['course', $this->getUrl(2), 'title']),
|
2024-01-31 13:46:11 +01:00
|
|
|
'disabled' => true,
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col5">
|
|
|
|
<?php echo template::select('courseManageAuthor', $module::$courseTeachers, [
|
|
|
|
'label' => 'Auteur',
|
2024-01-21 11:18:05 +01:00
|
|
|
'selected' => $this->getdata(['course', $this->getUrl(2), 'author']),
|
2024-01-14 19:30:14 +01:00
|
|
|
'disabled' => true,
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('courseManageHomePageId', helper::arrayColumn($module::$pagesList, 'title', 'SORT_ASC'), [
|
|
|
|
'label' => 'Page d\'accueil',
|
|
|
|
'selected' => $this->getdata(['course', $this->getUrl(2), 'homePageId']),
|
|
|
|
'disabled' => true,
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('courseManageCategorie', $module::$courseCategories, [
|
|
|
|
'label' => 'Catégorie',
|
|
|
|
'selected' => $this->getdata(['course', $this->getUrl(2), 'category']),
|
|
|
|
'disabled' => true,
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::textarea('courseManageDescription', [
|
|
|
|
'label' => 'Description',
|
|
|
|
'value' => $this->getdata(['course', $this->getUrl(2), 'description']),
|
2024-01-31 13:46:11 +01:00
|
|
|
'disabled' => true,
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('courseManageAccess', $module::$courseAccess, [
|
|
|
|
'label' => 'Disponibilité',
|
|
|
|
'selected' => $this->getdata(['course', $this->getUrl(2), 'access']),
|
|
|
|
'disabled' => true,
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::date('courseOpeningDate', [
|
|
|
|
'type' => 'datetime-local',
|
|
|
|
'label' => 'Ouverture',
|
|
|
|
'value' => is_null($this->getdata(['course', $this->getUrl(2), 'openingDate'])) ? '' : floor($this->getdata(['course', $this->getUrl(2), 'openingDate']) / 60) * 60,
|
2024-01-31 13:46:11 +01:00
|
|
|
'disabled' => true,
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::date('courseClosingDate', [
|
|
|
|
'type' => 'datetime-local',
|
|
|
|
'label' => 'Fermeture',
|
|
|
|
'value' => is_null($this->getdata(['course', $this->getUrl(2), 'closingDate'])) ? '' : floor($this->getdata(['course', $this->getUrl(2), 'closingDate']) / 60) * 60,
|
2024-01-31 13:46:11 +01:00
|
|
|
'disabled' => true,
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2024-01-21 11:21:35 +01:00
|
|
|
<div class="col4">
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo template::select('courseManageEnrolment', $module::$courseEnrolment, [
|
|
|
|
'label' => 'Participation',
|
|
|
|
'selected' => $this->getdata(['course', $this->getUrl(2), 'enrolment']),
|
|
|
|
'disabled' => true,
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-01-21 11:21:35 +01:00
|
|
|
<div class="col4">
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo template::text('courseManageEnrolmentKey', [
|
|
|
|
'label' => 'Clé',
|
|
|
|
'value' => $this->getdata(['course', $this->getUrl(2), 'enrolmentKey']),
|
2024-01-31 13:46:11 +01:00
|
|
|
'disabled' => true,
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2024-01-21 11:21:35 +01:00
|
|
|
<div class="col4">
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo template::checkbox('courseManageEnrolmentLimit', true, 'Date de fin d\'inscription', [
|
|
|
|
'checked' => $this->getdata(['course', $this->getUrl(2), 'limitEnrolment']),
|
|
|
|
'help' => 'Ne s\'applique pas à l\'inscription anonyme',
|
|
|
|
'disabled' => true,
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-01-21 11:21:35 +01:00
|
|
|
<div class="col4">
|
2024-01-14 19:30:14 +01:00
|
|
|
<?php echo template::date('courseManageEnrolmentLimitDate', [
|
|
|
|
'type' => 'datetime-local',
|
|
|
|
'label' => 'Fermeture',
|
|
|
|
'value' => is_null($this->getdata(['course', $this->getUrl(2), 'limitEnrolmentDate'])) ? '' : floor($this->getdata(['course', $this->getUrl(2), 'limitEnrolmentDate']) / 60) * 60,
|
2024-01-31 13:46:11 +01:00
|
|
|
'disabled' => true,
|
2024-01-14 19:30:14 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|