[% USE JSON %] [% USE HTML %] [% USE L %] [% USE LxERP %] [% USE P %] [% USE JavaScript %] [% SET sections = SELF.requirement_spec.sections_sorted || [] %] [% INCLUDE 'common/flash.html' %] [% INCLUDE 'requirement_spec/_header.html' %] [% L.hidden_tag('requirement_spec_id', SELF.requirement_spec.id, 'data-is-template'=(SELF.requirement_spec.is_template ? 1 : 0)) %]
[% UNLESS SELF.requirement_spec.is_template %]
[% INCLUDE 'requirement_spec/_version.html' requirement_spec=SELF.requirement_spec %]
[% END %]
[% L.hidden_tag('current_content_type', SELF.requirement_spec_item.id ? 'section' : '') %] [% L.hidden_tag('current_content_id', SELF.requirement_spec_item.id) %]
[% IF SELF.requirement_spec_item %] [% INCLUDE 'requirement_spec_item/_section.html' requirement_spec_item=SELF.requirement_spec_item %] [% ELSE %] [% INCLUDE 'requirement_spec_item/_no_section.html' %] [% END %]