{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 *}

{$_title|escape}

{if !empty($product_id)}
[`The feature will be available for all products of this type.`]
{/if} {if $_is_divider}

[`Headings help organize a long list of features into smaller groups. Examples of headings: “Main features”, “Extra features“, “Manufacturer details”.`]

{/if}
{* 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.`]
{/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 )}  
{/if}{/capture} {/strip}