Pflichtenhefte: Zeit- und Kostenschätzungsmaske
[kivitendo-erp.git] / 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
4 <div id="time_cost_estimate">
5  [%- IF !SELF.requirement_spec.sections.size %]
6   <p>[%- LxERP.t8("Neither sections nor function blocks have been created yet.") %]</p>
7
8  [%- ELSE %]
9
10   [%- SET at_least_one_function_block = 0 %]
11
12   <table class="time-cost-estimate time-cost-estimate-context-menu">
13    <tbody>
14     [%- FOREACH section = SELF.requirement_spec.sections %]
15      <tr class="listheading">
16       <th>[%- LxERP.t8("Function block") %]</th>
17       <th>[%- LxERP.t8("Complexity") %]</th>
18       <th>[%- LxERP.t8("Risk") %]</th>
19       <th align="right">[%- LxERP.t8("Time estimate") %]</th>
20       <th align="right">[%- LxERP.t8("Cost") %]</th>
21      </tr>
22
23      <tr class="listrow section">
24       <td colspan="5">[%- HTML.escape(section.fb_number) %]: [%- HTML.escape(section.title) %]</td>
25      </tr>
26
27      [%- IF section.children.size %]
28       [%- SET at_least_one_function_block = 1 %]
29       [%- FOREACH child = section.children %]
30        [%- INCLUDE 'requirement_spec/_show_time_and_cost_estimate_item.html'
31                    item  = child
32                    level = 1 %]
33       [%- END %]
34
35       <tr class="listrow subtotal">
36        <td style="padding-left: 50px" colspan="3" class="sum">[%- LxERP.t8("Sum for section") -%]:</td>
37        <td align="right" nowrap>[%- P.format_man_days(section.time_estimation, 'skip_zero'=1) -%]</td>
38        <td align="right" nowrap>[%- LxERP.format_amount(section.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR</td>
39       </tr>
40      [%- END -%]
41     [%- END -%]
42    </tbody>
43
44    <tfoot>
45     <tr>
46      <td colspan="3">[%- LxERP.t8("Sum for #1", SELF.requirement_spec.type.description) -%]:</td>
47      <td align="right" nowrap>[%- P.format_man_days(SELF.requirement_spec.time_estimation) -%]</td>
48      <td align="right" nowrap>[%- LxERP.format_amount(SELF.requirement_spec.time_estimation * SELF.requirement_spec.hourly_rate, 2) -%] EUR</td>
49     </tr>
50    </tfoot>
51   </table>
52  [%- END %]
53 </div>