<%- __('pim_enrich.entity.family.variant.common.title') %>
<% 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.common.empty') %>
<% } %>
<% familyVariant.variant_attribute_sets.forEach(function (level) { %>
<%- __('pim_enrich.entity.family.variant.level_' + level.level + '.label') %>
<%- level.axes.reduce(function (result, axis) { result.push(i18n.getLabel(getAttribute(axis).labels, UserContext.get('catalogLocale'), getAttribute(axis).code)) return result; }, []).join(', ') %> (<%- __('pim_enrich.entity.family.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) %>
<% }) %>
<% }); %>