[% INCLUDE 'admin/header.html' title=loc("User Import") -%] [% PROCESS 'admin/report_blocks.html' %] [% INCLUDE status_message %]

[% IF new_users %]

[% tprintf(loc('Created %d new users'), new_users.size ) %]

[% FOREACH user IN new_users %] [% END %]
[% loc('Name') %] [% loc('Email') %] [% loc('Body') %]
[% user.name %] [% user.email %] [% user.from_body.name %]
[% END %] [% IF existing_users %]

[% tprintf(loc("%d users already existed"), existing_users.size) %]

[% loc("These users weren't updated.") %]

[% FOREACH user IN existing_users %] [% END %]
[% loc('Name') %] [% loc('Email') %] [% loc('Body') %]
[% user.name %] [% user.email %] [% user.from_body.name %]
[% END %]

[% loc('Usage notes') %]

[% loc('This page is a quick way to create many new staff users in one go.') %]

[% loc("Existing users won't be modified.") %]

[% loc("The uploaded CSV file must contain a header row, and records can have the following fields:") %]

name,email,from_body,permissions,roles,passwordhash

[% INCLUDE 'admin/footer.html' %]