add afficher le commentaire de profil dans l'ajout d'un user
This commit is contained in:
parent
2fe0a8e7b1
commit
44581b4682
@ -47,6 +47,7 @@ class user extends common
|
||||
public static $userGroups = [];
|
||||
|
||||
public static $userProfils = [];
|
||||
public static $userProfilsComments = [];
|
||||
|
||||
public static $userLongtime = false;
|
||||
|
||||
@ -153,11 +154,17 @@ class user extends common
|
||||
|
||||
// Profils disponibles
|
||||
foreach ($this->getData(['profil']) as $profilId => $profilData) {
|
||||
if ($profilId < 1 || $profilId > 2) {
|
||||
if ($profilId < self::GROUP_MEMBER ) {
|
||||
continue;
|
||||
}
|
||||
if ($profilId === self::GROUP_ADMIN) {
|
||||
self::$userProfils[$profilId][self::GROUP_ADMIN] = $profilData['name'];
|
||||
self::$userProfilsComments[$profilId][self::GROUP_ADMIN] = $profilData['comment'];
|
||||
continue;
|
||||
}
|
||||
foreach ($profilData as $key => $value) {
|
||||
self::$userProfils[$profilId][$key] = $profilData[$key]['name'];
|
||||
self::$userProfilsComments[$profilId][$key] = $profilData[$key]['comment'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,26 +95,40 @@
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<div class="userAddGroupProfil displayNone" id="userAddGroupProfil<?php echo self::GROUP_MEMBER; ?>">
|
||||
<div class="userAddGroupProfil displayNone"
|
||||
id="userAddGroupProfil<?php echo self::GROUP_MEMBER; ?>">
|
||||
<?php echo template::select('userAddProfil' . self::GROUP_MEMBER, $module::$userProfils[self::GROUP_MEMBER], [
|
||||
'label' => 'Profil',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="userAddGroupProfil displayNone" id="userAddGroupProfil<?php echo self::GROUP_MODERATOR; ?>">
|
||||
<div class="userAddGroupProfil displayNone"
|
||||
id="userAddGroupProfil<?php echo self::GROUP_MODERATOR; ?>">
|
||||
<?php echo template::select('userAddProfil' . self::GROUP_MODERATOR, $module::$userProfils[self::GROUP_MODERATOR], [
|
||||
'label' => 'Profil',
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::textarea('useraddProfilComment', [
|
||||
"value" => ''
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div id="commentProfil<?php echo self::GROUP_MEMBER; ?>" class="col12">
|
||||
<?php echo template::textarea('useraddProfilComment' . self::GROUP_MEMBER, [
|
||||
"value" => implode("\n",$module::$userProfils[self::GROUP_MEMBER])
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
<div id="commentProfil<?php echo self::GROUP_MODERATOR; ?>" class="col12">
|
||||
<?php echo template::textarea('useraddProfilComment2' . self::GROUP_MODERATOR, [
|
||||
"value" => implode("\n",$module::$userProfils[self::GROUP_MODERATOR])
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
<div id="commentProfil<?php echo self::GROUP_ADMIN; ?>" class="col12">
|
||||
<?php echo template::textarea('useraddProfilComment' . self::GROUP_ADMIN, [
|
||||
"value" => implode("\n",$module::$userProfils[self::GROUP_ADMIN])
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
||||
<?php echo template::formClose(); ?>
|
Loading…
Reference in New Issue
Block a user