Pflichtenheftabschätzung: Bei RETURN per AJAX speichern; "Speichern"-Button anzeigen
[kivitendo-erp.git] / templates / webpages / requirement_spec / _edit_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" class="edit-time-cost-estimate-context-menu">
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   <form method="post" id="edit_time_cost_estimate_form">
13    [%- L.hidden_tag('id', SELF.requirement_spec.id, id=id_prefix _ '_id') -%]
14
15    [%# time-cost-estimate-context-menu %]
16    <table class="time-cost-estimate">
17     <tbody>
18      [%- FOREACH section = SELF.requirement_spec.sections %]
19       <tr class="listheading">
20        <th>[%- LxERP.t8("Function block") %]</th>
21        <th>[%- LxERP.t8("Complexity") %]</th>
22        <th>[%- LxERP.t8("Risk") %]</th>
23        <th align="right">[%- LxERP.t8("Time estimate") %]</th>
24       </tr>
25
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 %]
33         [%- INCLUDE 'requirement_spec/_edit_time_and_cost_estimate_item.html'
34                     id_prefix = id_prefix
35                     item      = child
36                     level     = 1 %]
37        [%- END %]
38       [%- END -%]
39      [%- END -%]
40     </tbody>
41    </table>
42
43    [% L.button_tag("kivi.requirement_spec.standard_time_cost_estimate_ajax_call('save')", LxERP.t8("Save")) %]
44   </form>
45  [%- END %]
46 </div>