Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3cb776f2

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID 3cb776f2e0170534a92490933c5fb3c3ee387d74
  • Vorgänger d6b06170
  • Nachfolger 4ef768c9

Neues Design 2019 Standard-Code templates/webpages/requirement_spec/show.html

Unterschiede anzeigen:

templates/webpages/requirement_spec/show.html
6 6
[% USE JavaScript %]
7 7
[% SET sections = SELF.requirement_spec.sections_sorted || [] %]
8 8

  
9
[%- INCLUDE 'common/flash.html' %]
9
[% INCLUDE 'common/flash.html' %]
10 10

  
11
[%- INCLUDE 'requirement_spec/_header.html' %]
11
[% INCLUDE 'requirement_spec/_header.html' %]
12 12

  
13
[%- L.hidden_tag('requirement_spec_id', SELF.requirement_spec.id, 'data-is-template'=(SELF.requirement_spec.is_template ? 1 : 0)) -%]
13
[% L.hidden_tag('requirement_spec_id', SELF.requirement_spec.id, 'data-is-template'=(SELF.requirement_spec.is_template ? 1 : 0)) %]
14 14

  
15 15
<div id="requirement_spec_tabs" class="tabwidget">
16
 <ul>
17
  <li id="tab-header-function-block"><a href="#function-blocks-tab">[%- LxERP.t8("Content") %]</a></li>
18
  <li id="tab-header-basic-settings"><a href="controller.pl?action=RequirementSpec/ajax_show_basic_settings&id=[% HTML.url(SELF.requirement_spec.id) %]">[%- LxERP.t8("Basic settings") %]</a></li>
19
  <li id="tab-header-time-cost-estimate"><a href="controller.pl?action=RequirementSpec/ajax_show_time_and_cost_estimate&id=[% HTML.url(SELF.requirement_spec.id) %]">[%- LxERP.t8("Time and price estimate") %]</a></li>
20
  <li id="tab-header-additional-parts"><a href="controller.pl?action=RequirementSpecPart/show&requirement_spec_id=[% HTML.url(SELF.requirement_spec.id) %]">[%- LxERP.t8("Additional articles") %]</a></li>
21
  [%- UNLESS SELF.requirement_spec.is_template %]
22
   <li id="tab-header-versions"><a href="controller.pl?action=RequirementSpecVersion/list&requirement_spec_id=[% HTML.url(SELF.requirement_spec.id) %]">[%- LxERP.t8("Versions") %]</a></li>
23
   <li id="tab-header-quotations-orders"><a href="[% SELF.url_for(controller='RequirementSpecOrder', action='list', requirement_spec_id=SELF.requirement_spec.id) %]">[%- LxERP.t8("Quotations and orders") %]</a></li>
24
  [%- END %]
25
 </ul>
26

  
27
 <div id="function-blocks-tab" class="section-context-menu">
28
  [%- UNLESS SELF.requirement_spec.is_template %]
29
   <div id="requirement_spec_version">
30
    [%- INCLUDE 'requirement_spec/_version.html' requirement_spec=SELF.requirement_spec -%]
31
   </div>
32
  [%- END %]
16
 
17
<ul>
18
  <li id="tab-header-function-block"><a href="#function-blocks-tab">[% LxERP.t8("Content") %]</a></li>
19
  <li id="tab-header-basic-settings"><a href="controller.pl?action=RequirementSpec/ajax_show_basic_settings&id=[% HTML.url(SELF.requirement_spec.id) %]">[% LxERP.t8("Basic settings") %]</a></li>
20
  <li id="tab-header-time-cost-estimate"><a href="controller.pl?action=RequirementSpec/ajax_show_time_and_cost_estimate&id=[% HTML.url(SELF.requirement_spec.id) %]">[% LxERP.t8("Time and price estimate") %]</a></li>
21
  <li id="tab-header-additional-parts"><a href="controller.pl?action=RequirementSpecPart/show&requirement_spec_id=[% HTML.url(SELF.requirement_spec.id) %]">[% LxERP.t8("Additional articles") %]</a></li>
22
  [% UNLESS SELF.requirement_spec.is_template %] 
23
    <li id="tab-header-versions"><a href="controller.pl?action=RequirementSpecVersion/list&requirement_spec_id=[% HTML.url(SELF.requirement_spec.id) %]">[% LxERP.t8("Versions") %]</a></li>
24
    <li id="tab-header-quotations-orders"><a href="[% SELF.url_for(controller='RequirementSpecOrder', action='list', requirement_spec_id=SELF.requirement_spec.id) %]">[% LxERP.t8("Quotations and orders") %]</a></li>
25
  [% END %] 
26
</ul>
27

  
28
<div id="function-blocks-tab" class="section-context-menu">
29
  [% UNLESS SELF.requirement_spec.is_template %]
30
    <div id="requirement_spec_version">
31
      [% INCLUDE 'requirement_spec/_version.html' requirement_spec=SELF.requirement_spec %]
32
    </div>
33
  [% END %]
33 34

  
34 35
  <div id="column-container" class="clearfix">
35
   <div id="tree-column">
36
    <div id="tree"></div>
37
   </div>
36
    <div id="tree-column">
37
     <div id="tree"></div>
38
    </div>
38 39

  
39
   <div id="content-column" class="clearfix">
40
    [% L.hidden_tag('current_content_type', SELF.requirement_spec_item.id ? 'section' : '') %]
41
    [% L.hidden_tag('current_content_id',   SELF.requirement_spec_item.id) %]
40
    <div id="content-column" class="clearfix">
41
      [% L.hidden_tag('current_content_type', SELF.requirement_spec_item.id ? 'section' : '') %]
42
      [% L.hidden_tag('current_content_id',   SELF.requirement_spec_item.id) %]
42 43

  
43
    <div id="column-content">
44
     [%- IF SELF.requirement_spec_item -%]
45
      [%- INCLUDE 'requirement_spec_item/_section.html' requirement_spec_item=SELF.requirement_spec_item -%]
46
     [%- ELSE -%]
47
      [%- INCLUDE 'requirement_spec_item/_no_section.html' -%]
48
     [%- END -%]
44
      <div id="column-content">
45
        [% IF SELF.requirement_spec_item %]
46
          [% INCLUDE 'requirement_spec_item/_section.html' requirement_spec_item=SELF.requirement_spec_item %]
47
        [% ELSE %]
48
          [% INCLUDE 'requirement_spec_item/_no_section.html' %]
49
        [% END %]
49 50
    </div>
50 51
   </div>
51
  </div>
52
  </div><!-- /#column-container -->
52 53
 </div>
53
</div>
54 54

  
55
<script type="text/javascript">
56
 <!--
55

  
56

  
57
</div><!-- /#requirement_spec_tabs -->
58

  
59
<script type="text/javascript"><!--
57 60
$(function() {
58 61
  var tree_data = [
59 62
    { data:     [% JSON.json(LxERP.t8("Text blocks front")) %],
......
85 88
  ];
86 89

  
87 90
  var initially_open = ['tb-front', 'tb-back', 'sections'
88
[%- FOREACH section = sections -%]
91
[% FOREACH section = sections %]
89 92
        , "fb-[% section.id %]"
90
 [%- FOREACH function_block = section.children -%]
91
        , "fb-[% function_block.id -%]"
92
 [%- END -%]
93
[%- END -%]
93
 [% FOREACH function_block = section.children %]
94
        , "fb-[% function_block.id %]"
95
 [% END %]
96
[% END %]
94 97
  ];
95 98

  
96 99
  kivi.requirement_spec.initialize_requirement_spec({
......
109 112
  });
110 113
});
111 114

  
112
  -->
113
</script>
115
  --></script>

Auch abrufbar als: Unified diff