Pflichtenheftitems: Typen direkt in Tabelle speichern
[kivitendo-erp.git] / templates / webpages / requirement_spec_item / _function_block_form.html
index cdf2528..17a59c2 100644 (file)
@@ -2,9 +2,9 @@
 [% DEFAULT id_base = 'edit_function_block_' _ SELF.item.id %]
 [%- SET a_options = '' %]
 [%- IF SELF.item.id %]
- [%- SET a_options = "to_show: '#" _ SELF.item.get_type _ "-content-top-" _ SELF.item.id _ "'" %]
+ [%- SET a_options = "to_show: '#" _ SELF.item.item_type _ "-content-top-" _ SELF.item.id _ "'" %]
 [%- END %]
-[%- IF SELF.item.get_type == 'sub-function-block' %]
+[%- IF SELF.item.item_type == 'sub-function-block' %]
  [%- SET a_options = a_options ? a_options _ ', ' : a_options %]
  [%- SET a_options = a_options _ "to_hide_if_empty: '#sub-function-block-container-" _ SELF.item.parent_id _ "'" %]
 [%- END %]
@@ -13,6 +13,7 @@
  [% L.hidden_tag('id',                             SELF.item.id, id=id_base _ '_id') %]
  [% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.item.requirement_spec_id) %]
  [% L.hidden_tag(id_base _ '.parent_id',           SELF.item.parent_id) %]
+ [% L.hidden_tag(id_base _ '.item_type',           SELF.item.item_type) %]
  [% IF insert_after %]
   [% L.hidden_tag(id_base _ '.insert_after',       insert_after) %]
  [% END %]
@@ -39,7 +40,7 @@
   <div style="width: 59%">
 [%- IF SELF.item.id -%]
    [% LxERP.t8("Description of #1", SELF.item.fb_number) %]
-[%- ELSIF SELF.item.get_type == 'function-block' -%]
+[%- ELSIF SELF.item.item_type == 'function-block' -%]
    [%- LxERP.t8("Add function block") %]
 [%- ELSE -%]
    [%- LxERP.t8("Add sub function block") %]