1 [%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE P -%]
2 [%- DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
4 <div id="time_cost_estimate_form_container" 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>
10 [%- SET at_least_one_function_block = 0 %]
12 <form method="post" id="edit_time_cost_estimate_form">
13 [%- L.hidden_tag('id', SELF.requirement_spec.id, id=id_prefix _ '_id') -%]
15 [%# time-cost-estimate-context-menu %]
16 <table class="time-cost-estimate">
18 [%- FOREACH section = SELF.requirement_spec.sections_sorted %]
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>
26 <tr class="listrow section">
27 <td colspan="5">[%- HTML.escape(section.fb_number) %]: [%- HTML.escape(section.title) %]</td>
30 [%- IF section.children.size %]
31 [%- SET at_least_one_function_block = 1 %]
32 [%- FOREACH child = section.children_sorted %]
33 [%- INCLUDE 'requirement_spec/_edit_time_and_cost_estimate_item.html'
43 [% L.button_tag("kivi.requirement_spec.standard_time_cost_estimate_ajax_call('save')", LxERP.t8("Save")) %]