From: Moritz Bunkus Date: Thu, 2 Feb 2017 09:52:12 +0000 (+0100) Subject: SimpleSettingController: Löschen-Button nur anzeigen, wenn Objekt einwilligt X-Git-Tag: release-3.5.4~1548 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=464bf573847d115aa981454312d387c655599b47;p=kivitendo-erp.git SimpleSettingController: Löschen-Button nur anzeigen, wenn Objekt einwilligt --- 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") %]