2018-01-12 21:35:25 +00:00
|
|
|
{% extends "admin/base_site.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<form action="" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ artist_formset.management_form }}
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2">
|
2018-01-13 05:39:13 +00:00
|
|
|
<p>Select up to ten artists to {% if is_removal %}remove from{% else %}add to{% endif %} the songs below:</p>
|
2018-01-12 21:35:25 +00:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for form in artist_formset %}
|
|
|
|
{{ form }}
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2018-01-13 05:39:13 +00:00
|
|
|
<p>Artists will be {% if is_removal %}removed from{% else %}added to{% endif %} the following songs:</p>
|
2018-01-12 21:35:25 +00:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for song in songs %}
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{{ song }}
|
|
|
|
<input type="hidden" name="_selected_action" value="{{ song.pk }}" />
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2018-01-13 05:39:13 +00:00
|
|
|
<input type="hidden" name="action" value="{% if is_removal %}remove_artists{% else %}add_artists{% endif %}" />
|
|
|
|
<input type="hidden" name="removal" value="{{ is_removal }}" />
|
2018-01-12 21:35:25 +00:00
|
|
|
<a href="./"><input type="button" name="Cancel" value="Cancel"></a>
|
2018-01-13 05:39:13 +00:00
|
|
|
<input type="submit" name="apply" value="{% if is_removal %}Remove{% else %}Add{% endif %} Artists" />
|
2018-01-12 21:35:25 +00:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|