summaryrefslogtreecommitdiff
path: root/papillon/templates/create.html
blob: 163ad17920ecb2f1c8bdbe8a3aac4b52110689fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends "base.html" %}
{% load i18n %}
{% load markup %}

{% block fullscript %}
   {{ form.media }}
{% endblock %}


{% block content %}
<h2>{% trans "New poll" %}</h2>

<form class="new_poll" action="." method="post">
    {% csrf_token %}
    {% for field in form %}
        {% if field.is_hidden %}
            {{field}}
        {% else %}
            <div class="field_label">
                {{field.label_tag}}
                <span class="help_button" title="{{field.help_text}}">?</span>
            </div>
            <div class="field_errors">
                {% if field.errors %}
                    Error(s) :
                    <ol class="errorlist">
                    {% for error in field.errors %}
                        <li>{{ error|escape }}</li>
                    {% endfor %}
                    </ol>
                {% endif %}
            </div>
            {{field}}
        {% endif %}
    {% endfor %}
    <input style="clear:both;margin:auto;float:none;width:100%;" type='submit' value='{% trans "Create" %}' class='submit'/>
</form>

{% endblock %}