]> git.0d.be Git - django-panik-emissions.git/commitdiff
templates: reword and add extension block to soundfile deletion confirmation
authorFrédéric Péters <fpeters@0d.be>
Sun, 30 May 2021 08:52:43 +0000 (10:52 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 30 May 2021 08:52:43 +0000 (10:52 +0200)
emissions/templates/emissions/soundfile_confirm_delete.html

index f743cf2838cf876495eeeb4114e20b3a2a95291b..3c2dcc1d159c608254873e83b6a1d5034a722aa4 100644 (file)
@@ -8,15 +8,15 @@
 
 {% block content %}
 
-<p>
-<a href="{{ object.get_url }}">{{ object|sound_filename }}</a>
-</p>
-
 <form method="post">
 {% csrf_token %}
 <p>
-{% trans "Are you sure you want to delete this sound?" %}
+{% blocktrans with url=object.get_url filename=object|sound_filename %}
+Are you sure you want to remove the sound <a href="{{ url }}">{{ filename }}</a>?
+{% endblocktrans %}
 </p>
+{% block extra-form-info %}
+{% endblock %}
 <div class="buttons">
 <button class="delete-button">{% trans "Confirm Deletion" %}</button>
 <a class="cancel" href="../..">{% trans "Cancel" %}</a>