<%- __('pim_enrich.entity.family_variant.module.edit.description') %>
<%- __('pim_enrich.entity.family_variant.module.edit.common_attributes') %>
<% groupAttributes(commonAttributes, lockedAttributes).forEach(section => { %>
<%- i18n.getLabel(section.attributeGroup.labels, UserContext.get('catalogLocale'), section.attributeGroup.code) %> <%= renderSection(0, section.attributes, true) %>
<% }) %> <% if (commonAttributes.length === 0) { %>
<%- __('pim_enrich.entity.family_variant.module.edit.no_common_attributes') %>
<% } %>
<% familyVariant.variant_attribute_sets.forEach(function (level) { %>
<%- __('pim_enrich.entity.family_variant.module.edit.level_' + level.level) %>
<%- level.axes.map(function (axis) { return i18n.getLabel(getAttribute(axis).labels, UserContext.get('catalogLocale'), getAttribute(axis).code); }).join(', ') %> (<%- __('pim_enrich.entity.family_variant.module.edit.variant_axis_label') %>)
<% groupAttributes(level.attributes, lockedAttributes).forEach(section => { %> <% const movable = !(section.attributeGroup.locked || familyVariant.variant_attribute_sets.length === level.level); %> <% const deletable = !section.attributeGroup.locked; %>
<%- i18n.getLabel(section.attributeGroup.labels, UserContext.get('catalogLocale'), section.attributeGroup.code) %> <% if (deletable) { %> <% } %> <%= renderSection(level.level, section.attributes, movable) %>
<% }) %>
<% }); %>