20 lines
778 B
HTML
20 lines
778 B
HTML
{% 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 %}
|
|
<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 %}
|
|
<input type="submit" value="Split/Select Editions" name="submit" />
|
|
</form>
|
|
{% else %}
|
|
{% for form in formset %}
|
|
{% with form.instance as edition %}
|
|
{% include 'edition_display.html' %}
|
|
{% endwith %}
|
|
{% endfor %}
|
|
{% endif %} |