Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ac724d83

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID ac724d835342bff1be996591a0f84c80235715d5
  • Vorgänger 349c26cc
  • Nachfolger 1df72f32

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

Unterschiede anzeigen:

templates/webpages/requirement_spec/_edit_time_and_cost_estimate.html
5 5
[% DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
6 6

  
7 7
<div id="time_cost_estimate_form_container" class="edit-time-cost-estimate-context-menu">
8
 [%- IF !SELF.requirement_spec.sections.size %]
9
  <p>[%- LxERP.t8("Neither sections nor function blocks have been created yet.") %]</p>
8
<div class="wrapper">
9
 [% IF !SELF.requirement_spec.sections.size %]
10
  <p>[% LxERP.t8("Neither sections nor function blocks have been created yet.") %]</p>
10 11

  
11
 [%- ELSE %]
12
 [% ELSE %]
12 13

  
13
  [%- SET at_least_one_function_block = 0 %]
14
  [% SET at_least_one_function_block = 0 %]
14 15

  
15 16
  <form method="post" id="edit_time_cost_estimate_form">
16
   [%- L.hidden_tag('id', SELF.requirement_spec.id, id=id_prefix _ '_id') -%]
17
   [% L.hidden_tag('id', SELF.requirement_spec.id, id=id_prefix _ '_id') %]
17 18

  
18 19
   [%# time-cost-estimate-context-menu %]
19
   <table class="time-cost-estimate">
20
    <tbody>
21
     [%- FOREACH section = SELF.requirement_spec.sections_sorted %]
22
      <tr class="listheading">
23
       <th>[%- LxERP.t8("Function block") %]</th>
24
       <th>[%- LxERP.t8("Complexity") %]</th>
25
       <th>[%- LxERP.t8("Risk") %]</th>
26
       <th align="right">[%- LxERP.t8("Time estimate") %]</th>
20
   <table class="tbl-list time-cost-estimate test">
21
     [% FOREACH section = SELF.requirement_spec.sections_sorted %]
22
     <thead>
23
      <tr>
24
       <th>[% LxERP.t8("Function block") %]</th>
25
       <th>[% LxERP.t8("Complexity") %]</th>
26
       <th>[% LxERP.t8("Risk") %]</th>
27
       <th class="right">[% LxERP.t8("Time estimate") %]</th>
27 28
      </tr>
28

  
29
      </thead>
30
    <tbody>
29 31
      <tr class="listrow section">
30
       <td colspan="5">[%- HTML.escape(section.fb_number) %]: [%- HTML.escape(section.title) %]</td>
32
       <th class="caption" colspan="4">[% HTML.escape(section.fb_number) %]: [% HTML.escape(section.title) %]</td>
31 33
      </tr>
32 34

  
33
      [%- IF section.children.size %]
34
       [%- SET at_least_one_function_block = 1 %]
35
       [%- FOREACH child = section.children_sorted %]
36
        [%- INCLUDE 'requirement_spec/_edit_time_and_cost_estimate_item.html'
35
      [% IF section.children.size %]
36
       [% SET at_least_one_function_block = 1 %]
37
       [% FOREACH child = section.children_sorted %]
38
        [% INCLUDE 'requirement_spec/_edit_time_and_cost_estimate_item.html'
37 39
                    id_prefix = id_prefix
38 40
                    item      = child
39 41
                    level     = 1 %]
40
       [%- END %]
41
      [%- END -%]
42
     [%- END -%]
42
       [% END %]
43
      [% END %]
44
     [% END %]
43 45
    </tbody>
44 46
   </table>
45 47

  
46 48
   [% L.button_tag("kivi.requirement_spec.standard_time_cost_estimate_ajax_call('save')", LxERP.t8("Save")) %]
47 49
  </form>
48
 [%- END %]
50
 [% END %]
51
</div>
49 52
</div>

Auch abrufbar als: Unified diff