summaryrefslogtreecommitdiff
path: root/templates/createOrEdit.html
diff options
context:
space:
mode:
authoretienne2008-08-08 13:23:16 +0000
committeretienne2008-08-08 13:23:16 +0000
commit2b384dd33ecd0a17823e60cded5d3b111ea8133e (patch)
tree4f2cbd4dde85482827d3f15b839608bdf91637e9 /templates/createOrEdit.html
parent25cb65439859e7fd3e9b28815d3d620affc145ec (diff)
Possibility to delete a vote. Few bug correction. Documentation. Cleaner functions.
Diffstat (limited to 'templates/createOrEdit.html')
-rw-r--r--templates/createOrEdit.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/createOrEdit.html b/templates/createOrEdit.html
index cee7616..073dcfd 100644
--- a/templates/createOrEdit.html
+++ b/templates/createOrEdit.html
@@ -2,12 +2,12 @@
{% 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>
+ <p class='error'>As long as no options were 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">
- <table class='new_poll'>
+ <table id='new_poll'>
{% if not new %}<tr>
<td><label>Poll url</label></td>
<td><a href='http://{{full_base_url}}'>http://{{full_base_url}}</a></td>
@@ -54,7 +54,7 @@
{% for choice in choices %}<tr>
<td>&nbsp;</td><td>{{choice.name}}</td><td><input type='checkbox' name='delete_{{choice.id}}'/></td>
</tr>
- {% endfor %}{% endif %}<tr><td><label>New choice</label></td><td>{{choiceform}}</td></tr>
+ {% endfor %}{% endif %}<tr><td><label>New choice</label></td><td><input type='text' name='new_choice'/></td></tr>
{% endif %}</table>
{% if new %}<input type='hidden' name='new' value='1'/>
<input type='submit' value='Create' />