forked from ZwiiCMS-Team/ZwiiCampus
Fix user import template
This commit is contained in:
parent
c22c10114c
commit
7180f6ebd0
@ -1168,7 +1168,7 @@ class user extends common
|
||||
*/
|
||||
public function template()
|
||||
{
|
||||
if ($this->getUser('permission', __CLASS__, __FUNCTION__) !== true) {
|
||||
if ($this->getUser('permission', __CLASS__, __FUNCTION__) === true) {
|
||||
$file = 'template.csv';
|
||||
$path = 'core/module/user/ressource/';
|
||||
// Téléchargement du CSV
|
||||
|
@ -7,19 +7,20 @@
|
||||
'value' => template::ico('left')
|
||||
]); ?>
|
||||
</div>
|
||||
|
||||
<?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'
|
||||
]);*/ ?>
|
||||
|
||||
<?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'
|
||||
]);*/?>
|
||||
<div class="col1 offset8">
|
||||
<?php echo template::button('userImporTemplate', [
|
||||
<?php echo template::button('userImporTemplate', [
|
||||
'href' => helper::baseUrl() . 'user/template',
|
||||
'value' => template::ico('table')
|
||||
]); ?>
|
||||
'value' => template::ico('table'),
|
||||
'help' => 'Télécharger un modèle'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::submit('userImportSubmit', [
|
||||
@ -30,7 +31,8 @@
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4><?php echo helper::translate('Importation de fichier plat CSV'); ?>
|
||||
<h4>
|
||||
<?php echo helper::translate('Importation de fichier plat CSV'); ?>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col10">
|
||||
@ -56,11 +58,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
||||
<?php if ($module::$users) : ?>
|
||||
<?php if ($module::$users): ?>
|
||||
<div class="row">
|
||||
<div class="col12 textAlignCenter">
|
||||
<?php echo template::table([1, 3, 3, 1, 1, 2, 1], $module::$users, ['Id', 'Nom', 'Prénom', 'Groupe', 'Pseudo', 'eMail', '']); ?>
|
||||
<?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, compte non créé.
|
||||
<?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, compte non créé.
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
Loading…
Reference in New Issue
Block a user