{% extends 'base.html' %}
{% load i18n staticfiles tz stats %}
{% block title %}{% trans 'Registration' %} / {{ block.super }}{% endblock title %}

{% block content %}
    <section id="content">
        <div class="wrapper">
            <div class="content_head">
                <div class="content_title">
                    {% trans 'Registration' %}
                </div>
            </div>
            <img src="{% static 'img/captcha.png' %}" width="640" height="480" alt="" title="" style="position: absolute; top: 80px; right: 0;">
            <form class="form" action="" method="post" onsubmit="this.submit.disabled=true;">
                {% if form.non_field_errors %}
                    <div class="non_field_errors">
                        {% for error in form.non_field_errors %}
                            <div class="error">{{ error }}</div>
                        {% endfor %}
                    </div>
                {% endif %}
                {% csrf_token %}
                {% for field in form %}
                    <div class="form_field">
                        <label for="{{ field.id_for_label }}">{{ field.label }}</label>
                        {% if field.help_text %}
                            <div class="help_text">{{ field.help_text }}</div>
                        {% endif %}
                        <div class="field_wrapper">{{ field }}</div>
                        {% if field.errors %}
                            {% for error in field.errors %}
                                <div class="error">{{ error }}</div>
                            {% endfor %}
                        {% endif %}
                    </div>
                {% endfor %}
                <div class="buttons">
                    <button type="submit" class="green">{% trans 'Registration' context 'action' %}</button>
                </div>
            </form>
        </div>
    </section>
{% endblock content %}

{% block bottom %}
    {{ block.super }}
    <script src="{% static 'js/form.js' %}"></script>
{% endblock bottom %}
