blob: bec7384ca39ec23a38be373831234a82ab8c12d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 %}
|