From edd1bad62b445b0cae291f0406e7d0ca1eabf5ae Mon Sep 17 00:00:00 2001 From: etienne Date: Sun, 24 Aug 2008 22:18:42 +0000 Subject: Update of the model. Sort vote by creation date (#15). Update of poll information (#13). New poll types (#2, #5) --- templates/createOrEdit.html | 57 ++++++++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 21 deletions(-) (limited to 'templates/createOrEdit.html') diff --git a/templates/createOrEdit.html b/templates/createOrEdit.html index 4eecaa2..0c223ff 100644 --- a/templates/createOrEdit.html +++ b/templates/createOrEdit.html @@ -7,58 +7,73 @@ {% endif %}

{% if new %}{% trans "New poll" %}{% else %}{% trans "Edit poll" %}{% endif %}

{% if error %}

{{ error }}

{% endif %} -
- +
+ {% if not new %} - + - + {% endif %} - + - + - + - - {% if not new %}{% if choices %} - + {% if choices %} + {% for choice in choices %} - + + + {% endfor %}{% endif %} + + + - {% endfor %}{% endif %} - {% endif %}
http://{{full_base_url}}http://{{full_base_url}} {% trans "Copy this address and send it to voters who want to participate to this poll" %}
http://{{full_admin_url}}http://{{full_admin_url}} {% trans "Address to modify the current poll" %}
{% if new %}{% else %}{{author_name}}{% endif %}{% if new %}{% else %}{{author_name}}{% endif %} {% trans "Name, firstname or nickname of the author" %}
{% if new %}{% else %}{{poll_name}}{% endif %}{% if new %}{% else %}{% endif %} {% trans "Global name to present the poll" %}
{% if new %}{% else %}{{poll_desc}}{% endif %}{% if new %}{% else %}{% endif %} {% trans "Precise description of the poll" %}
{% if new %}{% if new %}{% else %}{{type_name}}{% endif %} {% trans "Type of the poll:" %}
    -
  • {% trans "Poll is the appropriate type for a simple multi-choice poll" %}
  • -
  • {% trans "Balanced poll lets voters setting negative vote for some choices" %}
  • - +
  • {% trans '"Poll" is the appropriate type for a simple multi-choice poll' %}
  • +
  • {% trans '"Balanced poll" lets voters setting negative vote for some choices' %}
  • +
  • {% trans '"One choice poll"' %}
{% trans "Choices" %} {% trans "Delete?"%}
{% trans "Choices" %}{% trans "Label" %}{% trans "Limit" %}{% trans "Delete?"%}
 {{choice.name}} {{choice.name}}{%if choice.limit%}{% blocktrans with choice.limit as choice_limit%}Limited to {{choice_limit}} vote(s){% endblocktrans %}{%endif%}
{% if new %} + + {% else %} + + {% endif %}
- {% if new %} - - {% else %} - - {% endif %}
+ +{% if new %} + +{% else %} +
+ {%trans "Limited to"%} {%trans "vote(s)"%}{% trans "Setting a new choice. Optionally you can set a limit of vote for this choice. This limit is usefull for limited resources allocation." %} + + + + +
+ + {% endif %} {% endblock %} -- cgit v1.2.3