-{% extends "contact/form.html" %}
-{% load i18n %}
-{% load chunks %}
+{% extends "base.html" %}
+{% load i18n chunks %}
-{% block contact_form_title %}{% trans "Registration form" %}{% endblock %}
+{% block "titleextra" %}{{ form.form_title }} :: {% endblock %}
+
+{% block "body" %}
+
+ <h1>{% block contact_form_title %}{{ form.form_title }}{% endblock %}</h1>
+
+ <div class="form-info">
+ {% block contact_form_description %}
+ {% chunk "contact_form__"|add:form.form_tag %}
+ {% endblock %}
+ </div>
+
+ {% if form.limit_reached %}
+ <div class="warning">
+ {% chunk "contact_form__"|add:form.form_tag|add:"__full" %}
+ </div>
+ {% else %}
+ <form method="POST" action="." enctype="multipart/form-data" class="submit-form">
+ {% csrf_token %}
+ <table>
+ {{ form.as_table }}
+ <tr><td></td><td><button>{% block contact_form_submit %}{{ form.submit_label }}{% endblock %}</button></td></tr>
+ </table>
+ </form>
+ {% endif %}
-{% block contact_form_description %}
- {% chunk "formularz rejestracyjny" %}
{% endblock %}