<%inherit file="/template.html" /> <%namespace name="forms" file="/forms.html"/> <%namespace name="components" file="/components.html"/> <%def name="title()">${_("Admin: Import Users")} <%block name="headline">

${_("Import Users")}

<%block name="main_content"> ${self.form()} <%def name="form(came_from='')">
${h.field_token()|n}
<%forms:textarea label="${_('Users CSV')}" name="users_csv" value="" autofocus="autofocus" placeholder="testuser, "Test User", test@example.com, "badge1, badge2"" help="${_('Paste the content of a CSV file, e.g. exported from Excel, with the 4 columns username, display name, email and badges (badges are optional, comma separated and with quotes around the list)')}"> ${forms.input(_("Email Subject"), "email_subject")} <%forms:textarea label="${_('Email Template')}" name="email_template" value=""> <%def name="before()"> <% required = [ {'name': '{user_name}', 'description': _('The name with which the user can log in.')}, {'name': '{password}', 'description': _('The initial password for the user.')}, {'name': '{url}', 'description': _('An URL for the user to activate his account.')}] optional = [ {'name': '{display_name}', 'description': _('The name that will be displayed to other users.')}, {'name': '{email}', 'description': _(u'The email address of the user.')}, {'name': '{0}, {1}, {2}, …', 'description': _(u'for additional columns.')}] %>

${_('The template for the mail to the users. You need to insert some placeholders into the email text.')}

${_('Required')}
    %for item in required:
  • ${item['name']}: ${item['description']}
  • %endfor
${_('Optional')}
    %for item in optional:
  • ${item['name']|n}: ${item['description']}
  • %endfor
${components.savebox(came_from)}