{% trans_default_domain 'admin' %}

{{ automaticMerge ? 'bulk.automaticMerge'|trans : 'bulk.manualMerge'|trans }}

{% if (config.duplicates.duplicatesByAggregation) and automaticMerge %} {% set aggregate = duplicates[0] %} {% set aggregatedElements = aggregate.aggregatedElements %}
  • {{ aggregate.name }} {% if aggregate.sourceKey %} ({{ aggregate.sourceKey }}){% endif %} {{ ('elements.fields.status_choices.' ~ aggregate.status)|trans({}, 'admin') }}
  • {% for aggregatedElement in aggregatedElements %}
  • {{ aggregatedElement.name }} {% if aggregatedElement.sourceKey %} ({{ aggregatedElement.sourceKey }}){% endif %} {{ ('elements.fields.status_choices.' ~ aggregatedElement.status)|trans({}, 'admin') }} {% for prop in config.duplicates.fieldsInvolvedInDetection %} {% if prop != 'name' %} {% set value = duplicate.getProperty(prop) %} {% if value %} {{ prop }} : {{ value }} {% endif %} {% endif %} {% endfor %}
  • {% endfor %} {% else %} {% for duplicate in duplicates %}
  • {% if duplicate.isAggregate() %} {{ ('elements.fields.status_choices.' ~ duplicate.status)|trans({}, 'admin') }} {% endif %} {{ duplicate.name }} {% if duplicate.sourceKey %} ({{ duplicate.sourceKey }}){% endif %} {% if automaticMerge %} {% if loop.first %} {{ 'bulk.duplicateKept'|trans }} {% else %} {{ 'bulk.duplicateDeleted'|trans }} {% endif %} {% endif %} {% for prop in config.duplicates.fieldsInvolvedInDetection %} {% if prop != 'name' %} {% set value = duplicate.getProperty(prop) %} {% if value %} {{ prop }} : {{ value }} {% endif %} {% endif %} {% endfor %}
  • {% endfor %} {% endif %}