forked from ZwiiCMS-Team/ZwiiCampus
Course manage icons bar
This commit is contained in:
parent
a8f1387c96
commit
b5693abbf5
@ -8,17 +8,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row textAlignCenter">
|
<div class="row textAlignCenter">
|
||||||
<div class="col2">
|
|
||||||
<?php if ($this->getUser('permission', 'course', 'clone') === true): ?>
|
<?php if ($this->getUser('permission', 'course', 'delete') === true): ?>
|
||||||
<?php echo template::button('courseManageDuplicate' . $this->getUrl(2), [
|
<div class="col2 ">
|
||||||
'href' => helper::baseUrl() . 'course/clone/' . $this->getUrl(2),
|
|
||||||
'value' => 'Cloner',
|
|
||||||
'ico' => 'clone'
|
|
||||||
]); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<div class="col2 ">
|
|
||||||
<?php if ($this->getUser('permission', 'course', 'delete') === true): ?>
|
|
||||||
<?php echo template::button('courseManageDelete' . $this->getUrl(2), [
|
<?php echo template::button('courseManageDelete' . $this->getUrl(2), [
|
||||||
'class' => 'courseDelete buttonRed',
|
'class' => 'courseDelete buttonRed',
|
||||||
'href' => helper::baseUrl() . 'course/delete/' . $this->getUrl(2),
|
'href' => helper::baseUrl() . 'course/delete/' . $this->getUrl(2),
|
||||||
@ -27,138 +19,150 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<div class="col2 offset1">
|
|
||||||
<?php if ($this->getUser('permission', 'course', 'users') === true): ?>
|
|
||||||
<?php echo template::button('categoryUser' . $this->getUrl(2), [
|
|
||||||
'href' => helper::baseUrl() . 'course/users/' . $this->getUrl(2),
|
|
||||||
'value' => 'Participants',
|
|
||||||
'ico' => 'users'
|
|
||||||
]); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<div class="col2">
|
|
||||||
<?php if ($this->getUser('permission', 'course', 'edit') === true): ?>
|
|
||||||
<?php echo template::button('courseManageEdit' . $this->getUrl(2), [
|
|
||||||
'href' => helper::baseUrl() . 'course/edit/' . $this->getUrl(2),
|
|
||||||
'value' => 'Éditer',
|
|
||||||
'ico' => 'pencil'
|
|
||||||
]); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<div class="col2">
|
|
||||||
<?php if ($this->getUser('permission', 'course', 'backup') === true): ?>
|
<?php if ($this->getUser('permission', 'course', 'backup') === true): ?>
|
||||||
<?php echo template::button('courseManageDownload' . $this->getUrl(2), [
|
<div class="col2">
|
||||||
'href' => helper::baseUrl() . 'course/backup/' . $this->getUrl(2),
|
<?php echo template::button('courseManageDownload' . $this->getUrl(2), [
|
||||||
'value' => 'Sauvegarder',
|
'href' => helper::baseUrl() . 'course/backup/' . $this->getUrl(2),
|
||||||
'ico' => 'download-cloud'
|
'value' => 'Sauvegarder',
|
||||||
]); ?>
|
'ico' => 'download-cloud'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php if ($this->getUser('permission', 'course', 'clone') === true): ?>
|
||||||
<div class="row">
|
<div class="col2">
|
||||||
<div class="col12">
|
<?php echo template::button('courseManageDuplicate' . $this->getUrl(2), [
|
||||||
<div class="block">
|
'href' => helper::baseUrl() . 'course/clone/' . $this->getUrl(2),
|
||||||
<h4>
|
'value' => 'Cloner',
|
||||||
<?php echo helper::translate('Paramètres'); ?>
|
'ico' => 'clone'
|
||||||
</h4>
|
]); ?>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col7">
|
<?php endif; ?>
|
||||||
<?php echo template::text('courseManageShortTitle', [
|
<?php if ($this->getUser('permission', 'course', 'edit') === true): ?>
|
||||||
'label' => 'Titre',
|
<div class="col2">
|
||||||
'value' => $this->getdata(['course', $this->getUrl(2), 'title']),
|
|
||||||
'disabled' => true,
|
<?php echo template::button('courseManageEdit' . $this->getUrl(2), [
|
||||||
]); ?>
|
'href' => helper::baseUrl() . 'course/edit/' . $this->getUrl(2),
|
||||||
|
'value' => 'Éditer',
|
||||||
|
'ico' => 'pencil'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<?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 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']),
|
||||||
|
'disabled' => true,
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col5">
|
||||||
|
<?php echo template::select('courseManageAuthor', $module::$courseTeachers, [
|
||||||
|
'label' => 'Auteur',
|
||||||
|
'selected' => $this->getdata(['course', $this->getUrl(2), 'author']),
|
||||||
|
'disabled' => true,
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col5">
|
<div class="row">
|
||||||
<?php echo template::select('courseManageAuthor', $module::$courseTeachers, [
|
<div class="col6">
|
||||||
'label' => 'Auteur',
|
<?php echo template::select('courseManageHomePageId', helper::arrayColumn($module::$pagesList, 'title', 'SORT_ASC'), [
|
||||||
'selected' => $this->getdata(['course', $this->getUrl(2), 'author']),
|
'label' => 'Page d\'accueil',
|
||||||
'disabled' => true,
|
'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>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col12">
|
||||||
<div class="col6">
|
<?php echo template::textarea('courseManageDescription', [
|
||||||
<?php echo template::select('courseManageHomePageId', helper::arrayColumn($module::$pagesList, 'title', 'SORT_ASC'), [
|
'label' => 'Description',
|
||||||
'label' => 'Page d\'accueil',
|
'value' => $this->getdata(['course', $this->getUrl(2), 'description']),
|
||||||
'selected' => $this->getdata(['course', $this->getUrl(2), 'homePageId']),
|
'disabled' => true,
|
||||||
'disabled' => true,
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
<div class="row">
|
||||||
<?php echo template::select('courseManageCategorie', $module::$courseCategories, [
|
<div class="col4">
|
||||||
'label' => 'Catégorie',
|
<?php echo template::select('courseManageAccess', $module::$courseAccess, [
|
||||||
'selected' => $this->getdata(['course', $this->getUrl(2), 'category']),
|
'label' => 'Disponibilité',
|
||||||
'disabled' => true,
|
'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,
|
||||||
|
'disabled' => true,
|
||||||
|
]); ?>
|
||||||
|
</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,
|
||||||
|
'disabled' => true,
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col4">
|
||||||
<div class="col12">
|
<?php echo template::select('courseManageEnrolment', $module::$courseEnrolment, [
|
||||||
<?php echo template::textarea('courseManageDescription', [
|
'label' => 'Participation',
|
||||||
'label' => 'Description',
|
'selected' => $this->getdata(['course', $this->getUrl(2), 'enrolment']),
|
||||||
'value' => $this->getdata(['course', $this->getUrl(2), 'description']),
|
'disabled' => true,
|
||||||
'disabled' => true,
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
|
<div class="col4">
|
||||||
|
<?php echo template::text('courseManageEnrolmentKey', [
|
||||||
|
'label' => 'Clé',
|
||||||
|
'value' => $this->getdata(['course', $this->getUrl(2), 'enrolmentKey']),
|
||||||
|
'disabled' => true,
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col4">
|
||||||
<div class="col4">
|
<?php echo template::checkbox('courseManageEnrolmentLimit', true, 'Date de fin d\'inscription', [
|
||||||
<?php echo template::select('courseManageAccess', $module::$courseAccess, [
|
'checked' => $this->getdata(['course', $this->getUrl(2), 'limitEnrolment']),
|
||||||
'label' => 'Disponibilité',
|
'help' => 'Ne s\'applique pas à l\'inscription anonyme',
|
||||||
'selected' => $this->getdata(['course', $this->getUrl(2), 'access']),
|
'disabled' => true,
|
||||||
'disabled' => true,
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
</div>
|
<div class="col4">
|
||||||
<div class="col4">
|
<?php echo template::date('courseManageEnrolmentLimitDate', [
|
||||||
<?php echo template::date('courseOpeningDate', [
|
'type' => 'datetime-local',
|
||||||
'type' => 'datetime-local',
|
'label' => 'Fermeture',
|
||||||
'label' => 'Ouverture',
|
'value' => is_null($this->getdata(['course', $this->getUrl(2), 'limitEnrolmentDate'])) ? '' : floor($this->getdata(['course', $this->getUrl(2), 'limitEnrolmentDate']) / 60) * 60,
|
||||||
'value' => is_null($this->getdata(['course', $this->getUrl(2), 'openingDate'])) ? '' : floor($this->getdata(['course', $this->getUrl(2), 'openingDate']) / 60) * 60,
|
'disabled' => true,
|
||||||
'disabled' => true,
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
</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,
|
|
||||||
'disabled' => true,
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col4">
|
|
||||||
<?php echo template::select('courseManageEnrolment', $module::$courseEnrolment, [
|
|
||||||
'label' => 'Participation',
|
|
||||||
'selected' => $this->getdata(['course', $this->getUrl(2), 'enrolment']),
|
|
||||||
'disabled' => true,
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col4">
|
|
||||||
<?php echo template::text('courseManageEnrolmentKey', [
|
|
||||||
'label' => 'Clé',
|
|
||||||
'value' => $this->getdata(['course', $this->getUrl(2), 'enrolmentKey']),
|
|
||||||
'disabled' => true,
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col4">
|
|
||||||
<?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>
|
|
||||||
<div class="col4">
|
|
||||||
<?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,
|
|
||||||
'disabled' => true,
|
|
||||||
]); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
Loading…
Reference in New Issue
Block a user