]> git.0d.be Git - panikdb.git/commitdiff
templates: make soundfile deletion confirmation extend base template
authorFrédéric Péters <fpeters@0d.be>
Sun, 30 May 2021 08:53:27 +0000 (10:53 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 30 May 2021 08:53:27 +0000 (10:53 +0200)
panikdb/templates/emissions/soundfile_confirm_delete.html

index b6b6f429c4c279c685977dc89cea8440ffa986f1..b195c2e424726169652dd6279d2d8f1e38f6f0b4 100644 (file)
@@ -1,29 +1,11 @@
-{% extends "base.html" %}
-
-{% block appbar %}
-<h2>{{ object.episode.emission.title }} — {{ object.episode.title }}</h2>
-<span class="actions"><a href="../..">Retourner à l'épisode</a></span>
-{% endblock %}
-
-{% block content %}
-
-<form method="post">
-{% csrf_token %}
-<p>
-Vous allez supprimer le son
-<a href="{{ object.file.url }}">{{ object.file.name }}</a>.
-</p>
+{% extends "emissions/soundfile_confirm_delete.html" %}
+{% load i18n %}
 
+{% block extra-form-info %}
 <p><strong>
-Cela perdra ausis toutes les statistiques (téléchargements et lectures en ligne)
-concernant ce fichier.
+{% blocktrans %}
+This will also remove all statistics (download count and online player) about
+this file.
+{% endblocktrans %}
 </strong></p>
-
-<div class="buttons">
-<button class="delete-button">Confirmer la suppression</button>
-<a class="cancel" href="../..">Annuler</a>
-</div>
-</form>
-
-
 {% endblock %}