2020-10-04 17:14:15 +02:00
|
|
|
<?php echo template::formOpen('userImportForm'); ?>
|
|
|
|
<div class="row">
|
2022-02-18 12:43:48 +01:00
|
|
|
<div class="col1">
|
2020-10-04 18:34:34 +02:00
|
|
|
<?php echo template::button('userImportBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'user',
|
2022-02-18 12:43:48 +01:00
|
|
|
'value' => template::ico('left')
|
2020-10-04 18:34:34 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2023-11-30 13:30:10 +01:00
|
|
|
|
|
|
|
<?php /**echo template::button('userHelp', [
|
|
|
|
'href' => 'https://doc.zwiicms.fr/importation-d-une-liste-d-utilisateurs',
|
|
|
|
'target' => '_blank',
|
|
|
|
'value' => template::ico('help'),
|
|
|
|
'class' => 'buttonHelp',
|
|
|
|
'help' => 'Consulter l\'aide en ligne'
|
|
|
|
]);*/?>
|
2023-02-10 22:27:08 +01:00
|
|
|
<div class="col1 offset8">
|
2023-11-30 13:30:10 +01:00
|
|
|
<?php echo template::button('userImporTemplate', [
|
2023-02-10 22:27:08 +01:00
|
|
|
'href' => helper::baseUrl() . 'user/template',
|
2023-10-05 11:29:20 +02:00
|
|
|
'value' => template::ico('table'),
|
|
|
|
'help' => 'Télécharger un modèle'
|
2023-11-30 13:30:10 +01:00
|
|
|
]); ?>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
2023-02-10 22:27:08 +01:00
|
|
|
<div class="col2">
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php echo template::submit('userImportSubmit', [
|
|
|
|
'value' => 'Importer'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-10-04 18:34:34 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
2023-11-30 13:30:10 +01:00
|
|
|
<h4>
|
|
|
|
<?php echo helper::translate('Importation de fichier plat CSV'); ?>
|
2022-09-14 22:54:46 +02:00
|
|
|
</h4>
|
2020-10-04 18:34:34 +02:00
|
|
|
<div class="row">
|
2022-02-18 12:43:48 +01:00
|
|
|
<div class="col10">
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php echo template::file('userImportCSVFile', [
|
2022-10-23 17:27:57 +02:00
|
|
|
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
2022-09-29 08:45:59 +02:00
|
|
|
'label' => 'Liste d\'utilisateurs :'
|
|
|
|
]); ?>
|
2020-10-04 18:34:34 +02:00
|
|
|
</div>
|
2020-10-07 19:39:31 +02:00
|
|
|
<div class="col2">
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php echo template::select('userImportSeparator', $module::$separators, [
|
|
|
|
'label' => 'Séparateur'
|
|
|
|
]); ?>
|
2020-10-05 16:56:30 +02:00
|
|
|
</div>
|
2020-10-07 19:39:31 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::checkbox('userImportNotification', true, 'Envoyer un message de confirmation', [
|
2022-09-29 08:45:59 +02:00
|
|
|
'checked' => false
|
|
|
|
]); ?>
|
2020-10-07 19:39:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-04 18:34:34 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-05 16:56:30 +02:00
|
|
|
<?php echo template::formClose(); ?>
|
2023-11-30 13:30:10 +01:00
|
|
|
<?php if ($module::$users): ?>
|
2020-10-08 12:49:09 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12 textAlignCenter">
|
2023-11-30 14:29:48 +01:00
|
|
|
<?php echo template::table([1, 2, 2, 1, 1, 1, 2, 1, 1], $module::$users, ['Id', 'Nom', 'Prénom', 'Groupe', 'Profil', 'Pseudo', 'eMail', 'Étiquettes', '']); ?>
|
2023-11-30 13:30:10 +01:00
|
|
|
<?php echo template::ico('check'); ?> Compte créé |
|
|
|
|
<?php echo template::ico('mail'); ?> Compte créé et notifié |
|
|
|
|
<?php echo template::ico('cancel'); ?> Erreur dans le fichier ou le compte existe.
|
2020-10-08 12:49:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php endif; ?>
|