X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec%2Fshow.html;h=285dcee155c0d37b1c69891047659b80b5294cdd;hb=0ce8f0ef9366a9dd5ac8c7aa9d5cbf130f73ad9d;hp=93aad7d794e57b915a0acc369ebcbd6b68ca0bb8;hpb=9bbb6912f72c14e23a25ec0a26e8d68b45b224b8;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/show.html b/templates/webpages/requirement_spec/show.html index 93aad7d79..285dcee15 100644 --- a/templates/webpages/requirement_spec/show.html +++ b/templates/webpages/requirement_spec/show.html @@ -1,4 +1,5 @@ -[%- USE JSON -%][%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE P -%] +[%- USE JSON -%][%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE P -%][%- USE JavaScript -%] +[% SET sections = SELF.requirement_spec.sections_sorted || [] %] [%- INCLUDE 'common/flash.html' %] @@ -11,6 +12,7 @@
  • [%- LxERP.t8("Content") %]
  • [%- LxERP.t8("Basic settings") %]
  • [%- LxERP.t8("Time and cost estimate") %]
  • +
  • [%- LxERP.t8("Additional articles") %]
  • [%- UNLESS SELF.requirement_spec.is_template %]
  • [%- LxERP.t8("Versions") %]
  • [%- LxERP.t8("Quotations and orders") %]
  • @@ -62,7 +64,7 @@ $(function() { metadata: { type: "sections" }, attr: { id: "sections", class: "section-context-menu" }, children: [ -[% FOREACH section = SELF.requirement_spec.sections %] +[% FOREACH section = sections %] [% P.requirement_spec_item_jstree_data(section).json %][% IF !loop.last %],[% END %] [% END %] ]}, @@ -78,7 +80,7 @@ $(function() { ]; var initially_open = ['tb-front', 'tb-back', 'sections' -[%- FOREACH section = SELF.requirement_spec.sections -%] +[%- FOREACH section = sections -%] , "fb-[% section.id %]" [%- FOREACH function_block = section.children -%] , "fb-[% function_block.id -%]" @@ -90,9 +92,15 @@ $(function() { initially_open: initially_open , tree_data: tree_data , is_template: [% SELF.requirement_spec.is_template ? 'true' : 'false' %] + , html_template_exists: [% SELF.html_template ? 'true' : 'false' %] [% IF SELF.requirement_spec_item %] , initially_selected_node: '#fb-[% SELF.requirement_spec_item.id %]' [% END %] + , time_based_units: { + [% FOREACH unit = SELF.time_based_units %] + [% UNLESS loop.first %], [% END %] "[% JavaScript.escape(unit.name) %]": true + [% END %] + } }); });