29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
{% extends 'uauth/base.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<form method="post" action="{% url "import-users" organization.slug %}" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<h3>{% trans "Expected file format" %}: CSV</h3>
|
|
<ul>
|
|
<li>{% trans "5 columns: login, first name, last name, expiration date, password" %}</li>
|
|
<li>{% trans "date format: YYYY-MM-DD" %}</li>
|
|
<li>{% trans "if empty password, it will be generated" %}</li>
|
|
<li>{% trans "if user exists, it will be updated" %}</li>
|
|
<li>{% trans "separator: comma" %}</li>
|
|
<li>{% trans "encoding: utf-8" %}</li>
|
|
<li>{% trans "first line is ignored" %}</li>
|
|
</ul>
|
|
<p>Example:
|
|
<div class="example">
|
|
"login", "first name", "last name", "expiration", "password"<br />
|
|
"foo", "Foo", "User", "2015-12-31", "secret" <br />
|
|
"bar", "User", "Bar", "2015-04-30", ""<br />
|
|
"test", "", "", "", ""<br />
|
|
</div>
|
|
</p>
|
|
<p><button name="upload">{% trans "Import" %}</button>
|
|
</form>
|
|
{% endblock %}
|