Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5d0056d6

Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 5d0056d6fd59f2a33bd1171ed9d87cc46328e984
  • Vorgänger 78e1d7a0
  • Nachfolger 13011246

Neues kivitendo Design Aenderungen in templates/webpages/requirement_spec/..

Unterschiede anzeigen:

templates/webpages/requirement_spec/_show_time_and_cost_estimate.html
1
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE P -%]
2
[%- DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
3
[%- SET total_cost = 0 %]
1
[% USE LxERP %]
2
[% USE L %]
3
[% USE HTML %]
4
[% USE P %]
5
[% DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
6
[% SET total_cost = 0 %]
4 7

  
5 8
<div id="time_cost_estimate"[% IF initially_hidden %] style="display: none;"[% END %]>
6
 [%- IF !SELF.requirement_spec.sections.size %]
7
  <p>[%- LxERP.t8("Neither sections nor function blocks have been created yet.") %]</p>
9
<div class="wrapper">
8 10

  
9
 [%- ELSE %]
11
[% IF !SELF.requirement_spec.sections.size %]
12
  <p class="message message_info">[% LxERP.t8("Neither sections nor function blocks have been created yet.") %]</p>
10 13

  
11
  [%- SET at_least_one_function_block = 0 %]
14
[% ELSE %]
12 15

  
13
  <table class="time-cost-estimate time-cost-estimate-context-menu">
14
   <tbody>
15
    [%- FOREACH section = SELF.requirement_spec.sections_sorted %]
16
     <tr class="listheading">
17
      <th>[%- LxERP.t8("Function block") %]</th>
18
      <th>[%- LxERP.t8("Complexity") %]</th>
19
      <th>[%- LxERP.t8("Risk") %]</th>
20
      <th align="right">[%- LxERP.t8("Time estimate") %]</th>
21
      [%- UNLESS SELF.requirement_spec.is_template %]
22
       <th align="right">[%- LxERP.t8("Price") %]</th>
23
      [%- END %]
24
     </tr>
16
[% SET at_least_one_function_block = 0 %]
25 17

  
26
     <tr class="listrow section">
27
      <td colspan="5">[%- HTML.escape(section.fb_number) %]: [%- HTML.escape(section.title) %]</td>
28
     </tr>
29

  
30
     [%- IF section.children.size %]
31
      [%- SET at_least_one_function_block = 1 %]
32
      [%- FOREACH child = section.children_sorted %]
33
       [%- INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
34
                   section = section
35
                   item    = child
36
                   level   = 1 %]
37
      [%- END %]
38

  
39
      <tr class="listrow subtotal">
40
       <td style="padding-left: 50px" colspan="3" class="sum">[%- LxERP.t8("Sum for section") -%]:</td>
41
       <td align="right" nowrap>[%- P.format_man_days(section.time_estimation, 'skip_zero'=1) -%]</td>
42
       [%- UNLESS SELF.requirement_spec.is_template %]
43
        [%- SET section_cost = section.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor;
44
                total_cost   = total_cost + section_cost %]
45
        <td align="right" nowrap>[%- LxERP.format_amount(section_cost, 2) -%] EUR</td>
46
       [%- END %]
18
<table class="tbl-list time-cost-estimate time-cost-estimate-context-menu">
19
  <thead>
20
    <tr>
21
      <th>[% LxERP.t8("Function block") %]</th>
22
      <th>[% LxERP.t8("Complexity") %]</th>
23
      <th>[% LxERP.t8("Risk") %]</th>
24
      <th class="right">[% LxERP.t8("Time estimate") %]</th>
25
      [% UNLESS SELF.requirement_spec.is_template %]
26
       <th class="right">[% LxERP.t8("Price") %]</th>
27
      [% END %]
28
    </tr>
29
  </thead>
30
  <tbody>
31
  [% FOREACH section = SELF.requirement_spec.sections_sorted %]
32
    <tr class="section">
33
      <th colspan="5"><b>[% HTML.escape(section.fb_number) %]: [% HTML.escape(section.title) %]</b></th>
34
    </tr>
35
    [% IF section.children.size %]
36
      [% SET at_least_one_function_block = 1 %]
37
      [% FOREACH child = section.children_sorted %]
38
        [% INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
39
                    section = section
40
                    item    = child
41
                    level   = 1 %]
42
      [% END %]
43
      <tr class="subtotal">
44
        <th colspan="3" class="right">[% LxERP.t8("Sum for section") %]:</th>
45
        <td class="numeric">[% P.format_man_days(section.time_estimation, 'skip_zero'=1) %]</td>
46
        [% UNLESS SELF.requirement_spec.is_template %]
47
         [% SET section_cost = section.time_estimation * SELF.requirement_spec.hourly_rate * section.sellprice_factor;
48
                 total_cost   = total_cost + section_cost %]
49
         <!-- PENDENT: hier ist EURO angegeben -->
50
         <td class="numeric">[% LxERP.format_amount(section_cost, 2) %] EUR</td>
51
        [% END %]
47 52
      </tr>
48
     [%- END -%]
49
    [%- END -%]
50
   </tbody>
51

  
52
   <tfoot>
53
      [% END %]
54
    [% END %]
55
  </tbody>
56
  <tfoot>
53 57
    <tr>
54
     <td colspan="3">[%- LxERP.t8("Sum for #1", SELF.requirement_spec.type.description) -%]:</td>
55
     <td align="right" nowrap>[%- P.format_man_days(SELF.requirement_spec.time_estimation) -%]</td>
56
     [%- UNLESS SELF.requirement_spec.is_template %]
57
      <td align="right" nowrap>[%- LxERP.format_amount(total_cost, 2) -%] EUR</td>
58
     [%- END %]
58
      <th class="right" colspan="3">[% LxERP.t8("Sum for #1", SELF.requirement_spec.type.description) %]:</th>
59
      <td class="right">[% P.format_man_days(SELF.requirement_spec.time_estimation) %]</td>
60
      [% UNLESS SELF.requirement_spec.is_template %]
61
        <!-- PENDENT: hier ist EURO angegeben -->
62
        <td class="right" >[% LxERP.format_amount(total_cost, 2) %] EUR</td>
63
      [% END %]
59 64
    </tr>
60 65
   </tfoot>
61
  </table>
62
 [%- END %]
63
</div>
66
</table>
67

  
68
[% END %]
69

  
70
</div><!-- /.wrapper -->
71
</div><!-- /#time_cost_estimate -->

Auch abrufbar als: Unified diff