From 25cb65439859e7fd3e9b28815d3d620affc145ec Mon Sep 17 00:00:00 2001 From: etienne Date: Wed, 6 Aug 2008 18:40:47 +0000 Subject: Poll with no choices are no longer available --- templates/createOrEdit.html | 3 +++ templates/main.html | 1 + 2 files changed, 4 insertions(+) (limited to 'templates') diff --git a/templates/createOrEdit.html b/templates/createOrEdit.html index abc949e..cee7616 100644 --- a/templates/createOrEdit.html +++ b/templates/createOrEdit.html @@ -1,6 +1,9 @@ {% extends "base.html" %} {% block content %} + {% if not new and not choices %} +

As long as no option was added to the poll, it will not be made available.

+ {% endif %}

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

{% if error %}

{{ error }}

{% endif %}
diff --git a/templates/main.html b/templates/main.html index b51e7fe..34f6609 100644 --- a/templates/main.html +++ b/templates/main.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block content %} +{% if error %}

{{error}}

{%endif%}

Create a poll

Create a new sondage for take a decision, find a date for a meeting, etc.

-- cgit v1.2.3