{% extends "motion/base_motion.html" %}

{% load i18n %}

{% block title %}{{ block.super }} – {% trans "Import motions" %} {% endblock %}

{% block content %}
    <h1>{% trans "Import motions" %}</h1>
    <p>{% trans 'Select a CSV file to import motions!' %}</p>

    <p>{% trans 'Required comma separated values' %}:
    <code>({% trans 'number, title, text, reason, first_name, last_name, is_group' %})</code>
    <br>
    {% trans '<code>number</code>, <code>reason</code> and <code>is_group</code> are optional and may be empty' %}.
    <br>
    {% trans 'Required CSV file encoding: UTF-8 (Unicode).' %}
    </p>

    <p><a href="http://dev.openslides.org/wiki/CSVImport" target="_blank">{% trans 'A CSV example file is available in OpenSlides Wiki.' %}</a>
    </p>

    <form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
        {{ form.as_p }}
        <p>
        <button class="button" type="submit">
            <span class="icon import">{% trans 'Import' %}</span>
        </button>
        <a href="{% url motion_overview%}">
        <button class="button" type="button"  onclick="window.location='{% url motion_overview %}'">
            <span class="icon cancel">{% trans 'Cancel' %}</span>
        </button>
        </a>
        </p>
        <small>* {% trans "required" %}</small>
    </form>
{% endblock %}
