[%- IF SELF.item.id -%]
[% LxERP.t8("Description of #1", SELF.item.fb_number) %]
[%- ELSIF SELF.item.item_type == 'function-block' -%]
[%- LxERP.t8("Add function block") %]
[%- ELSE -%]
[%- LxERP.t8("Add sub function block") %]
[%- END -%]:
[% L.textarea_tag(id_base _ '.description_as_restricted_html', SELF.item.description_as_restricted_html, id=id_base _ '_description', rows=8, style="width: 100%", class='texteditor') %]
[% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save'), id=id_base _ '_submit') %]
[%- LxERP.t8("Cancel") %]
[%- LxERP.t8("Complexity") %]:
[%- L.select_tag(id_base _ '.complexity_id', SELF.complexities, title_key='description', default=SELF.item.complexity_id, style="width: 100%") %]
[%- LxERP.t8("Risk") %]:
[%- L.select_tag(id_base _ '.risk_id', SELF.risks, title_key='description', default=SELF.item.risk_id, style="width: 100%") %]
[%- IF !SELF.item.children.size %]
[%- LxERP.t8("Time estimate") %]:
[%- P.man_days_tag(id_base _ '.time_estimation', SELF.item) %]
[%- END %]
[%- LxERP.t8("Dependencies") %]:
[%- L.select_tag(id_base _ '.dependencies[]', DEPENDENCIES, default=SELECTED_DEPENDENCIES, with_optgroups=1, multiple=1, size=8, style="width: 100%") %]