Revision 5211088f
Von Moritz Bunkus vor etwa 10 Jahren hinzugefügt
templates/webpages/requirement_spec_text_block/_predefined_text_inserter.js | ||
---|---|---|
1 |
[% USE JavaScript %] |
|
1 |
[% USE LxERP %][% USE JavaScript %]
|
|
2 | 2 |
function insert_selected_predefined_text() { |
3 | 3 |
var data = { |
4 | 4 |
[%- FOREACH pt = SELF.predefined_texts %] |
5 |
[% HTML.escape(pt.id) %]: {
|
|
5 |
[% JavaScript.escape(pt.id) %]: {
|
|
6 | 6 |
title: "[% JavaScript.escape(pt.title) %]", |
7 | 7 |
text: "[% JavaScript.escape(pt.text) %]" |
8 | 8 |
}[% UNLESS loop.last %],[% END %] |
Auch abrufbar als: Unified diff
Pflichtenhefte: benötigte Template-Plugins auch laden