43 lines
1.1 KiB
HTML
43 lines
1.1 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 add to the songs below:</p>
|
||
|
</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
{% for form in artist_formset %}
|
||
|
{{ form }}
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<p>Artists will be added to 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="add_artists" />
|
||
|
<a href="./"><input type="button" name="Cancel" value="Cancel"></a>
|
||
|
<input type="submit" name="apply" value="Add Artists" />
|
||
|
</form>
|
||
|
{% endblock %}
|