summaryrefslogtreecommitdiff
path: root/papillon/templates/create.html
blob: 7c3d2b3bf2788e8bc8d132c452a70d12ab0ce3fc (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
{% extends "base.html" %}
{% load i18n %}
{% load markup %}

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


{% block content %}
 <h2>{% trans "New poll" %}</h2>
<form action="" method="post">
<table class='new_poll'>
  {% for field in form %}
  {% if field.is_hidden %}
  {{field}}
  {% else %}
  <tr><td colspan='3'>{{field.errors}}</td></tr>
  <tr>
   <td>{{field.label_tag}}</td>
   <td>{{field}}</td>
   <td class='form_description'>{{field.help_text|markdown}}</td>
  </tr>
  {% endif %}
  {% endfor %}
  <tr>
   <td></td>
   <td><input type='submit' value='{% trans "Create" %}' class='submit'/></td>
  </tr>
</table>
</form>

{% endblock %}