Revision 464bf573
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
templates/webpages/simple_system_setting/form.html | ||
---|---|---|
18 | 18 |
<p> |
19 | 19 |
[% L.hidden_tag("action", "SimpleSystemSetting/dispatch") %] |
20 | 20 |
[% L.submit_tag("action_" _ (SELF.object.id ? "update" : "create"), LxERP.t8("Save"), onclick="return kivi.validate_form('#form');") %] |
21 |
[%- IF SELF.object.id && (!SELF.object.can("orphaned") || SELF.object.orphaned) -%] |
|
21 |
[%- IF SELF.object.id && (!SELF.object.can("orphaned") || SELF.object.orphaned) && (!SELF.object.can("can_be_deleted") || SELF.object.can_be_deleted) -%]
|
|
22 | 22 |
[% L.submit_tag("action_delete", LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %] |
23 | 23 |
[%- END %] |
24 | 24 |
<a href="[% SELF.list_url %]">[%- LxERP.t8("Cancel") %]</a> |
Auch abrufbar als: Unified diff
SimpleSettingController: Löschen-Button nur anzeigen, wenn Objekt einwilligt