- var initially_open = ['sections'
-[%- FOREACH section = SELF.requirement_spec.sections -%]
- , "fb-[% section.id %]"
- [%- FOREACH function_block = section.children -%]
- , "fb-[% function_block.id -%]"
- [%- END -%]
-[%- END -%]
- ];
-
- var tree_data = [{
- data: [% JSON.json(LxERP.t8("Sections")) %],
- metadata: { type: "sections" },
- attr: { id: "sections", class: "section-context-menu" },
- children: [
-[% FOREACH section = SELF.requirement_spec.sections %]
- [% P.requirement_spec_item_jstree_data(section).json %][% IF !loop.last %],[% END %]
-[% END %]
- ]}];
-
-[% UNLESS SELF.requirement_spec.is_template %]
- tree_data.unshift({
- data: [% JSON.json(LxERP.t8("Text blocks front")) %],