spradio-server-django/savepointradio/radio/templates/admin/change_artists_intermediate.html

44 lines
1.4 KiB
HTML
Raw Normal View History

{% 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>
</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>
</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 }}" />
<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" />
</form>
{% endblock %}