46 lines
1.7 KiB
HTML
46 lines
1.7 KiB
HTML
|
|
{% extends "admin/layout.html" %}
|
||
|
|
{% block admin_title %}{{ t.nav_artists }}{% endblock admin_title %}
|
||
|
|
|
||
|
|
{% block content %}
|
||
|
|
<h1>{{ t.artists_heading }}</h1>
|
||
|
|
|
||
|
|
<p style="margin-bottom: 1rem;">
|
||
|
|
<a href="/admin/artists/new" style="display:inline-block; padding:.5rem 1rem; background:#1a1a2e; color:#fff; text-decoration:none; border-radius:4px;">{{ t.artists_add }}</a>
|
||
|
|
</p>
|
||
|
|
|
||
|
|
{% if rows.is_empty() %}
|
||
|
|
<p>{{ t.artists_empty }}</p>
|
||
|
|
{% else %}
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th>ID</th>
|
||
|
|
<th>{{ t.artists_name }}</th>
|
||
|
|
<th>{{ t.artists_releases }}</th>
|
||
|
|
<th>{{ t.artists_tracks }}</th>
|
||
|
|
<th>{{ t.artists_hidden }}</th>
|
||
|
|
<th>{{ t.artists_actions }}</th>
|
||
|
|
</tr>
|
||
|
|
{% for row in rows %}
|
||
|
|
<tr>
|
||
|
|
<td>{{ row.artist.id_val() }}</td>
|
||
|
|
<td>{{ row.artist.name_str() }}</td>
|
||
|
|
<td>
|
||
|
|
<a href="/admin/releases?artist_id={{ row.artist.id_val() }}">{{ row.release_count }}</a>
|
||
|
|
</td>
|
||
|
|
<td>{{ row.track_count }}</td>
|
||
|
|
<td>{{ row.artist.is_hidden() }}</td>
|
||
|
|
<td>
|
||
|
|
<a href="/admin/artists/{{ row.artist.id_val() }}/edit">{{ t.artists_edit }}</a>
|
||
|
|
|
|
||
|
|
<a href="/admin/releases?artist_id={{ row.artist.id_val() }}">{{ t.artists_view_releases }}</a>
|
||
|
|
|
|
||
|
|
<form method="post" action="/admin/artists/{{ row.artist.id_val() }}/delete" style="display:inline;" onsubmit="return confirm('{{ t.artists_delete_confirm }}')">
|
||
|
|
<button type="submit" style="background:none; border:none; color:#c00; cursor:pointer; padding:0; text-decoration:underline;">{{ t.artists_delete }}</button>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</table>
|
||
|
|
{% endif %}
|
||
|
|
{% endblock content %}
|