From d31e45433a5b23bd3015a7c860e5a12686f004d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 5 Jun 2018 16:33:48 +0200 Subject: [PATCH] make edit/delete links target specific forms (#24166) --- fargo/templates/fargo/table.html | 4 ++-- fargo/templates/fargo/userdocument_confirm_delete.html | 2 +- fargo/templates/fargo/userdocument_form.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fargo/templates/fargo/table.html b/fargo/templates/fargo/table.html index dcce69f..febdfb4 100644 --- a/fargo/templates/fargo/table.html +++ b/fargo/templates/fargo/table.html @@ -41,10 +41,10 @@ {% block action-column %} {% if table.context.include_edit_link or include_edit_link %} - + {% endif %} {% if row.record.deletable_by_user %} - + {% endif %} {% endblock %} diff --git a/fargo/templates/fargo/userdocument_confirm_delete.html b/fargo/templates/fargo/userdocument_confirm_delete.html index 34190fb..f405715 100644 --- a/fargo/templates/fargo/userdocument_confirm_delete.html +++ b/fargo/templates/fargo/userdocument_confirm_delete.html @@ -2,7 +2,7 @@ {% load i18n %} {% block content %} -
+ {% csrf_token %}

{% blocktrans %}Are you sure you want to delete "{{ object }}"?{% endblocktrans %} diff --git a/fargo/templates/fargo/userdocument_form.html b/fargo/templates/fargo/userdocument_form.html index 0d5e0b8..5788058 100644 --- a/fargo/templates/fargo/userdocument_form.html +++ b/fargo/templates/fargo/userdocument_form.html @@ -6,7 +6,7 @@

{% trans "Edit" %}

- + {% csrf_token %} {{form.as_p}}
-- 2.17.1