forked from ZwiiCMS-Team/ZwiiCMS
add Okay
This commit is contained in:
parent
2a87b98d9a
commit
da2c0b6440
@ -94,7 +94,7 @@ class user extends common
|
||||
// Profil
|
||||
$group = $this->getInput('userAddGroup', helper::FILTER_INT, true);
|
||||
$profil = null;
|
||||
if ($group < 1 || $group > 2 ) {
|
||||
if ($group > 1 || $group < 2 ) {
|
||||
$profil = $this->getInput('userAddProfil' . $group, helper::FILTER_INT);
|
||||
}
|
||||
|
||||
|
@ -87,21 +87,19 @@
|
||||
<h4>
|
||||
<?php echo helper::translate('Permissions'); ?>
|
||||
</h4>
|
||||
<div class="row ">
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::select('userAddGroup', self::$groupNews, [
|
||||
'label' => 'Groupe',
|
||||
'selected' => self::GROUP_MEMBER
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<div class="col6">
|
||||
<div class="userAddGroupDescription displayNone" id="userAddGroupDescription<?php echo self::GROUP_MEMBER; ?>">
|
||||
<?php echo template::select('userAddProfil' . self::GROUP_MEMBER, $module::$userProfils[self::GROUP_MEMBER], [
|
||||
'label' => 'Profil',
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<div class="userAddGroupDescription displayNone" id="userAddGroupDescription<?php echo self::GROUP_MODERATOR; ?>">
|
||||
<?php echo template::select('userAddProfil' . self::GROUP_MODERATOR, $module::$userProfils[self::GROUP_MODERATOR], [
|
||||
'label' => 'Profil',
|
||||
|
Loading…
Reference in New Issue
Block a user