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()
|
public function template()
|
||||||
{
|
{
|
||||||
if ($this->getUser('permission', __CLASS__, __FUNCTION__) !== true) {
|
if ($this->getUser('permission', __CLASS__, __FUNCTION__) === true) {
|
||||||
$file = 'template.csv';
|
$file = 'template.csv';
|
||||||
$path = 'core/module/user/ressource/';
|
$path = 'core/module/user/ressource/';
|
||||||
// Téléchargement du CSV
|
// Téléchargement du CSV
|
||||||
|
@ -7,19 +7,20 @@
|
|||||||
'value' => template::ico('left')
|
'value' => template::ico('left')
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php /**echo template::button('userHelp', [
|
<?php /**echo template::button('userHelp', [
|
||||||
'href' => 'https://doc.zwiicms.fr/importation-d-une-liste-d-utilisateurs',
|
'href' => 'https://doc.zwiicms.fr/importation-d-une-liste-d-utilisateurs',
|
||||||
'target' => '_blank',
|
'target' => '_blank',
|
||||||
'value' => template::ico('help'),
|
'value' => template::ico('help'),
|
||||||
'class' => 'buttonHelp',
|
'class' => 'buttonHelp',
|
||||||
'help' => 'Consulter l\'aide en ligne'
|
'help' => 'Consulter l\'aide en ligne'
|
||||||
]);*/ ?>
|
]);*/?>
|
||||||
<div class="col1 offset8">
|
<div class="col1 offset8">
|
||||||
<?php echo template::button('userImporTemplate', [
|
<?php echo template::button('userImporTemplate', [
|
||||||
'href' => helper::baseUrl() . 'user/template',
|
'href' => helper::baseUrl() . 'user/template',
|
||||||
'value' => template::ico('table')
|
'value' => template::ico('table'),
|
||||||
]); ?>
|
'help' => 'Télécharger un modèle'
|
||||||
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::submit('userImportSubmit', [
|
<?php echo template::submit('userImportSubmit', [
|
||||||
@ -30,7 +31,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4><?php echo helper::translate('Importation de fichier plat CSV'); ?>
|
<h4>
|
||||||
|
<?php echo helper::translate('Importation de fichier plat CSV'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col10">
|
<div class="col10">
|
||||||
@ -56,11 +58,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php echo template::formClose(); ?>
|
<?php echo template::formClose(); ?>
|
||||||
<?php if ($module::$users) : ?>
|
<?php if ($module::$users): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12 textAlignCenter">
|
<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::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>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
Loading…
Reference in New Issue
Block a user