forked from ZwiiCMS-Team/ZwiiCMS
pas de gestion des page spour les membres
This commit is contained in:
parent
663dfd12ec
commit
81d8eb54d0
@ -531,7 +531,7 @@ class user extends common
|
||||
$this->setData([
|
||||
'profil',
|
||||
$this->getInput('profilEditGroup'),
|
||||
$this->getUrl(3),
|
||||
$this->getInput('profilEditProfil'),
|
||||
[
|
||||
'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true),
|
||||
'readonly' => false,
|
||||
|
@ -15,4 +15,8 @@
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
||||
*/
|
||||
|
||||
#containerPage {
|
||||
display: none;
|
||||
}
|
@ -26,4 +26,15 @@ $(document).ready(function () {
|
||||
$(".filemanager").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
|
||||
// Désactive la gestion des pages pour les membres
|
||||
$('#profilAddGroup').change(function() {
|
||||
console.log($(this).val());
|
||||
if ($(this).val() === '1') {
|
||||
$('#containerPage').slideUp();
|
||||
} else {
|
||||
$('#containerPage').slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -44,7 +44,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row" id="containerPage">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
|
@ -27,11 +27,17 @@
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col12">
|
||||
<?php echo template::text('profilEditGroup', [
|
||||
<?php echo template::text('profilEditDisplayGroup', [
|
||||
'label' => 'Groupe',
|
||||
'value' => self::$groups[$this->getUrl(2)],
|
||||
'disabled' => true
|
||||
]); ?>
|
||||
<?php echo template::hidden('profilEditGroup', [
|
||||
'value' => $this->getUrl(2),
|
||||
]); ?>
|
||||
<?php echo template::hidden('profilEditProfil', [
|
||||
'value' => $this->getUrl(3),
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -45,55 +51,55 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($this->getUrl(2) >= 2): ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo helper::translate('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'])
|
||||
]); ?>
|
||||
<?php if ($this->getUrl(2) >= self::GROUP_MODERATOR): ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo helper::translate('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, 'Editer', [
|
||||
'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="col3">
|
||||
<?php echo template::checkbox('profilEditPageEdit', true, 'Editer', [
|
||||
'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, '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', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'jsEditor'])
|
||||
]); ?>
|
||||
<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, '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', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'jsEditor'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
|
Loading…
Reference in New Issue
Block a user