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

190 lines
6.7 KiB
PHP
Raw Permalink 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="col6">
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 class="col6">
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="col6">
2023-10-19 11:41:54 +02:00
<?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 class="col6">
2023-10-19 11:41:54 +02:00
<?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' => 'Classe 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="col6">
2023-10-19 11:41:54 +02:00
<?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 class="col6">
<?php echo template::checkbox('coursesConfigShowUnsuscribe', true, 'Désinscription', [
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'unsuscribe']),
'help' => 'Classe CSS de l\'élément en ligne : workshopUnsuscribe'
]); ?>
</div>
2023-10-19 11:41:54 +02:00
</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']),
2023-11-15 18:06:49 +01:00
'help' => 'Chaque contenu est présenté dans une colonne'
2023-10-19 11:41:54 +02:00
]); ?>
</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>
2023-11-15 18:06:49 +01:00
<?php echo helper::translate('Étiquettes : disponibilité du contenu'); ?>
2023-10-22 12:31:54 +02:00
</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">
2023-11-25 14:36:49 +01:00
<div class="col3">
2023-10-22 12:31:54 +02:00
<?php echo template::text('coursesCaptionGuest', [
'label' => 'Anonyme',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolguest'])
]); ?>
</div>
2023-11-25 14:36:49 +01:00
<div class="col3">
2023-10-22 12:31:54 +02:00
<?php echo template::text('coursesCaptionSelf', [
'label' => 'Membre',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolself'])
]); ?>
</div>
2023-11-25 14:36:49 +01:00
<div class="col3">
2023-10-22 12:31:54 +02:00
<?php echo template::text('coursesCaptionSelfKey', [
'label' => 'Membre avec clé',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolselfkey'])
]); ?>
</div>
2023-11-25 14:36:49 +01:00
<div class="col3">
<?php echo template::text('coursesCaptionMandatory', [
'label' => 'Imposée',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolMandatory'])
]); ?>
</div>
2023-10-22 12:31:54 +02:00
</div>
<div class="row">
<div class="col4">
<?php echo template::text('coursesCaptionUrl', [
2023-11-15 18:06:49 +01:00
'label' => 'Lien vers le contenu',
2023-10-22 12:31:54 +02:00
'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 class="row">
<div class="col4">
<?php echo template::text('coursesCaptionEnrolmentLimit', [
'label' => 'Limitation date inscription',
'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'enrolmentLimit']),
'help' => 'Classe CSS de la division : workshopEnrolmentLimit'
]); ?>
</div>
</div>
2023-10-22 12:31:54 +02:00
</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>