summaryrefslogtreecommitdiff
path: root/papillon/templates/create.html
diff options
context:
space:
mode:
authoretienne2010-03-27 17:06:03 +0000
committeretienne2010-03-27 17:06:03 +0000
commit95729368a48257b110ea33dfb005785f8ed6734f (patch)
tree8b99b375a4b4a2e121a9192910af15485ea2b7c3 /papillon/templates/create.html
parent8ded76ae513b38d14773449e46543b54cf48ef49 (diff)
Rearrange directories - include documentation
Diffstat (limited to 'papillon/templates/create.html')
-rw-r--r--papillon/templates/create.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/papillon/templates/create.html b/papillon/templates/create.html
new file mode 100644
index 0000000..7c3d2b3
--- /dev/null
+++ b/papillon/templates/create.html
@@ -0,0 +1,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 %}