{strip} {$_is_divider = false} {if !empty($feature.type) && $feature.type === "divider"} {$_is_divider = true} {/if} {$_title = _w("New feature")} {$_button_text = _w("Save")} {if !empty($feature.id)} {$_title = sprintf("[`Feature “%s”`]", $feature.name|default:"")} {/if} {if !empty($_is_divider)} {if !empty($feature.name)} {$_title = sprintf("[`Feature group heading “%s”`]", $feature.name|default:"")} {else} {$_title = _w("Feature group heading")} {/if} {/if} {$_active_kind_id = null} {$_active_kind = null} {if !empty($feature.kind)} {$_active_kind_id = $feature.kind} {if !empty($_active_kind_id) && !empty($kinds[$_active_kind_id])} {$_active_kind = $kinds[$_active_kind_id]} {/if} {/if} {$_active_format_id = null} {$_active_format = null} {if !empty($_active_kind.formats) && !empty($feature.format)} {$_active_format_id = $feature.format} {if !empty($_active_format_id) && in_array($_active_format_id, $_active_kind.formats) && !empty($formats[$_active_format_id])} {$_active_format = $formats[$_active_format_id]} {/if} {/if} {function name="_render_feature_value_item"}
{/function} {capture assign="_unit_select"} {/capture} {capture assign="_color_widget"}
{/capture} {capture assign="_feature_value_item"}{_render_feature_value_item}{/capture} {/strip}
{* HEADER *} {* CONTENT *} {* FOOTER *} {$wa->csrf()}
{strip} {capture assign="_kind_warning_message"}
  [`When the feature type is changed, its values for all products are automatically converted to the new type.`] [`In cases when a feature value cannot be correctly converted to a new data type, such a value may be lost. For instance, when you change the feature type from text to numbers, then text values containing only numbers, such as “100” or “200”, will be converted to corresponding numbers 100 and 200, and all values which have no numerical representation, such as “yes”, “no”, “red”, etc., will be lost and converted to number 0. There will be no option to restore such lost values.`]
{/capture} {capture assign="_skus_warning_message"}{if $can_disable_sku && $sku_values_count > 0}
  {_w( 'If you disable the availability of this feature in product SKUs’ properties, this will delete all its values from %d SKU.', 'If you disable the availability of this feature in product SKUs’ properties, this will delete all its values from %d SKUs.', $sku_values_count )}   [`Deleted will be only feature values stored in SKUs’ properties. Values stored in products’ properties will not be affected.`]
{/if}{/capture} {/strip}