From aedea8f1939ae9f894670b461abea9bea1be092e Mon Sep 17 00:00:00 2001 From: etienne Date: Fri, 5 Dec 2008 00:16:29 +0000 Subject: Public votes - Polls categories --- templates/createOrEdit.html | 50 +++++++++++++++++++++++++++++++++++++++++---- templates/main.html | 12 ++++++++++- 2 files changed, 57 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/createOrEdit.html b/templates/createOrEdit.html index 4cc7420..417f7b7 100644 --- a/templates/createOrEdit.html +++ b/templates/createOrEdit.html @@ -9,6 +9,7 @@ {% if error %}

{{ error }}

{% endif %} + {% if not new %} @@ -19,21 +20,59 @@ - {% endif %} + {% endif %} + + - + + - + + - + + + {% if not new %} + + + + {% endif %} + + + + + + + + {% if categories %} + + + + {% endif %} + + {% if choices %} @@ -55,6 +95,7 @@ {% endfor %}{% endif %} + + {% if new %}
http://{{full_base_url}}http://{{full_admin_url}} {% trans "Address to modify the current poll" %}
{% if new %}{% else %}{{author_name}}{% endif %}{% if new %}{% else %}{{poll.author.name}}{% endif %} {% trans "Name, firstname or nickname of the author" %}
{% if new %}{% else %}{% endif %}{% if new %}{% else %}{% endif %} {% trans "Global name to present the poll" %}
{% if new %}{% else %}{% endif %}{% if new %}{% else %}{% endif %} {% trans "Precise description of the poll" %}
+ + {% trans "Status of the poll. When closed no vote add or modification are allowed" %}
+ + {% trans "If the poll is public it is available on the main page" %}
{% if new %} + {%else%}{{poll.category.name}} + {% endif %}{% trans "Category of the poll" %}
{% if new %}
{% trans "Choices" %}{% trans "Label" %}{% trans "Limit" %}{% trans "Delete?"%}
 {%if choice.limit%}{% blocktrans with choice.limit as choice_limit%}Limited to {{choice_limit}} vote(s){% endblocktrans %}{%endif%}
{% if new %} @@ -63,6 +104,7 @@ {% endif %}
diff --git a/templates/main.html b/templates/main.html index 05c8b95..59adba7 100644 --- a/templates/main.html +++ b/templates/main.html @@ -3,7 +3,17 @@ {% block content %} {% if error %}

{{error}}

{%endif%} -

{% trans "Create a poll" %}

+

{%trans "Create a poll"%}

{% trans "Create a new sondage for take a decision, find a date for a meeting, etc." %}

+{% if polls %}

{%trans "Polls"%}

{%endif%} +{% for poll in polls %} +

{{poll.name}} {{poll.description}}

+{% endfor %} + +{% if categories %}

{%trans "Categories"%}

{% endif %} +{% for category in categories %} +

{{category.name}}

+{% endfor %} + {% endblock %} -- cgit v1.2.3