[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE P -%] [%- DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
[%- IF !SELF.requirement_spec.sections.size %]

[%- LxERP.t8("Neither sections nor function blocks have been created yet.") %]

[%- ELSE %] [%- SET at_least_one_function_block = 0 %]
[%- L.hidden_tag('id', SELF.requirement_spec.id, id=id_prefix _ '_id') -%] [%# time-cost-estimate-context-menu %] [%- FOREACH section = SELF.requirement_spec.sections_sorted %] [%- IF section.children.size %] [%- SET at_least_one_function_block = 1 %] [%- FOREACH child = section.children_sorted %] [%- INCLUDE 'requirement_spec/_edit_time_and_cost_estimate_item.html' id_prefix = id_prefix item = child level = 1 %] [%- END %] [%- END -%] [%- END -%]
[%- LxERP.t8("Function block") %] [%- LxERP.t8("Complexity") %] [%- LxERP.t8("Risk") %] [%- LxERP.t8("Time estimate") %]
[%- HTML.escape(section.fb_number) %]: [%- HTML.escape(section.title) %]
[% L.button_tag("kivi.requirement_spec.standard_time_cost_estimate_ajax_call('save')", LxERP.t8("Save")) %]
[%- END %]