X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec%2Fshow.html;h=285dcee155c0d37b1c69891047659b80b5294cdd;hb=cff1389b37e5adfde7734718a02290421aa1bf9a;hp=756fbc85c731b0475b300addf282c663aa3a91a1;hpb=0c3193511e1ea50fad793887ede6ac5732d85074;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/show.html b/templates/webpages/requirement_spec/show.html index 756fbc85c..285dcee15 100644 --- a/templates/webpages/requirement_spec/show.html +++ b/templates/webpages/requirement_spec/show.html @@ -1,4 +1,4 @@ -[%- 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' %] @@ -92,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 %] + } }); });