blog profil

This commit is contained in:
Fred Tempez 2023-05-31 19:30:39 +02:00
parent ac2b29628d
commit 02a1870642
4 changed files with 157 additions and 54 deletions

View File

@ -17,6 +17,6 @@
* admin.css
*/
#containerPage {
.containerPage {
display: none;
}

View File

@ -28,12 +28,11 @@ $(document).ready(function () {
});
// Désactive la gestion des pages pour les membres
$('#profilAddGroup').change(function() {
console.log($(this).val());
$('#profilAddGroup').change(function() {;
if ($(this).val() === '1') {
$('#containerPage').slideUp();
$('.containerPage').slideUp();
} else {
$('#containerPage').slideDown();
$('.containerPage').slideDown();
}
});

View File

@ -44,7 +44,7 @@
</div>
</div>
</div>
<div class="row" id="containerPage">
<div class="row containerPage">
<div class="col12">
<div class="block">
<h4>
@ -52,27 +52,70 @@
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddPageAdd', true, 'Ajouter'); ?>
<?php echo template::checkbox('profilAddPageAdd', false, 'Ajouter'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageEdit', true, 'Editer'); ?>
<?php echo template::checkbox('profilAddPageEdit', false, 'Editer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageDelete', true, 'Effacer'); ?>
<?php echo template::checkbox('profilAddPageDelete', false, 'Effacer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageDuplicate', true, 'Dupliquer'); ?>
<?php echo template::checkbox('profilAddPageDuplicate', false, 'Dupliquer'); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddPageModule', true, 'Module'); ?>
<?php echo template::checkbox('profilAddPageModule', false, 'Module'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagecssEditor', true, 'Editeur CSS'); ?>
<?php echo template::checkbox('profilAddPagecssEditor', false, 'Editeur CSS'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagejsEditor', true, 'Editeur JS'); ?>
<?php echo template::checkbox('profilAddPagejsEditor', false, 'Editeur JS'); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row containerPage">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Blog'); ?>
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddBlogAdd', false, 'Ajouter'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddBlogEdit', false, 'Edit'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddBlogDelete', false, 'Supprimer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddBlogConfig', false, 'Configuration'); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddBlogOption', false, 'Option'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddBlogComment', false, 'Commentaire'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddBlogCommentApprouve', false, 'Approuver commentaire'); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilAddBlogCommentDelete', false, 'Supprimer commentaire'); ?>
</div>
<div class="col6">
<?php echo template::checkbox('profilAddBlogCommentDeleteAll', false, 'Nettoyer commentaires'); ?>
</div>
</div>
</div>
@ -86,7 +129,7 @@
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddFileManager', true, 'Autorisé'); ?>
<?php echo template::checkbox('profilAddFileManager', false, 'Autorisé'); ?>
</div>
<div class="col6">
<?php echo template::select('profilAddPath', $module::$sharePath, [
@ -103,19 +146,19 @@
</h4>
<div class="row">
<div class="col2">
<?php echo template::checkbox('profilAddFolderCreate', true, 'Création', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddFolderCreate', false, 'Création', ['class' => 'filemanager']); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilAddFolderDelete', true, 'Effacement', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddFolderDelete', false, 'Effacement', ['class' => 'filemanager']); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilAddFolderRename', true, 'Nommage', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddFolderRename', false, 'Nommage', ['class' => 'filemanager']); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilAddFolderCopycut', true, 'Copié collé', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddFolderCopycut', false, 'Copié collé', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddFolderChmod', true, 'Droits sur les dossiers', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddFolderChmod', false, 'Droits sur les dossiers', ['class' => 'filemanager']); ?>
</div>
</div>
</div>
@ -129,42 +172,42 @@
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddDownload', true, 'Téléchargement', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddDownload', false, 'Téléchargement', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddEdit', true, 'Edition', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddEdit', false, 'Edition', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddCreate', true, 'Création', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddCreate', false, 'Création', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddRename', true, 'Nommage', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddRename', false, 'Nommage', ['class' => 'filemanager']); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddUpload', true, 'Téléversement', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddUpload', false, 'Téléversement', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddDelete', true, 'Effacement', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddDelete', false, 'Effacement', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPreview', true, 'Prévisualisation', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddPreview', false, 'Prévisualisation', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddDuplicate', true, 'Duplication', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddDuplicate', false, 'Duplication', ['class' => 'filemanager']); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddExtract', true, 'Extraction', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddExtract', false, 'Extraction', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddCopycut', true, 'Copié collé', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddCopycut', false, 'Copié collé', ['class' => 'filemanager']); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddChmod', true, 'Droits sur les fichiers', ['class' => 'filemanager']); ?>
<?php echo template::checkbox('profilAddChmod', false, 'Droits sur les fichiers', ['class' => 'filemanager']); ?>
</div>
</div>
</div>

View File

@ -60,39 +60,39 @@
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditPageAdd', true, 'Ajouter', [
<?php echo template::checkbox('profilEditPageAdd', false, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'add'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageEdit', true, 'Editer', [
<?php echo template::checkbox('profilEditPageEdit', false, 'Editer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'edit'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageDelete', true, 'Effacer', [
<?php echo template::checkbox('profilEditPageDelete', false, 'Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'delete'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageDuplicate', true, 'Dupliquer', [
<?php echo template::checkbox('profilEditPageDuplicate', false, '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', [
<?php echo template::checkbox('profilEditPageModule', false, 'Module', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'module'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagecssEditor', true, 'Editeur CSS', [
<?php echo template::checkbox('profilEditPagecssEditor', false, 'Editeur CSS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'cssEditor'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagejsEditor', true, 'Editeur JS', [
<?php echo template::checkbox('profilEditPagejsEditor', false, 'Editeur JS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'jsEditor'])
]); ?>
</div>
@ -100,6 +100,67 @@
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Blog'); ?>
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditBlogAdd', false, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'add'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditBlogEdit', false, 'Edit', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'edit'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditBlogDelete', false, 'Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'delete'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditBlogConfig', false, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'config'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditBlogOption', false, 'Option', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'option'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditBlogComment', false, 'Commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'comment'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditBlogCommentApprouve', false, 'Approuver commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentApprove'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilEditBlogCommentDelete', false, 'Supprimer commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDelete'])
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('profilEditBlogCommentDeleteAll', false, 'Nettoyer commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDeleteAll'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="row">
<div class="col12">
@ -109,7 +170,7 @@
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditFileManager', true, 'Autorisé', [
<?php echo template::checkbox('profilEditFileManager', false, 'Autorisé', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'filemanager'])
]); ?>
</div>
@ -129,31 +190,31 @@
</h4>
<div class="row">
<div class="col2">
<?php echo template::checkbox('profilEditFolderCreate', true, 'Création', [
<?php echo template::checkbox('profilEditFolderCreate', false, 'Création', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'create']),
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFolderDelete', true, 'Effacement', [
<?php echo template::checkbox('profilEditFolderDelete', false, 'Effacement', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'delete'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFolderRename', true, 'Nommage', [
<?php echo template::checkbox('profilEditFolderRename', false, 'Nommage', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'rename'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFolderCopycut', true, 'Copié collé', [
<?php echo template::checkbox('profilEditFolderCopycut', false, 'Copié collé', [
'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', [
<?php echo template::checkbox('profilEditFolderChmod', false, 'Droits sur les dossiers', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'chmod'])
]); ?>
@ -170,25 +231,25 @@
</h4>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditDownload', true, 'Téléchargement', [
<?php echo template::checkbox('profilEditDownload', false, 'Téléchargement', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'download'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditEdit', true, 'Edition', [
<?php echo template::checkbox('profilEditEdit', false, 'Edition', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'edit'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditCreate', true, 'Création', [
<?php echo template::checkbox('profilEditCreate', false, 'Création', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'create'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditRename', true, 'Nommage', [
<?php echo template::checkbox('profilEditRename', false, 'Nommage', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'rename'])
]); ?>
@ -196,27 +257,27 @@
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditUpload', true, 'Téléversement', [
<?php echo template::checkbox('profilEditUpload', false, 'Téléversement', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'upload'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditDelete', true, 'Effacement', [
<?php echo template::checkbox('profilEditDelete', false, 'Effacement', [
'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évisualisation', [
<?php echo template::checkbox('profilEditPreview', false, 'Prévisualisation', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'preview'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditDuplicate', true, 'Duplication', [
<?php echo template::checkbox('profilEditDuplicate', false, 'Duplication', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'duplicate'])
]); ?>
@ -224,19 +285,19 @@
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditExtract', true, 'Extraction', [
<?php echo template::checkbox('profilEditExtract', false, 'Extraction', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'extract'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditCopycut', true, 'Copié collé', [
<?php echo template::checkbox('profilEditCopycut', false, 'Copié collé', [
'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', [
<?php echo template::checkbox('profilEditChmod', false, 'Droits sur les fichiers', [
'class' => 'filemanager',
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'chmod'])
]); ?>