Filtrage page depuis moderateur
Groupe fixe en édition
This commit is contained in:
parent
9c44759f96
commit
663dfd12ec
@ -527,18 +527,11 @@ class user extends common
|
||||
|
||||
// Soumission du formulaire
|
||||
if ($this->isPost()) {
|
||||
$oldGroup = $this->getUrl(2);
|
||||
$group = $this->getInput('profilEditGroup');
|
||||
$profil = $this->getUrl(3);
|
||||
// Changement de groupe, effacer le profil de l'ancien groupe et incrément le profil
|
||||
if ($oldGroup !== $group) {
|
||||
$this->deleteData(['profil', $oldGroup, $profil]);
|
||||
$profil = helper::increment($profil, $this->getData(['profil', $group]));
|
||||
}
|
||||
|
||||
$this->setData([
|
||||
'profil',
|
||||
$group,
|
||||
$profil,
|
||||
$this->getInput('profilEditGroup'),
|
||||
$this->getUrl(3),
|
||||
[
|
||||
'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true),
|
||||
'readonly' => false,
|
||||
|
@ -27,9 +27,10 @@
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col12">
|
||||
<?php echo template::select('profilEditGroup', $module::$groupProfils, [
|
||||
<?php echo template::text('profilEditGroup', [
|
||||
'label' => 'Groupe',
|
||||
'selected' => $this->getUrl(2)
|
||||
'value' => self::$groups[$this->getUrl(2)],
|
||||
'disabled' => true
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -44,7 +45,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if($this->getUrl(2) >= 2): ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
@ -93,7 +94,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
|
Loading…
Reference in New Issue
Block a user