Profils pour les espaces

This commit is contained in:
Fred Tempez 2024-02-13 09:00:51 +01:00
parent 9bf135337e
commit 656d6e557e
4 changed files with 100 additions and 100 deletions

View File

@ -1,4 +1,4 @@
# ZwiiCampus 1.5.02
# ZwiiCampus 1.6.00
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;
// Numéro de version
const ZWII_VERSION = '1.5.02';
const ZWII_VERSION = '1.6.00';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';

View File

@ -44,47 +44,6 @@
</div>
</div>
</div>
<div class="row containerPage">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Permissions sur les pages'); ?>
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddPageAdd', true, 'Ajouter'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageEdit', true, 'Éditer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageDelete', true, 'Effacer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageDuplicate', true, 'Dupliquer'); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddPageModule', true, 'Module'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagecssEditor', true, 'Éditeur CSS'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagejsEditor', true, 'Éditeur JS'); ?>
</div>
</div>
</div>
</div>
</div>
<div class="containerModule">
<?php foreach (user::$listModules as $moduleId): ?>
<?php if (file_exists('module/' . $moduleId . '/profil/view/add.inc.php')) {
include('module/' . $moduleId . '/profil/view/add.inc.php');
} ?>
<?php endforeach; ?>
</div>
<div class="row">
<div class="col12">
<div class="block">
@ -195,4 +154,45 @@
</div>
</div>
</div>
<div class="row containerPage">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Permissions sur les pages'); ?>
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddPageAdd', true, 'Ajouter'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageEdit', true, 'Éditer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageDelete', true, 'Effacer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageDuplicate', true, 'Dupliquer'); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddPageModule', true, 'Module'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagecssEditor', true, 'Éditeur CSS'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagejsEditor', true, 'Éditeur JS'); ?>
</div>
</div>
</div>
</div>
</div>
<div class="containerModule">
<?php foreach (user::$listModules as $moduleId): ?>
<?php if (file_exists('module/' . $moduleId . '/profil/view/add.inc.php')) {
include('module/' . $moduleId . '/profil/view/add.inc.php');
} ?>
<?php endforeach; ?>
</div>
<?php echo template::formClose(); ?>

View File

@ -63,63 +63,6 @@
</div>
</div>
</div>
<?php if ($this->getUrl(2) >= self::GROUP_EDITOR): ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Permissions sur les pages'); ?>
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditPageAdd', true, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'add'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'edit'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageDelete', true, 'Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'delete'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageDuplicate', true, 'Dupliquer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'duplicate'])
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditPageModule', true, 'Module', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'module'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagecssEditor', true, 'Éditeur CSS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'cssEditor'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagejsEditor', true, 'Éditeur JS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'jsEditor'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="containerModule">
<?php foreach (user::$listModules as $moduleId): ?>
<?php if (file_exists('module/' . $moduleId . '/profil/view/edit.inc.php')) {
include('module/' . $moduleId . '/profil/view/edit.inc.php');
} ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<div class="row">
<div class="col12">
<div class="block">
@ -284,4 +227,61 @@
</div>
</div>
</div>
<?php if ($this->getUrl(2) >= self::GROUP_EDITOR): ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Permissions sur les pages'); ?>
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditPageAdd', true, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'add'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'edit'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageDelete', true, 'Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'delete'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageDuplicate', true, 'Dupliquer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'duplicate'])
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditPageModule', true, 'Module', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'module'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagecssEditor', true, 'Éditeur CSS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'cssEditor'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagejsEditor', true, 'Éditeur JS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'jsEditor'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="containerModule">
<?php foreach (user::$listModules as $moduleId): ?>
<?php if (file_exists('module/' . $moduleId . '/profil/view/edit.inc.php')) {
include('module/' . $moduleId . '/profil/view/edit.inc.php');
} ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php echo template::formClose(); ?>