Revision 48aa4607
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/requirement_spec.js | ||
---|---|---|
331 | 331 |
, delete_reqspec: { name: kivi.t8('Delete requirement spec'), icon: "delete", callback: delete_reqspec } |
332 | 332 |
}; |
333 | 333 |
|
334 |
$.contextMenu({ |
|
335 |
selector: '#content', |
|
336 |
items: general_actions |
|
337 |
}); |
|
338 |
|
|
334 | 339 |
$.contextMenu({ |
335 | 340 |
selector: '.text-block-context-menu', |
336 | 341 |
events: { |
... | ... | |
349 | 354 |
}, general_actions) |
350 | 355 |
}); |
351 | 356 |
|
352 |
var events = {
|
|
357 |
events = { |
|
353 | 358 |
show: requirement_spec_item_popup_menu_shown, |
354 | 359 |
hide: requirement_spec_item_popup_menu_hidden |
355 | 360 |
}; |
templates/webpages/requirement_spec/_form.html | ||
---|---|---|
46 | 46 |
[% IF submit_as == 'post' %] |
47 | 47 |
[% L.hidden_tag("action", "RequirementSpec/dispatch", id=id_prefix _ '_action') %] |
48 | 48 |
[% L.submit_tag("action_" _ (SELF.requirement_spec.id ? "update" : "create"), LxERP.t8('Save'), id=id_prefix _ '_action_update') %] |
49 |
[%- IF SELF.requirement_spec.id %] |
|
50 |
[% L.submit_tag("action_destroy", LxERP.t8('Delete'), confirm=LxERP.t8('Do you really want to delete this object?'), id=id_prefix _ '_action_destroy') %] |
|
51 |
[%- END %] |
|
52 | 49 |
<a href="[% SELF.url_for(action="list") %]">[% LxERP.t8('Abort') %]</a> |
53 | 50 |
[% ELSE %] |
54 | 51 |
[% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save")) %] |
55 |
[% L.ajax_submit_tag("controller.pl?action=RequirementSpec/destroy", "#" _ id_prefix, LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %] |
|
56 | 52 |
[% END %] |
57 | 53 |
</p> |
58 | 54 |
</form> |
Auch abrufbar als: Unified diff
Kontextmenü mit Pflichtenheftaktionen überall anzeigen