From 464bf573847d115aa981454312d387c655599b47 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 2 Feb 2017 10:52:12 +0100 Subject: [PATCH] =?utf8?q?SimpleSettingController:=20L=C3=B6schen-Button?= =?utf8?q?=20nur=20anzeigen,=20wenn=20Objekt=20einwilligt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- templates/webpages/simple_system_setting/form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/webpages/simple_system_setting/form.html b/templates/webpages/simple_system_setting/form.html index da8e4a299..26ca5b49f 100644 --- a/templates/webpages/simple_system_setting/form.html +++ b/templates/webpages/simple_system_setting/form.html @@ -18,7 +18,7 @@

[% L.hidden_tag("action", "SimpleSystemSetting/dispatch") %] [% L.submit_tag("action_" _ (SELF.object.id ? "update" : "create"), LxERP.t8("Save"), onclick="return kivi.validate_form('#form');") %] - [%- IF SELF.object.id && (!SELF.object.can("orphaned") || SELF.object.orphaned) -%] + [%- IF SELF.object.id && (!SELF.object.can("orphaned") || SELF.object.orphaned) && (!SELF.object.can("can_be_deleted") || SELF.object.can_be_deleted) -%] [% L.submit_tag("action_delete", LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %] [%- END %] [%- LxERP.t8("Cancel") %] -- 2.20.1