Commit 5f72ebd2 authored by fred's avatar fred

adjust deletion pages for popups

parent 043377c7
......@@ -25,7 +25,7 @@
<a class="button" id="start-recording" href="start">Démarrer l'enregistrement</a>
{% endif %}
{% endif %}
<a class="button actually-not-that-friendly" href="delete/">Supprimer</a>
<a class="button actually-not-that-friendly" href="delete/" rel="popup">Supprimer</a>
</p>
{% endif %}
......@@ -110,9 +110,9 @@ Tags :
<td>{% if soundfile.fragment %}oui{% else %}non{% endif %}</td>
<td>{{ soundfile|nb_visits }}</td>
{% if can_manage %}<td><a href="sounds/{{ soundfile.id }}/"
class="icon-edit" title="Modifier"></a></td>{% endif %}
class="icon-edit" rel="popup" title="Modifier"></a></td>{% endif %}
{% if can_manage %}<td><a href="sounds/{{ soundfile.id }}/remove"
class="icon-remove-sign" title="Retirer"></a></td>{% endif %}
class="icon-remove-sign" rel="popup" title="Retirer"></a></td>{% endif %}
{% if perms.emissions.add_focus %}
<td>
{% if soundfile.has_focus %}
......
......@@ -7,6 +7,8 @@
{% block content %}
<form method="post">
{% csrf_token %}
<p>
Vous allez supprimer le son
<a href="{{ object.file.url }}">{{ object.file.name }}</a>.
......@@ -17,10 +19,10 @@ Cela perdra toutes les statistiques (téléchargements et lectures en ligne)
concernant ce fichier.
</strong></p>
<form method="post">
{% csrf_token %}
<button>Confirmer la suppression</button>
<button onclick="window.location = '../..'; return false;">Annuler</button>
<div class="buttons">
<button class="delete-button">Confirmer la suppression</button>
<a class="cancel" href="../..">Annuler</a>
</div>
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment