news profil
This commit is contained in:
parent
7aa6625e08
commit
cca7530631
@ -588,9 +588,16 @@ class user extends common
|
||||
'option' => $this->getInput('profilEditBlogOption', helper::FILTER_BOOLEAN),
|
||||
'comment' => $this->getInput('profilEditBlogComment', helper::FILTER_BOOLEAN),
|
||||
'commentApprouve' => $this->getInput('profilEditBlogCommentApprouve', helper::FILTER_BOOLEAN),
|
||||
'commentdelete' => $this->getInput('profilEditBlogCommentDelete', 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),
|
||||
'config' => $this->getInput('profilEditNewsConfig', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilEditNewsOption', helper::FILTER_BOOLEAN),
|
||||
],
|
||||
]
|
||||
]);
|
||||
|
||||
@ -673,9 +680,16 @@ class user extends common
|
||||
'option' => $this->getInput('profilAddBlogOption', helper::FILTER_BOOLEAN),
|
||||
'comment' => $this->getInput('profilAddBlogComment', helper::FILTER_BOOLEAN),
|
||||
'commentApprouve' => $this->getInput('profilAddBlogCommentApprouve', helper::FILTER_BOOLEAN),
|
||||
'commentdelete' => $this->getInput('profilAddBlogCommentDelete', helper::FILTER_BOOLEAN),
|
||||
'commentDelete' => $this->getInput('profilAddBlogCommentDelete', helper::FILTER_BOOLEAN),
|
||||
'commentDeleteAll' => $this->getInput('profilAddBlogCommentDeleteAll', helper::FILTER_BOOLEAN),
|
||||
],
|
||||
'news' => [
|
||||
'add' => $this->getInput('profilAddNewsAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilAddNewsEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddNewsDElete', helper::FILTER_BOOLEAN),
|
||||
'config' => $this->getInput('profilAddNewsConfig', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilAddNewsOption', helper::FILTER_BOOLEAN),
|
||||
],
|
||||
]
|
||||
]);
|
||||
// Valeurs en sortie
|
||||
|
@ -36,4 +36,12 @@ $(document).ready(function () {
|
||||
}
|
||||
});
|
||||
|
||||
$("#profilAddPageEdit").change(function () {
|
||||
if (!$(this).prop("checked")) {
|
||||
$(".containerModule").prop("disabled", true);
|
||||
} else {
|
||||
$(".containerModule").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -78,44 +78,75 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row containerModule">
|
||||
<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 class="containerModule">
|
||||
<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('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="col3">
|
||||
<?php echo template::checkbox('profilAddBlogEdit', false, 'Edit'); ?>
|
||||
<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="col3">
|
||||
<?php echo template::checkbox('profilAddBlogDelete', false, 'Supprimer'); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('profilAddBlogConfig', false, 'Configuration'); ?>
|
||||
<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>
|
||||
<div class="row">
|
||||
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddBlogOption', false, 'Option'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo helper::translate('News'); ?>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddNewsAdd', false, 'Ajouter'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddNewsEdit', false, 'Edit'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddNewsDelete', false, 'Supprimer'); ?>
|
||||
</div>
|
||||
</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 class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilAddNewsConfig', false, 'Configuration'); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilAddNewsOption', false, 'Option'); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -198,7 +229,7 @@
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('profilAddDuplicate', false, 'Duplication', ['class' => 'filemanager']); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('profilAddExtract', false, 'Extraction', ['class' => 'filemanager']); ?>
|
||||
@ -216,5 +247,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo template::formClose(); ?>
|
@ -26,4 +26,12 @@ $(document).ready(function () {
|
||||
$(".filemanager").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
|
||||
$("#profilEditPageEdit").change(function () {
|
||||
if (!$(this).prop("checked")) {
|
||||
$(".containerModule").prop("disabled", true);
|
||||
} else {
|
||||
$(".containerModule").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -129,7 +129,6 @@
|
||||
</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'])
|
||||
@ -161,6 +160,45 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo helper::translate('News'); ?>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditNewsAdd', false, 'Ajouter', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'add'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditNewsEdit', false, 'Edit', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'edit'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditNewsDelete', false, 'Supprimer', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'delete'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilEditNewsConfig', false, 'Configuration', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'config'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilEditNewsOption', false, 'Option', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'option'])
|
||||
]); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
|
Loading…
Reference in New Issue
Block a user