]> git.0d.be Git - django-panik-nonstop.git/blob - nonstop/templates/nonstop/cleanup.html
add links to nonstop home, and handle permissions
[django-panik-nonstop.git] / nonstop / templates / nonstop / cleanup.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block appbar %}
5 <h2>Nonstop{% if zone %} — {{zone.title}} — {{count}} tracks{% endif %}</h2>
6 {% endblock %}
7
8 {% block more-user-links %}
9 {{ block.super }}
10 <a href="{% url 'nonstop-quick-links' %}">Gestion nonstop</a>
11 {% endblock %}
12
13 {% block content %}
14 <form id="track-search">
15   {{ form.as_p }}
16   <button>{% trans "Submit" %}</button>
17 </form>
18 <hr>
19
20 {% if tracks.exists %}
21 <form method="post">
22   {% csrf_token %}
23 <table>
24   {% for track in tracks %}
25   <tr>
26     <td><input name="track" type="hidden" value="{{track.id}}">
27         <input type="checkbox" name="remove-{{track.id}}"></td>
28     <td><a href="{% url 'track-view' pk=track.id %}">{{track.title}}</a></td>
29     <td>{{track.artist.name}}</td>
30     <td>{{track.added_to_nonstop_timestamp|date:"SHORT_DATE_FORMAT"}}</td>
31   </tr>
32   {% endfor %}
33 </table>
34 <div class="buttons">
35   <button>{% trans "Remove checked tracks" %}</button>
36 </div>
37 </form>
38
39 <style>
40 td {
41   padding: 0 1ex;
42 }
43 </style>
44 {% endif %}
45
46 {% endblock %}