From 54550d2091d2254fd20fbeefdc82dc56a69611fe Mon Sep 17 00:00:00 2001 From: etienne Date: Mon, 8 Jun 2009 00:15:00 +0000 Subject: Using newforms infor the create form --- templates/create.html | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 templates/create.html (limited to 'templates/create.html') diff --git a/templates/create.html b/templates/create.html new file mode 100644 index 0000000..63ae021 --- /dev/null +++ b/templates/create.html @@ -0,0 +1,57 @@ +{% extends "base.html" %} +{% load i18n %} +{% load markup %} + +{% block content %} +

{% trans "New poll" %}

+
+ + + + + + + + + + + + + + + + + + + + + +{% if form.category %} + + + + + + +{% endif %} + + + + + + + + + + + + + + + + + +
{{form.author_name.errors}}
{{form.author_name}}{{form.author_name.help_text}}
{{form.name.errors}}
{{form.name}}{{form.name.help_text}}
{{form.description.errors}}
{{form.description}}{{form.description.help_text}}
{{form.category.errors}}
{{form.category}}{{form.category.help_text}}
{{form.public.errors}}
{{form.public}}{{form.public.help_text}}
{{form.poll_type.errors}}
{{form.poll_type}}{{form.poll_type.help_text|restructuredtext}}
+
+ +{% endblock %} -- cgit v1.2.3