From 8370efec8f028c0c4425c93e2e84324489fdda81 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Mon, 16 Nov 2020 12:34:05 +0100
Subject: [PATCH] add missing template

---
 templates/other/accounts.csv.tt2 | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 templates/other/accounts.csv.tt2

diff --git a/templates/other/accounts.csv.tt2 b/templates/other/accounts.csv.tt2
new file mode 100644
index 0000000..ec26aac
--- /dev/null
+++ b/templates/other/accounts.csv.tt2
@@ -0,0 +1,18 @@
+[% all_attributes = {} %]
+[% FOREACH account IN accounts %]
+    [% template = account.profile() _ '.tt2' %]
+    [% PROCESS $template scope=account.scope() id=account.id() | trim %]
+    [% all_attributes.import(attributes) %]
+[% END %]
+[% attributes_list = all_attributes.keys.sort -%]
+username,password,profile,[% attributes_list.join(',') %]
+[%+ FOREACH account IN accounts %]
+    [% template = account.profile() _ '.tt2' %]
+    [% PROCESS $template scope=account.scope() id=account.id() | trim %]
+    [% account.internal_uid() %],
+    [% account.password() %],
+    [% account.profile() %],
+    [% FOREACH attribute IN attributes_list %]
+        [% attributes.$attribute.join(', ').quote('"') %],
+    [% END %]
+[%+ END %]
-- 
GitLab