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([
|
$this->setData([
|
||||||
'profil',
|
'profil',
|
||||||
$this->getInput('profilEditGroup'),
|
$this->getInput('profilEditGroup'),
|
||||||
$this->getUrl(3),
|
$this->getInput('profilEditProfil'),
|
||||||
[
|
[
|
||||||
'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true),
|
'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true),
|
||||||
'readonly' => false,
|
'readonly' => false,
|
||||||
|
@ -16,3 +16,7 @@
|
|||||||
/** NE PAS EFFACER
|
/** NE PAS EFFACER
|
||||||
* admin.css
|
* admin.css
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#containerPage {
|
||||||
|
display: none;
|
||||||
|
}
|
@ -26,4 +26,15 @@ $(document).ready(function () {
|
|||||||
$(".filemanager").prop("disabled", false);
|
$(".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>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row" id="containerPage">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>
|
<h4>
|
||||||
|
@ -27,11 +27,17 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<?php echo template::text('profilEditGroup', [
|
<?php echo template::text('profilEditDisplayGroup', [
|
||||||
'label' => 'Groupe',
|
'label' => 'Groupe',
|
||||||
'value' => self::$groups[$this->getUrl(2)],
|
'value' => self::$groups[$this->getUrl(2)],
|
||||||
'disabled' => true
|
'disabled' => true
|
||||||
]); ?>
|
]); ?>
|
||||||
|
<?php echo template::hidden('profilEditGroup', [
|
||||||
|
'value' => $this->getUrl(2),
|
||||||
|
]); ?>
|
||||||
|
<?php echo template::hidden('profilEditProfil', [
|
||||||
|
'value' => $this->getUrl(3),
|
||||||
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -45,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if($this->getUrl(2) >= 2): ?>
|
<?php if ($this->getUrl(2) >= self::GROUP_MODERATOR): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user