regluit/frontend/templates/split.html

20 lines
778 B
HTML
Raw Normal View History

2014-11-28 16:12:29 +00:00
{% if user.is_staff or user in work.last_campaign.managers.all %}
<form method="POST" action="#">
{% csrf_token %}
{{ formset.management_form }}
{% for form in formset %}
2014-11-28 16:12:29 +00:00
<div style="float:right;text-align:right">{{ form.id }}Split: {{form.DELETE.0}}<br /><br />
Select: <input type="radio" value="{{ form.instance.id }}" name="select_edition" /></div>
{% with form.instance as edition %}
{% include 'edition_display.html' %}
{% endwith %}
{% endfor %}
2014-11-28 16:12:29 +00:00
<input type="submit" value="Split/Select Editions" name="submit" />
</form>
2014-11-28 16:12:29 +00:00
{% else %}
{% for form in formset %}
{% with form.instance as edition %}
{% include 'edition_display.html' %}
{% endwith %}
{% endfor %}
{% endif %}