diff options
| author | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2008-08-06 18:40:47 +0000 |
|---|---|---|
| committer | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2008-08-06 18:40:47 +0000 |
| commit | 25cb65439859e7fd3e9b28815d3d620affc145ec (patch) | |
| tree | 000156332ff7023c87bc22ccad6823f7ebdbfc49 /templates | |
| parent | c0f702909fe00fde38500ba3d6981137c3d64d7a (diff) | |
| download | Papillon-25cb65439859e7fd3e9b28815d3d620affc145ec.tar.bz2 Papillon-25cb65439859e7fd3e9b28815d3d620affc145ec.zip | |
Poll with no choices are no longer available
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/createOrEdit.html | 3 | ||||
| -rw-r--r-- | templates/main.html | 1 |
2 files changed, 4 insertions, 0 deletions
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 %} + <p class='error'>As long as no option was added to the poll, it will not be made available.</p> + {% endif %} <h2>{% if new %}New{% else %}Edit{% endif %} poll</h2> {% if error %}<p class='error'>{{ error }}</p>{% endif %} <form action="{{admin_url}}" method="post"> 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 %}<p class='error'>{{error}}</p>{%endif%} <h2><a href='edit/0'>Create a poll</a></h2> <p>Create a new sondage for take a decision, find a date for a meeting, etc.</p> |
