44 lines
No EOL
1.4 KiB
HTML
44 lines
No EOL
1.4 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
|
|
{% block content %}
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
{{ artist_formset.management_form }}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">
|
|
<p>Select up to ten artists to {% if is_removal %}remove from{% else %}add to{% endif %} the songs below:</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
{% for form in artist_formset %}
|
|
{{ form }}
|
|
{% endfor %}
|
|
</table>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<p>Artists will be {% if is_removal %}removed from{% else %}added to{% endif %} the following songs:</p>
|
|
</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>
|
|
|
|
<input type="hidden" name="action" value="{% if is_removal %}remove_artists{% else %}add_artists{% endif %}" />
|
|
<input type="hidden" name="removal" value="{{ is_removal }}" />
|
|
<a href="./"><input type="button" name="Cancel" value="Cancel"></a>
|
|
<input type="submit" name="apply" value="{% if is_removal %}Remove{% else %}Add{% endif %} Artists" />
|
|
</form>
|
|
{% endblock %} |