Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 464bf573

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID 464bf573847d115aa981454312d387c655599b47
  • Vorgänger 60d0f05f
  • Nachfolger 3f59726e

SimpleSettingController: Löschen-Button nur anzeigen, wenn Objekt einwilligt

Unterschiede anzeigen:

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