2023-09-05 15:21:01 +02:00
|
|
|
<?php echo template::formOpen('userAddForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col1">
|
|
|
|
<?php echo template::button('userAddBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'user',
|
|
|
|
'value' => template::ico('left')
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset9">
|
|
|
|
<?php echo template::submit('userAddSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Identité'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('userAddFirstname', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Prénom'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('userAddLastname', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Nom'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('userAddPseudo', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Pseudo'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('userAddSignature', $module::$signature, [
|
|
|
|
'label' => 'Signature',
|
|
|
|
'selected' => 1
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-30 13:23:41 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::mail('userAddMail', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Adresse électronique'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('userAddLanguage', $module::$languagesInstalled, [
|
|
|
|
'label' => 'Langues'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::text('userAddTags', [
|
2023-11-30 14:29:38 +01:00
|
|
|
'label' => 'Étiquettes',
|
2023-11-30 13:23:41 +01:00
|
|
|
'value' => $this->getData(['user', $this->getUrl(2), 'tags']),
|
|
|
|
'help' => 'Le séparateur d\'étiquettes est l\'espace'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-05 15:21:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Authentification'); ?>
|
|
|
|
</h4>
|
|
|
|
<?php echo template::text('userAddId', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Identifiant'
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::password('userAddPassword', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Mot de passe'
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::password('userAddConfirmPassword', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Confirmation'
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::checkbox(
|
|
|
|
'userAddSendMail',
|
|
|
|
true,
|
|
|
|
'Prévenir l\'utilisateur par mail'
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2023-10-06 09:53:53 +02:00
|
|
|
<div class="col6 offset3">
|
2023-09-05 15:21:01 +02:00
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Permissions'); ?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('userAddGroup', self::$groupNews, [
|
|
|
|
'label' => 'Groupe',
|
2023-09-22 15:19:18 +02:00
|
|
|
'selected' => self::GROUP_MEMBER
|
2023-09-05 15:21:01 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<div class="userAddGroupProfil displayNone"
|
2023-09-22 15:19:18 +02:00
|
|
|
id="userAddGroupProfil<?php echo self::GROUP_MEMBER; ?>">
|
|
|
|
<?php echo template::select('userAddProfil' . self::GROUP_MEMBER, $module::$userProfils[self::GROUP_MEMBER], [
|
2023-09-05 15:21:01 +02:00
|
|
|
'label' => 'Profil',
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="userAddGroupProfil displayNone"
|
2023-09-22 15:19:18 +02:00
|
|
|
id="userAddGroupProfil<?php echo self::GROUP_EDITOR; ?>">
|
|
|
|
<?php echo template::select('userAddProfil' . self::GROUP_EDITOR, $module::$userProfils[self::GROUP_EDITOR], [
|
2023-09-05 15:21:01 +02:00
|
|
|
'label' => 'Profil',
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2023-11-30 13:23:41 +01:00
|
|
|
<div id="userCommentProfil<?php echo self::GROUP_MEMBER; ?>"
|
|
|
|
class="col12 displayNone userCommentProfil">
|
2023-09-22 15:19:18 +02:00
|
|
|
<?php echo template::textarea('useraddProfilComment' . self::GROUP_MEMBER, [
|
2023-11-30 13:23:41 +01:00
|
|
|
"value" => implode("\n", $module::$userProfilsComments[self::GROUP_MEMBER])
|
2023-09-05 15:21:01 +02:00
|
|
|
]);
|
|
|
|
?>
|
|
|
|
</div>
|
2023-11-30 13:23:41 +01:00
|
|
|
<div id="userCommentProfil<?php echo self::GROUP_EDITOR; ?>"
|
|
|
|
class="col12 displayNone userCommentProfil">
|
2023-09-22 15:19:18 +02:00
|
|
|
<?php echo template::textarea('useraddProfilComment2' . self::GROUP_EDITOR, [
|
2023-11-30 13:23:41 +01:00
|
|
|
"value" => implode("\n", $module::$userProfilsComments[self::GROUP_EDITOR])
|
2023-09-05 15:21:01 +02:00
|
|
|
]);
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div id="userCommentProfil<?php echo self::GROUP_ADMIN; ?>" class="col12 displayNone userCommentProfil">
|
|
|
|
<?php echo template::textarea('useraddProfilComment' . self::GROUP_ADMIN, [
|
2023-11-30 13:23:41 +01:00
|
|
|
"value" => implode("\n", $module::$userProfilsComments[self::GROUP_ADMIN])
|
2023-09-05 15:21:01 +02:00
|
|
|
]);
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo template::formClose(); ?>
|