Check profil edit save and add

This commit is contained in:
Fred Tempez 2023-06-18 14:52:14 +02:00
parent fb2624bf7a
commit 0b06e12ef9
3 changed files with 8 additions and 8 deletions

View File

@ -574,7 +574,7 @@ class user extends common
'page' => [
'add' => $this->getInput('profilEditPageAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilEditPageEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditPageElete', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditPageDelete', helper::FILTER_BOOLEAN),
'duplicate' => $this->getInput('profilEditPageDuplicate', helper::FILTER_BOOLEAN),
'module' => $this->getInput('profilEditPageModule', helper::FILTER_BOOLEAN),
'cssEditor' => $this->getInput('profilEditPagecssEditor', helper::FILTER_BOOLEAN),
@ -583,18 +583,18 @@ class user extends common
'blog' => [
'add' => $this->getInput('profilEditBlogAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilEditBlogEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditBlogDElete', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditBlogDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditBlogConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilEditBlogOption', helper::FILTER_BOOLEAN),
'comment' => $this->getInput('profilEditBlogComment', helper::FILTER_BOOLEAN),
'commentApprouve' => $this->getInput('profilEditBlogCommentApprouve', helper::FILTER_BOOLEAN),
'commentApprove' => $this->getInput('profilEditBlogCommentApprove', helper::FILTER_BOOLEAN),
'commentDelete' => $this->getInput('profilEditBlogCommentDelete', helper::FILTER_BOOLEAN),
'commentDeleteAll' => $this->getInput('profilEditBlogCommentDeleteAll', helper::FILTER_BOOLEAN),
],
'news' => [
'add' => $this->getInput('profilEditNewsAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilEditNewsEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditNewsDElete', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditNewsDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditNewsConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilEditNewsOption', helper::FILTER_BOOLEAN),
],
@ -701,7 +701,7 @@ class user extends common
'config' => $this->getInput('profilAddBlogConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilAddBlogOption', helper::FILTER_BOOLEAN),
'comment' => $this->getInput('profilAddBlogComment', helper::FILTER_BOOLEAN),
'commentApprouve' => $this->getInput('profilAddBlogCommentApprouve', helper::FILTER_BOOLEAN),
'commentApprove' => $this->getInput('profilAddBlogCommentApprove', helper::FILTER_BOOLEAN),
'commentDelete' => $this->getInput('profilAddBlogCommentDelete', helper::FILTER_BOOLEAN),
'commentDeleteAll' => $this->getInput('profilAddBlogCommentDeleteAll', helper::FILTER_BOOLEAN),
],

View File

@ -108,7 +108,7 @@
<?php echo template::checkbox('profilAddBlogComment', true, 'Commentaire'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddBlogCommentApprouve', true, 'Approuver commentaire'); ?>
<?php echo template::checkbox('profilAddBlogCommentApprove', true, 'Approuver commentaire'); ?>
</div>
</div>
<div class="row">

View File

@ -136,12 +136,12 @@
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditBlogComment', true, 'Commentaire', [
<?php echo template::checkbox('profilEditBlogComment', true, 'Gérer commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'comment'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditBlogCommentApprouve', true, 'Approuver commentaire', [
<?php echo template::checkbox('profilEditBlogCommentApprove', true, 'Approuver commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentApprove'])
]); ?>
</div>