1.7.04 Gestion des espaces divisions non fermées

This commit is contained in:
Fred Tempez 2024-03-12 11:49:47 +01:00
parent 65a121cb0a
commit 3502d78632
4 changed files with 110 additions and 109 deletions

View File

@ -1,4 +1,4 @@
# ZwiiCampus 1.7.03 # ZwiiCampus 1.7.04
ZwiiCampus (Learning Management System) est logiciel auteur destiné à mettre en ligne des tutoriels. Il dispose de plusieurs modalités d'ouverture et d'accès des contenus. Basé sur la version 13 du CMS Zwii, la structure logicielle est solide, le framework de Zwii est éprouvé. ZwiiCampus (Learning Management System) est logiciel auteur destiné à mettre en ligne des tutoriels. Il dispose de plusieurs modalités d'ouverture et d'accès des contenus. Basé sur la version 13 du CMS Zwii, la structure logicielle est solide, le framework de Zwii est éprouvé.

View File

@ -51,7 +51,7 @@ class common
const ACCESS_TIMER = 1800; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '1.7.03'; const ZWII_VERSION = '1.7.04';
// URL autoupdate // URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';

View File

@ -106,4 +106,5 @@
</div> </div>
</div> </div>
</div> </div>
<?php echo template::formClose(); ?> </div>
<?php echo template::formClose(); ?>

View File

@ -8,7 +8,6 @@
</div> </div>
</div> </div>
<div class="row textAlignCenter"> <div class="row textAlignCenter">
<?php if ($this->getUser('permission', 'course', 'delete') === true): ?> <?php if ($this->getUser('permission', 'course', 'delete') === true): ?>
<div class="col2 "> <div class="col2 ">
<?php echo template::button('courseManageDelete' . $this->getUrl(2), [ <?php echo template::button('courseManageDelete' . $this->getUrl(2), [
@ -58,111 +57,112 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
</div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4> <h4>
<?php echo helper::translate('Paramètres'); ?> <?php echo helper::translate('Paramètres'); ?>
</h4> </h4>
<div class="row"> <div class="row">
<div class="col7"> <div class="col7">
<?php echo template::text('courseManageShortTitle', [ <?php echo template::text('courseManageShortTitle', [
'label' => 'Titre', 'label' => 'Titre',
'value' => $this->getdata(['course', $this->getUrl(2), 'title']), 'value' => $this->getdata(['course', $this->getUrl(2), 'title']),
'readonly' => true, 'readonly' => true,
]); ?> ]); ?>
</div>
<div class="col5">
<?php echo template::text('courseManageAuthor', [
'label' => 'text',
'value' => $this->signature( $this->getdata(['course', $this->getUrl(2), 'author']) ),
'readonly' => true,
]); ?>
</div>
</div> </div>
<div class="row"> <div class="col5">
<div class="col6"> <?php echo template::text('courseManageAuthor', [
<?php echo template::text('courseManageHomePageId', [ 'label' => 'text',
'label' => 'Page d\'accueil', 'value' => $this->signature($this->getdata(['course', $this->getUrl(2), 'author'])),
'value' => $module::$pagesList[$this->getdata(['course', $this->getUrl(2), 'homePageId'])]['shortTitle'], 'readonly' => true,
'readonly' => true, ]); ?>
]); ?>
</div>
<div class="col6">
<?php echo template::text('courseManageCategorie', [
'label' => 'Catégorie',
'value' => $module::$courseCategories[$this->getdata(['course', $this->getUrl(2), 'category'])],
'readonly' => true,
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::textarea('courseManageDescription', [
'label' => 'Description',
'value' => $this->getdata(['course', $this->getUrl(2), 'description']),
'readonly' => true,
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('courseManageAccess', [
'label' => 'Disponibilité',
'value' =>$module::$courseAccess [$this->getdata(['course', $this->getUrl(2), 'access'])],
'readonly' => 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,
'readonly' => 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,
'readonly' => true,
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('courseManageEnrolment', [
'label' => 'Participation',
'value' => $module::$courseEnrolment[$this->getdata(['course', $this->getUrl(2), 'enrolment'])],
'readonly' => true,
]); ?>
</div>
<div class="col4">
<?php echo template::text('courseManageEnrolmentKey', [
'label' => 'Clé',
'value' => $this->getdata(['course', $this->getUrl(2), 'enrolmentKey']),
'readonly' => 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,
'readonly' => true,
]); ?>
</div>
</div> </div>
</div> </div>
</div> <div class="row">
<div class="col6">
<?php echo template::text('courseManageHomePageId', [
'label' => 'Page d\'accueil',
'value' => $module::$pagesList[$this->getdata(['course', $this->getUrl(2), 'homePageId'])]['shortTitle'],
'readonly' => true,
]); ?>
</div>
<div class="col6">
<?php echo template::text('courseManageCategorie', [
'label' => 'Catégorie',
'value' => $module::$courseCategories[$this->getdata(['course', $this->getUrl(2), 'category'])],
'readonly' => true,
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::textarea('courseManageDescription', [
'label' => 'Description',
'value' => $this->getdata(['course', $this->getUrl(2), 'description']),
'readonly' => true,
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('courseManageAccess', [
'label' => 'Disponibilité',
'value' => $module::$courseAccess[$this->getdata(['course', $this->getUrl(2), 'access'])],
'readonly' => 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,
'readonly' => 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,
'readonly' => true,
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('courseManageEnrolment', [
'label' => 'Participation',
'value' => $module::$courseEnrolment[$this->getdata(['course', $this->getUrl(2), 'enrolment'])],
'readonly' => true,
]); ?>
</div>
<div class="col4">
<?php echo template::text('courseManageEnrolmentKey', [
'label' => 'Clé',
'value' => $this->getdata(['course', $this->getUrl(2), 'enrolmentKey']),
'readonly' => 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,
'readonly' => true,
]); ?>
</div>
</div>
</div>
</div>
</div>