summaryrefslogtreecommitdiff
path: root/templates/editChoicesUser.html
diff options
context:
space:
mode:
authoretienne2009-12-04 13:33:06 +0000
committeretienne2009-12-04 13:33:06 +0000
commit442d34494354cbca1cad022290db417ae7a7aede (patch)
tree84e2371fb94945e7ac456da41ddfeb68e5f1f1e3 /templates/editChoicesUser.html
parent25e778bebb1804aeaf0d7716119bcbfbe967e8b2 (diff)
Template cleaning - Simplification - Use of newforms
Diffstat (limited to 'templates/editChoicesUser.html')
-rw-r--r--templates/editChoicesUser.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/editChoicesUser.html b/templates/editChoicesUser.html
new file mode 100644
index 0000000..bec7384
--- /dev/null
+++ b/templates/editChoicesUser.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+{% load markup %}
+{% load i18n %}
+
+{% block fullscript %}
+<script type="text/javascript" src="http://{{root_url}}admin/jsi18n/"></script>
+<script type="text/javascript" src="http://{{root_url}}media/js/core.js"></script>
+<script type="text/javascript" src="http://{{root_url}}media/js/admin/RelatedObjectLookups.js"></script>
+{{ form_new_choice.media }}
+{% endblock %}
+
+{% block content %}
+<h2>{% trans "Choices" %}</h2>
+{% if choices %}<table class='new_poll'>
+ <tr>
+ <th>{% trans "Label" %}</th>
+ <th>{% trans "Limit" %}</th>
+ </tr>
+ {% for choice in choices %}<tr>
+ <td>{{choice.name}}</td>
+ <td>{% if choice.limit %}{% trans "Limited to"%} {{choice.limit}} {% trans "vote(s)" %}{% endif %}</td>
+ </tr>{% endfor %}
+ <tr>
+ <td></td>
+ <td><input type='hidden' name='edit' value='1'/>
+ <input type='submit' value='{% trans "Edit" %}' class='submit'/></td>
+ </tr>
+</table>
+</form>{% endif %}
+{% include 'editChoices.html' %}
+{% endblock %}