Projet

Général

Profil

Télécharger (1,02 ko) Statistiques
| Branche: | Tag: | Révision:

root / uauth / organization / templates / organization / import_users.html @ 64438aee

1
{% extends 'uauth/base.html' %}
2
{% load i18n %}
3

    
4
{% block content %}
5
<form method="post" action="{% url "import-users" organization.slug %}" enctype="multipart/form-data">
6
  {% csrf_token %}
7
  {{ form.as_p }}
8
  <h3>{% trans "Expected file format" %}: CSV</h3>
9
  <ul>
10
    <li>{% trans "5 columns: login, first name, last name, expiration date, password" %}</li>
11
    <li>{% trans "date format: YYYY-MM-DD" %}</li>
12
    <li>{% trans "if empty password, it will be generated" %}</li>
13
    <li>{% trans "if user exists, it will be updated" %}</li>
14
    <li>{% trans "separator: comma" %}</li>
15
    <li>{% trans "encoding: utf-8" %}</li>
16
    <li>{% trans "first line is ignored" %}</li>
17
  </ul>
18
  <p>Example:
19
    <div class="example">
20
      "login", "first name", "last name", "expiration", "password"<br />
21
      "foo", "Foo", "User", "2015-12-31", "secret" <br />
22
      "bar", "User", "Bar", "2015-04-30", ""<br />
23
      "test", "", "", "", ""<br />
24
    </div>
25
  </p>
26
  <p><button name="upload">{% trans "Import" %}</button>
27
</form>
28
{% endblock %}
(4-4/9)