diff --git a/core/module/user/user.php b/core/module/user/user.php
index f26a61e9..8e876b1a 100644
--- a/core/module/user/user.php
+++ b/core/module/user/user.php
@@ -17,11 +17,12 @@ class user extends common {
public static $actions = [
'add' => self::GROUP_ADMIN,
'delete' => self::GROUP_ADMIN,
- 'edit' => self::GROUP_MEMBER,
- 'forgot' => self::GROUP_VISITOR,
+ 'import' => self::GROUP_ADMIN,
'index' => self::GROUP_ADMIN,
- 'login' => self::GROUP_VISITOR,
+ 'edit' => self::GROUP_MEMBER,
'logout' => self::GROUP_MEMBER,
+ 'forgot' => self::GROUP_VISITOR,
+ 'login' => self::GROUP_VISITOR,
'reset' => self::GROUP_VISITOR
];
@@ -536,4 +537,16 @@ class user extends common {
]);
}
}
+
+ /**
+ * Importation CSV d'utilisateurs
+ */
+ public function import() {
+ // Valeurs en sortie
+ $this->addOutput([
+ 'title' => 'Importation d\'utilisateurs',
+ 'view' => 'import'
+ ]);
+
+ }
}
\ No newline at end of file
diff --git a/core/module/user/view/forgot/forgot.php b/core/module/user/view/forgot/forgot.php
index 76931e3e..29dc17e8 100644
--- a/core/module/user/view/forgot/forgot.php
+++ b/core/module/user/view/forgot/forgot.php
@@ -5,7 +5,6 @@
'buttonGrey',
'href' => helper::baseUrl() . 'user/login/' . $this->getUrl(2),
'ico' => 'left',
'value' => 'Retour'
diff --git a/core/module/user/view/import/import.css b/core/module/user/view/import/import.css
new file mode 100644
index 00000000..2aa6edae
--- /dev/null
+++ b/core/module/user/view/import/import.css
@@ -0,0 +1,16 @@
+/**
+ * This file is part of Zwii.
+ *
+ * For full copyright and license information, please see the LICENSE
+ * file that was distributed with this source code.
+ *
+ * @author Rémi Jean
+ * @copyright Copyright (C) 2008-2018, Rémi Jean
+ * @author Frédéric Tempez
+ * @copyright Copyright (C) 2018-2020, Frédéric Tempez
+ * @license GNU General Public License, version 3
+ * @link http://zwiicms.fr/
+ */
+
+
+@import url("site/data/admin.css");
\ No newline at end of file
diff --git a/core/module/user/view/import/import.php b/core/module/user/view/import/import.php
new file mode 100644
index 00000000..a26375b8
--- /dev/null
+++ b/core/module/user/view/import/import.php
@@ -0,0 +1,12 @@
+
+
+
+ 'buttonGrey',
+ 'href' => helper::baseUrl() . 'user',
+ 'ico' => 'left',
+ 'value' => 'Retour'
+ ]); ?>
+
+
+
\ No newline at end of file
diff --git a/core/module/user/view/index/index.php b/core/module/user/view/index/index.php
index 351e095d..3c39ac74 100644
--- a/core/module/user/view/index/index.php
+++ b/core/module/user/view/index/index.php
@@ -7,7 +7,13 @@
'value' => 'Accueil'
]); ?>
-
+
+ helper::baseUrl() . 'user/import',
+ 'value' => 'Importation CSV'
+ ]); ?>
+
+
helper::baseUrl() . 'user/add',
'ico' => 'plus',