X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec%2Fshow.html;h=3cd23ef75a8a0cd72bbee8d28a17397d9a587c22;hb=56eff7149decfec3250984d74307b8dc7b568d6a;hp=759add13fdcc8d524f03b8dc47002adc1e3790c1;hpb=e2f753a4cb6c299fc6440ae94e20891a5a0c77cb;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/show.html b/templates/webpages/requirement_spec/show.html index 759add13f..3cd23ef75 100644 --- a/templates/webpages/requirement_spec/show.html +++ b/templates/webpages/requirement_spec/show.html @@ -1,123 +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 || [] %] -

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

+[%- INCLUDE 'common/flash.html' %] -[%- L.hidden_tag('requirement_spec_id', SELF.requirement_spec.id) -%] +[%- INCLUDE 'requirement_spec/_header.html' %] -
- [%- INCLUDE 'requirement_spec/_version.html' requirement_spec=SELF.requirement_spec -%] -
+[%- 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) %] +
+ [% 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 -%] +
+ [%- 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 -%] +
+