2023-09-05 15:21:01 +02:00
|
|
|
<?php echo template::formOpen('profilEditForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col1">
|
|
|
|
<?php echo template::button('profilEditBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'user/profil',
|
|
|
|
'value' => template::ico('left')
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset9">
|
|
|
|
<?php echo template::submit('profilEditSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Paramètres du profil'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('profilEditName', [
|
|
|
|
'label' => 'Nom du profil',
|
|
|
|
'value' => helper::translate($this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'name']))
|
|
|
|
]); ?>
|
2024-02-13 12:51:17 +01:00
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('profilEditProfil', $module::$profils, [
|
2023-09-05 15:21:01 +02:00
|
|
|
'label' => 'Hiérarchie',
|
|
|
|
'help' => 'Rang 9 > rang 1. Le profil de rang 1 n\'est pas modifiable.',
|
|
|
|
'selected' => $this->getUrl(3),
|
|
|
|
'disabled' => $this->getUrl(3) === '1',
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::text('profilEditDisplayGroup', [
|
|
|
|
'label' => 'Groupe associé',
|
|
|
|
'value' => helper::translate(self::$groups[$this->getUrl(2)]),
|
|
|
|
'disabled' => true
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::hidden('profilEditGroup', [
|
|
|
|
'value' => $this->getUrl(2),
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::hidden('profilEditOldProfil', [
|
|
|
|
'value' => $this->getUrl(3),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::textarea('profilEditComment', [
|
|
|
|
'label' => 'Commentaire',
|
|
|
|
'value' => helper::translate($this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'comment']))
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Compte de l\'utilisateur'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditUserEdit', true, 'Éditer', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'user', 'edit'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-16 11:12:25 +01:00
|
|
|
|
2023-09-05 15:21:01 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Gestionnaire de fichiers'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
2024-02-27 18:09:04 +01:00
|
|
|
<div class="col2">
|
2023-09-05 15:21:01 +02:00
|
|
|
<?php echo template::checkbox('profilEditFileManager', true, 'Autorisé', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'filemanager'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-02-27 18:09:04 +01:00
|
|
|
<div class="col5">
|
2024-03-05 18:46:46 +01:00
|
|
|
<?php echo template::select('profilEditCoursePath', $module::$sharePath, [
|
2024-02-27 18:09:04 +01:00
|
|
|
'label' => 'Dossier depuis un espace',
|
|
|
|
'class' => 'filemanager',
|
2024-02-29 15:37:29 +01:00
|
|
|
/*
|
2024-09-04 09:19:17 +02:00
|
|
|
* 'none' interdit l'accès au gestionnaire de fichier
|
|
|
|
* Ce n'est pas un chemin donc on n'ajoute pas le .
|
|
|
|
*/
|
2024-03-03 22:26:10 +01:00
|
|
|
'selected' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'coursePath'])
|
2024-02-27 18:09:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col5">
|
|
|
|
<?php echo template::select('profilEditHomePath', $module::$sharePath, [
|
|
|
|
'label' => 'Dossier depuis l\'accueil',
|
2023-09-05 15:21:01 +02:00
|
|
|
'class' => 'filemanager',
|
2024-02-29 15:37:29 +01:00
|
|
|
// 'none' interdit l'accès au gestionnaire de fichier au niveau de l'accueil
|
2024-03-03 22:26:10 +01:00
|
|
|
'selected' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'homePath'])
|
2023-09-05 15:21:01 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Permissions sur les dossiers'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::checkbox('profilEditFolderCreate', true, 'Ajouter', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'create']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::checkbox('profilEditFolderDelete', true, 'Effacer', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'delete'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::checkbox('profilEditFolderRename', true, 'Renommer', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'rename'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::checkbox('profilEditFolderCopycut', true, 'Presse papier', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'copycut'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditFolderChmod', true, 'Droits sur les dossiers', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'chmod'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Permissions sur les fichiers'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditDownload', true, 'Télécharger', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'download'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditEdit', true, 'Éditer', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'edit'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCreate', true, 'Ajouter', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'create'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditRename', true, 'Renommer', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'rename'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditUpload', true, 'Téléverser', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'upload'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditDelete', true, 'Effacer', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'delete'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditPreview', true, 'Prévisualiser', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'preview'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditDuplicate', true, 'Dupliquer', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'duplicate'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditExtract', true, 'Extraire', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'extract'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCopycut', true, 'Presse papier', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'copycut'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditChmod', true, 'Droits sur les fichiers', [
|
|
|
|
'class' => 'filemanager',
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'chmod'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-13 09:00:51 +01:00
|
|
|
<?php if ($this->getUrl(2) >= self::GROUP_EDITOR): ?>
|
2024-02-16 11:06:54 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Gestion des espaces'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('profilEditCourseTutor', true, 'Gère les espaces comme auteur et participant', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'tutor'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseEdit', true, 'Éditer un espace', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'edit']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseBackup', true, 'Sauvegarder un espace', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'backup']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseRestore', true, 'Restaurer un espace', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'restore']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2024-09-04 09:19:17 +02:00
|
|
|
<div class="col3">
|
2024-02-16 11:06:54 +01:00
|
|
|
<?php echo template::checkbox('profilEditCourseUsers', true, 'Gérer les participants', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'users']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-09-04 09:19:17 +02:00
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseExport', true, 'Exporter un espace en html', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'export']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-02-16 11:06:54 +01:00
|
|
|
</div>
|
|
|
|
<div id="courseContainer">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseUserHistory', true, 'Voir historique d\'un participant', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistory']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
2024-10-21 21:20:09 +02:00
|
|
|
<?php echo template::checkbox('profilEditCourseuserReportExport', true, 'Exporter historique d\'un participant', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userReportExport']),
|
2024-02-16 11:06:54 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseUserDelete', true, 'Désinscrire un participant', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userDelete']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseUsersAdd', true, 'Inscrire en masse', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'usersAdd']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseUsersDelete', true, 'Désinscrire en masse', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'usersDelete']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-04-17 10:33:00 +02:00
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::checkbox('profilEditCourseReset', true, 'Réinitialiser un espace', [
|
|
|
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'reset']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2024-02-16 11:06:54 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-13 09:00:51 +01:00
|
|
|
<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; ?>
|
2023-09-05 15:21:01 +02:00
|
|
|
<?php echo template::formClose(); ?>
|