X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec%2Fshow.html;h=3cd23ef75a8a0cd72bbee8d28a17397d9a587c22;hb=1c4bd891ffd4de143b4ca7e46b904f41daf9b36b;hp=53fb52d0f3c1f577cd9e668f92925339bb28c74f;hpb=f10e650c26ed930ce04f4ca1bd3f21d0036e5ba4;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/show.html b/templates/webpages/requirement_spec/show.html index 53fb52d0f..3cd23ef75 100644 --- a/templates/webpages/requirement_spec/show.html +++ b/templates/webpages/requirement_spec/show.html @@ -1,125 +1,107 @@ -[%- 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' %] -

[%- HTML.escape(SELF.requirement_spec.displayable_name('format', 'with_customer')) %] - [% LxERP.t8("for") %] - [% HTML.escape(SELF.requirement_spec.customer.displayable_name) -%] -

+[%- INCLUDE 'requirement_spec/_header.html' %] -[%- L.hidden_tag('requirement_spec_id', SELF.requirement_spec.id) -%] +[%- L.hidden_tag('requirement_spec_id', SELF.requirement_spec.id, 'data-is-template'=(SELF.requirement_spec.is_template ? 1 : 0)) -%] -
- [%- INCLUDE 'requirement_spec/_version.html' requirement_spec=SELF.requirement_spec -%] -
+
+ -
-
-
-
+
+ [%- 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/_single_section.html' requirement_spec_item=SELF.requirement_spec_item -%] - [%- ELSE -%] - no section - [%#- render :partial => 'requirement_spec_items/no_section' -%] - [%- 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 -%] +
+