]> git.0d.be Git - panikdb.git/commitdiff
adjust deletion pages for popups
authorFrédéric Péters <fpeters@0d.be>
Mon, 28 Jan 2019 10:05:31 +0000 (11:05 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 28 Jan 2019 10:05:31 +0000 (11:05 +0100)
panikdb/templates/emissions/episode_detail.html
panikdb/templates/emissions/soundfile_confirm_delete.html

index fe3ff7a1e6a75b57e4afb7a0d8159bfeb40bd99c..c9035c59fecdde55bf8448a04ce04f9b717283a1 100644 (file)
@@ -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 %}
index 3c1e64a8efa03981183f149460e7f73e3af91d7a..7811165bb9f58992c97a6005d01287b0fadf3ace 100644 (file)
@@ -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>