This commit is contained in:
Fred Tempez 2023-05-03 22:59:15 +02:00
parent 2a87b98d9a
commit da2c0b6440
2 changed files with 3 additions and 5 deletions

View File

@ -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);
}

View File

@ -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',