From ad6174177c495291bf039660243a3d360ff2134d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 12 Oct 2021 16:07:34 +0200 Subject: Preventive file: back button - quick action button --- archaeological_files/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'archaeological_files/models.py') diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 0eac73119..c6ab3b3d5 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -1085,6 +1085,14 @@ class File( actions = super(File, self).get_extra_actions(request) if self.can_do(request, "add_administrativeact"): actions += [ + ( + reverse("file-edit-preventive", args=[self.pk]), + _("Edit intervention plan"), + "fa fa-plus", + _("plan"), + "", + False, + ), ( reverse("file-add-adminact", args=[self.pk]), _("Add associated administrative act"), -- cgit v1.2.3