2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('userEditForm'); ?>
|
|
|
|
<div class="row">
|
2022-02-18 12:43:48 +01:00
|
|
|
<div class="col1">
|
|
|
|
<?php if($this->getUser('group') === self::GROUP_ADMIN): ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::button('userEditBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'user',
|
2022-02-18 12:43:48 +01:00
|
|
|
'value' => template::ico('left')
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php echo template::button('userEditBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl(false),
|
2022-02-18 12:43:48 +01:00
|
|
|
'value' => template::ico('home')
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2022-02-18 12:43:48 +01:00
|
|
|
<div class="col2 offset9">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::submit('userEditSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Informations générales</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('userEditFirstname', [
|
|
|
|
'autocomplete' => 'off',
|
2020-07-07 15:17:48 +02:00
|
|
|
'disabled' => $this->getUser('group') > 2 ? false : true,
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Prénom',
|
|
|
|
'value' => $this->getData(['user', $this->getUrl(2), 'firstname'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('userEditLastname', [
|
|
|
|
'autocomplete' => 'off',
|
2020-07-07 15:17:48 +02:00
|
|
|
'disabled' => $this->getUser('group') > 2 ? false : true,
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Nom',
|
|
|
|
'value' => $this->getData(['user', $this->getUrl(2), 'lastname'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-02 19:53:52 +02:00
|
|
|
<?php echo template::text('userEditPseudo', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Pseudo',
|
|
|
|
'value' => $this->getData(['user', $this->getUrl(2), 'pseudo'])
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::select('userEditSignature', $module::$signature, [
|
|
|
|
'label' => 'Signature',
|
|
|
|
'selected' => $this->getData(['user', $this->getUrl(2), 'signature'])
|
|
|
|
]); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::mail('userEditMail', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Adresse mail',
|
|
|
|
'value' => $this->getData(['user', $this->getUrl(2), 'mail'])
|
|
|
|
]); ?>
|
|
|
|
<?php if($this->getUser('group') === self::GROUP_ADMIN): ?>
|
|
|
|
<?php echo template::select('userEditGroup', self::$groupEdits, [
|
|
|
|
'disabled' => ($this->getUrl(2) === $this->getUser('id')),
|
|
|
|
'help' => ($this->getUrl(2) === $this->getUser('id') ? 'Impossible de modifier votre propre groupe.' : ''),
|
|
|
|
'label' => 'Groupe',
|
|
|
|
'selected' => $this->getData(['user', $this->getUrl(2), 'group'])
|
|
|
|
]); ?>
|
2021-06-07 18:09:38 +02:00
|
|
|
<div id="userEditMemberFiles" class="displayNone">
|
2021-06-07 19:23:39 +02:00
|
|
|
<?php echo template::checkbox('userEditFiles', true, 'Partage de fichiers autorisé', [
|
2021-06-07 18:09:38 +02:00
|
|
|
'checked' => $this->getData(['user', $this->getUrl(2), 'files']),
|
2021-06-07 19:23:39 +02:00
|
|
|
'help' => 'Ce membre pourra téléverser ou télécharger des fichiers dans le dossier \'partage\' et ses sous-dossiers'
|
2021-06-07 18:09:38 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div id="userEditLabelAuth">Autorisations :</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
<ul id="userEditGroupDescription<?php echo self::GROUP_MEMBER; ?>" class="userEditGroupDescription displayNone">
|
|
|
|
<li>Accès aux pages privées membres</li>
|
|
|
|
</ul>
|
2020-10-14 19:17:13 +02:00
|
|
|
<ul id="userEditGroupDescription<?php echo self::GROUP_MODERATOR; ?>" class="userEditGroupDescription displayNone">
|
2019-01-11 19:42:35 +01:00
|
|
|
<li>Accès aux pages privées membres et éditeurs</li>
|
2018-04-02 08:29:19 +02:00
|
|
|
<li>Ajout / Édition / Suppression de pages</li>
|
|
|
|
<li>Ajout / Édition / Suppression de fichiers</li>
|
|
|
|
</ul>
|
|
|
|
<ul id="userEditGroupDescription<?php echo self::GROUP_ADMIN; ?>" class="userEditGroupDescription displayNone">
|
|
|
|
<li>Accès à toutes les pages privées</li>
|
|
|
|
<li>Ajout / Édition / Suppression de pages</li>
|
|
|
|
<li>Ajout / Édition / Suppression de fichiers</li>
|
2021-10-18 09:48:53 +02:00
|
|
|
<li>Ajout / Édition / Suppression de dossiers</li>
|
2018-04-02 08:29:19 +02:00
|
|
|
<li>Ajout / Édition / Suppression d'utilisateurs</li>
|
|
|
|
<li>Configuration du site</li>
|
|
|
|
<li>Personnalisation du thème</li>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Authentification</h4>
|
|
|
|
<?php echo template::text('userEditId', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'help' => 'L\'identifiant est défini lors de la création du compte, il ne peut pas être modifié.',
|
|
|
|
'label' => 'Identifiant',
|
|
|
|
'readonly' => true,
|
|
|
|
'value' => $this->getUrl(2)
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::password('userEditOldPassword', [
|
2020-07-09 19:43:55 +02:00
|
|
|
'autocomplete' => 'new-password', // remplace 'off' pour éviter le pré remplissage auto
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Ancien mot de passe'
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::password('userEditNewPassword', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Nouveau mot de passe'
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::password('userEditConfirmPassword', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Confirmation'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-02 19:53:52 +02:00
|
|
|
<?php echo template::formClose(); ?>
|