ZwiiCMS/core/module/user/view/add/add.php

96 lines
3.2 KiB
PHP
Raw Normal View History

2018-04-02 08:29:19 +02:00
<?php echo template::formOpen('userAddForm'); ?>
<div class="row">
2022-02-18 12:43:48 +01:00
<div class="col1">
2018-04-02 08:29:19 +02:00
<?php echo template::button('userAddBack', [
'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
]); ?>
</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('userAddSubmit'); ?>
</div>
</div>
<div class="row">
<div class="col6">
<div class="block">
2022-09-14 22:54:46 +02:00
<h4>
<?php template::transcribe('Identité'); ?>
</h4>
2018-04-02 08:29:19 +02:00
<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>
2020-07-02 19:53:52 +02:00
<?php echo template::text('userAddPseudo', [
'autocomplete' => 'off',
'label' => 'Pseudo'
]); ?>
<?php echo template::select('userAddSignature', $module::$signature, [
'label' => 'Signature',
'selected' => 1
]); ?>
2018-04-02 08:29:19 +02:00
<?php echo template::mail('userAddMail', [
'autocomplete' => 'off',
'label' => 'Adresse mail'
]); ?>
<?php echo template::select('userAddGroup', self::$groupNews, [
'label' => 'Groupe',
'selected' => self::GROUP_MEMBER
]); ?>
<div id="userAddMemberFiles" class="displayNone">
2021-06-07 19:23:39 +02:00
<?php echo template::checkbox('userAddFiles', true, 'Partage de fichiers autorisé', [
'checked' => false,
'help' => 'Ce membre pourra téléverser ou télécharger des fichiers dans le dossier \'partage\' et ses sous-dossiers'
]); ?>
</div>
2022-09-14 22:54:46 +02:00
<div id="userAddLabelAuth">
<?php template::transcribe('Permissions :'); ?>
</div>
2018-04-02 08:29:19 +02:00
<ul id="userAddGroupDescription<?php echo self::GROUP_MEMBER; ?>" class="userAddGroupDescription displayNone">
2022-09-14 22:54:46 +02:00
<li><?php template::transcribe('Accès aux pages privées'); ?></li>
2018-04-02 08:29:19 +02:00
</ul>
2020-10-14 19:17:13 +02:00
<ul id="userAddGroupDescription<?php echo self::GROUP_MODERATOR; ?>" class="userAddGroupDescription displayNone">
2022-09-14 22:54:46 +02:00
<li><?php template::transcribe('Accès aux pages privées'); ?></li>
<li><?php template::transcribe('Ajout / Édition / Suppression de pages'); ?></li>
<li><?php template::transcribe('Ajout / Édition / Suppression de fichiers'); ?></li>
2018-04-02 08:29:19 +02:00
</ul>
<ul id="userAddGroupDescription<?php echo self::GROUP_ADMIN; ?>" class="userAddGroupDescription displayNone">
2022-09-14 22:54:46 +02:00
<li><?php template::transcribe('Administration complète du site'); ?></li>
2018-04-02 08:29:19 +02:00
</ul>
</div>
</div>
<div class="col6">
<div class="block">
2022-09-14 22:54:46 +02:00
<h4>
<?php template::transcribe('Authentification'); ?>
</h4>
2018-04-02 08:29:19 +02:00
<?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'
]); ?>
2019-02-15 10:10:30 +01:00
<?php echo template::checkbox('userAddSendMail', true,
2020-07-02 19:53:52 +02:00
'Prévenir l\'utilisateur par mail');
?>
2018-04-02 08:29:19 +02:00
</div>
</div>
</div>
2020-07-02 19:53:52 +02:00
<?php echo template::formClose(); ?>