This commit is contained in:
Fred Tempez 2023-07-24 18:01:11 +02:00
parent 1387bfae25
commit ccec25d46b
6 changed files with 79 additions and 29 deletions

View File

@ -32,7 +32,7 @@
<?php echo template::checkbox('profilAddBlogCommentDelete', true, 'Supprimer le commentaire'); ?> <?php echo template::checkbox('profilAddBlogCommentDelete', true, 'Supprimer le commentaire'); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::checkbox('profilAddBlogCommentDeleteAll', true, 'Supprimer tout les commentaires'); ?> <?php echo template::checkbox('profilAddBlogCommentDeleteAll', true, 'Supprimer tous les commentaires'); ?>
</div> </div>
</div> </div>
</div> </div>

View File

@ -45,7 +45,7 @@
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::checkbox('profilEditBlogCommentDeleteAll', true, 'Supprimer tout les commentaires', [ <?php echo template::checkbox('profilEditBlogCommentDeleteAll', true, 'Supprimer tous les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDeleteAll']) 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDeleteAll'])
]); ?> ]); ?>
</div> </div>

View File

@ -14,5 +14,12 @@
$this->getInput('profilAddDownloadComment', helper::FILTER_BOOLEAN) || $this->getInput('profilAddDownloadComment', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddDownloadCommentApprove', helper::FILTER_BOOLEAN) || $this->getInput('profilAddDownloadCommentApprove', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddDownloadCommentDelete', helper::FILTER_BOOLEAN) || $this->getInput('profilAddDownloadCommentDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddDownloadCommentDeleteAll', helper::FILTER_BOOLEAN) $this->getInput('profilAddDownloadCommentDeleteAll', helper::FILTER_BOOLEAN),
'categoryManage' => $this->getInput('profilAddDownloadCategories', helper::FILTER_BOOLEAN),
'categoryEdit' => $this->getInput('profilAddDownloadCategoryEdit', helper::FILTER_BOOLEAN),
'categoryDelete' => $this->getInput('profilAddDownloadCategoryDelete', helper::FILTER_BOOLEAN),
'deleteAllStats' => $this->getInput('profilAddDownloadCommentDeleteAllStats', helper::FILTER_BOOLEAN),
]; ];

View File

@ -1,18 +1,25 @@
<?php $moduleData['download'] = [ <?php $moduleData['download'] = [
'add' => $this->getInput('profilEditDownloadAdd', helper::FILTER_BOOLEAN), 'add' => $this->getInput('profilEditDownloadEdit', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilEditDownloadEdit', helper::FILTER_BOOLEAN), 'edit' => $this->getInput('profilEditDownloadEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditDownloadDelete', helper::FILTER_BOOLEAN), 'delete' => $this->getInput('profilEditDownloadDelete', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilEditDownloadOption', helper::FILTER_BOOLEAN), 'option' => $this->getInput('profilEditDownloadOption', helper::FILTER_BOOLEAN),
'comment' => $this->getInput('profilEditDownloadComment', helper::FILTER_BOOLEAN), 'comment' => $this->getInput('profilEditDownloadComment', helper::FILTER_BOOLEAN),
'commentApprove' => $this->getInput('profilEditDownloadCommentApprove', helper::FILTER_BOOLEAN), 'commentApprove' => $this->getInput('profilEditDownloadCommentApprove', helper::FILTER_BOOLEAN),
'commentDelete' => $this->getInput('profilEditDownloadCommentDelete', helper::FILTER_BOOLEAN), 'commentDelete' => $this->getInput('profilEditDownloadCommentDelete', helper::FILTER_BOOLEAN),
'commentDeleteAll' => $this->getInput('profilEditDownloadCommentDeleteAll', helper::FILTER_BOOLEAN), 'commentDeleteAll' => $this->getInput('profilEditDownloadCommentDeleteAll', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditDownloadAdd', helper::FILTER_BOOLEAN) || 'config' => $this->getInput('profilEditDownloadEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditDownloadEdit', helper::FILTER_BOOLEAN) || $this->getInput('profilEditDownloadEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditDownloadDelete', helper::FILTER_BOOLEAN) || $this->getInput('profilEditDownloadDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditDownloadOption', helper::FILTER_BOOLEAN) || $this->getInput('profilEditDownloadOption', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditDownloadComment', helper::FILTER_BOOLEAN) || $this->getInput('profilEditDownloadComment', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditDownloadCommentApprove', helper::FILTER_BOOLEAN) || $this->getInput('profilEditDownloadCommentApprove', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditDownloadCommentDelete', helper::FILTER_BOOLEAN) || $this->getInput('profilEditDownloadCommentDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditDownloadCommentDeleteAll', helper::FILTER_BOOLEAN) $this->getInput('profilEditDownloadCommentDeleteAll', helper::FILTER_BOOLEAN),
'categoryManage' => $this->getInput('profilEditDownloadCategories', helper::FILTER_BOOLEAN),
'categoryEdit' => $this->getInput('profilEditDownloadCategoryEdit', helper::FILTER_BOOLEAN),
'categoryDelete' => $this->getInput('profilEditDownloadCategoryDelete', helper::FILTER_BOOLEAN),
'deleteAllStats' => $this->getInput('profilEditDownloadCommentDeleteAllStats', helper::FILTER_BOOLEAN),
]; ];

View File

@ -27,11 +27,25 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6" s> <div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDelete', true, 'Supprimer le commentaire'); ?> <?php echo template::checkbox('profilAddDownloadCategories', true, 'Catégories'); ?>
</div> </div>
<div class="col6"> <div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAll', true, 'Supprimer tout les commentaires'); ?> <?php echo template::checkbox('profilAddDownloadCategoryEdit', true, 'Editer une catégorie'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCategoryDelete', true, 'Effacer une catégorie'); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDelete', true, 'Effacer le commentaire'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAll', true, 'Effacer tous les commentaires'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAllStats', true, 'Effacer toutes les statistiques'); ?>
</div> </div>
</div> </div>
</div> </div>

View File

@ -39,14 +39,36 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col4">
<?php echo template::checkbox('profilEditDownloadCommentDelete', true, 'Supprimer le commentaire', [ <?php echo template::checkbox('profilAddDownloadCategories', true, 'Catégories', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'commentDelete']) 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'categoryManage'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col4">
<?php echo template::checkbox('profilEditDownloadCommentDeleteAll', true, 'Supprimer tout les commentaires', [ <?php echo template::checkbox('profilAddDownloadCategoryEdit', true, 'Editer une catégorie', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'commentDeleteAll']) 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'categoryEdit'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCategoryDelete', true, 'Effacer une catégorie',[
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'categoryDelete'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDelete', true, 'Effacer le commentaire',[
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'commentDelete'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAll', true, 'Effacer tous les commentaires',[
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'comment', 'deleteAll'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAllStats', true, 'Effacer toutes les statistiques',[
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'deleteAllStats'])
]); ?> ]); ?>
</div> </div>
</div> </div>