From 8db18c880dd06def2c20e4d2ab5b49177f67badc Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Thu, 8 Aug 2013 23:32:27 +0200 Subject: Indent code and apply new design --- papillon/templates/edit.html | 83 ++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 41 deletions(-) (limited to 'papillon') diff --git a/papillon/templates/edit.html b/papillon/templates/edit.html index 19d621d..5a33ebd 100644 --- a/papillon/templates/edit.html +++ b/papillon/templates/edit.html @@ -11,48 +11,49 @@ {% block content %}

{% trans "Edit poll" %}

-
+ {% csrf_token %} - - - - - - - - - - - - - - - - - {% for field in form %} - {% if field.is_hidden %} - {{field}} - {% else %} - - - - - {% if field.help_text %}{%endif%} - - {% endif %} - {% endfor %} + +
+ + ? +
+ + +
+ + ? +
+ + +
+ + ? +
+ + + {% for field in form %} + {% if field.is_hidden %} + {{field}} + {% else %} + +
+ {{field.label_tag}} + ? +
+
+ {% if field.errors %} + Error(s) : +
    + {% for error in field.errors %} +
  1. {{ error|escape }}
  2. + {% endfor %} +
+ {% endif %} +
+ {{field}} + {% endif %} + {% endfor %} -- cgit v1.2.3
-{{ base_url }} -

-{% trans "Copy this address and send it to voters who want to participate to this poll" %} -

-{{ edit_url }} -

- {% trans "Address to modify the current poll" %} -

-{{choices_url }} -

- {% trans "Address to modify choices of the current poll." %} -

{{field.errors}}
{{field.label_tag}}{{field}}{{field.help_text|markdown}}