From e8784c0d1b75bb66739267e5f05161d210b3e199 Mon Sep 17 00:00:00 2001 From: etienne Date: Thu, 3 Dec 2009 11:33:27 +0000 Subject: Refactoring of the code - Using newforms - Change from ReST to markdown --- templates/create.html | 51 +++++++++++---------------------------------------- 1 file changed, 11 insertions(+), 40 deletions(-) (limited to 'templates/create.html') diff --git a/templates/create.html b/templates/create.html index c9c2b95..0b779db 100644 --- a/templates/create.html +++ b/templates/create.html @@ -4,49 +4,20 @@ {% block content %}

{% trans "New poll" %}

-
+ - + {% for field in form %} + {% if field.is_hidden %} + {{field}} + {% else %} + - - - - - - - - - - - - - - - - - - -{% if form.category %} - - - - - - -{% endif %} - - - - - - - - - - - - + + + + {% endif %} + {% endfor %} -- cgit v1.2.3
{{form.author_name.errors}}
{{field.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|markdown}}{{field.label_tag}}{{field}}{{field.help_text|markdown}}