2014-11-28 16:12:29 +00:00
|
|
|
{% if user.is_staff or user in work.last_campaign.managers.all %}
|
2014-03-11 21:34:27 +00:00
|
|
|
<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>
|
2014-03-11 21:34:27 +00:00
|
|
|
{% 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" />
|
2014-03-11 21:34:27 +00:00
|
|
|
</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 %}
|