ZwiiCampus/module/workshop/view/config/config.php

175 lines
5.8 KiB
PHP
Raw Normal View History

2023-10-19 11:41:54 +02:00
<?php echo template::formOpen('coursesConfig'); ?>
<div class="row">
<div class="col1">
<?php echo template::button('coursesConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
2023-10-19 11:41:54 +02:00
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset9">
<?php echo template::submit('coursesConfigSubmit'); ?>
</div>
</div>
<div class="row">
2023-10-19 22:48:57 +02:00
<div class="col6">
<?php echo template::select('coursesConfigCategories', $module::$courseCategories, [
'label' => 'Catégorie à afficher',
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'category'])
]); ?>
</div>
</div>
<div class="row">
2023-10-22 12:31:54 +02:00
<div class="col8">
2023-10-19 11:41:54 +02:00
<div class="block">
<h4>
<?php echo helper::translate('Elements à afficher'); ?>
</h4>
<div class="row">
<div class="col12">
2023-10-19 22:48:57 +02:00
<?php echo template::checkbox('coursesConfigShowTitle', true, 'Titre', [
2023-10-22 12:31:54 +02:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'title']),
'help' => 'Classe CSS de l\'élément en ligne : workshopTitle'
2023-10-19 11:41:54 +02:00
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
2023-10-19 22:48:57 +02:00
<?php echo template::checkbox('coursesConfigShowAuthor', true, 'Signature de l\'auteur', [
2023-10-22 12:31:54 +02:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'author']),
'help' => 'Classe CSS de l\'élément en ligne : workshopTitle'
2023-10-19 11:41:54 +02:00
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('coursesConfigShowDescription', true, 'Description', [
2023-10-22 12:31:54 +02:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'description']),
'help' => 'Classe CSS de l\'élément en ligne : workshopDescription'
2023-10-19 11:41:54 +02:00
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('coursesConfigShowAccess', true, 'Modalités d\'ouverture', [
2023-10-22 12:31:54 +02:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'access']),
'help' => 'Classes CSS de la division workshopAccessContainer, élément en ligne workshopAccess'
2023-10-19 11:41:54 +02:00
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('coursesConfigShowEnrolment', true, 'Modalités d\'inscription', [
2023-10-22 12:31:54 +02:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'enrolment']),
'help' => 'Classe CSS de l\'élément en ligne : workshopEnrolment'
2023-10-19 11:41:54 +02:00
]); ?>
</div>
</div>
</div>
</div>
2023-10-22 12:31:54 +02:00
<div class="col4">
2023-10-19 11:41:54 +02:00
<div class="block">
<h4>
2023-10-19 22:48:57 +02:00
<?php echo helper::translate('Thème'); ?>
2023-10-19 11:41:54 +02:00
</h4>
<div class="row">
<div class="col12">
<?php echo template::select('coursesConfigLayout', $module::$coursesLayout, [
'label' => 'Présentation en colonnes',
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'layout']),
'help' => 'Chaque cours est présenté dans une colonne'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
2023-10-22 12:31:54 +02:00
<?php echo template::checkbox('coursesConfigTemplate', true, 'Mise en évidence', [
2023-10-19 11:41:54 +02:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'template']),
2023-10-22 17:34:27 +02:00
'help' => 'Template identique à TinyMCE avec une bordure et le titre en évidence. Classe de la division : workshopItemContainer'
2023-10-19 11:41:54 +02:00
]); ?>
</div>
</div>
</div>
</div>
</div>
2023-10-22 12:31:54 +02:00
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Étiquettes : disponibilité du cours'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::text('coursesCaptionAccessOpen', [
'label' => 'Ouvert',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'accessopen'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('coursesCaptionAccessDate', [
'label' => 'Période',
2023-10-22 21:21:06 +02:00
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'accessdate']),
'help' => 'Insérer deux symboles %s pour placer les dates d\'ouverture et de fermeture',
'placeholder' => 'Ouvre le %s et ferme le %s'
2023-10-22 12:31:54 +02:00
]); ?>
</div>
<div class="col4">
<?php echo template::text('coursesCaptionAccessClose', [
'label' => 'Fermé',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'accessclose'])
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<h4>
<?php echo helper::translate('Étiquettes : modalités d\'inscription'); ?>
</h4>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('coursesCaptionGuest', [
'label' => 'Anonyme',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolguest'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('coursesCaptionSelf', [
'label' => 'Membre',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolself'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('coursesCaptionSelfKey', [
'label' => 'Membre avec clé',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolselfkey'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('coursesCaptionUrl', [
'label' => 'Lien vers le cours',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'url']),
'help' => 'Classe CSS de la division : workshopSuscribe'
]); ?>
</div>
<div class="col4">
<?php echo template::text('coursesCaptionUnsuscribe', [
'label' => 'Désinscription',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'unsuscribe']),
'help' => 'Classe CSS de la division : workshopUnsuscribe'
]); ?>
</div>
</div>
</div>
</div>
2023-10-19 11:41:54 +02:00
</div>
2023-10-22 12:31:54 +02:00
2023-10-19 11:41:54 +02:00
<?php echo template::formClose(); ?>
<div class="moduleVersion">Version
<?php echo $module::VERSION; ?>
</div>