{# Example: {% import "@A2lixTranslationForm/macros.html.twig" as a2lixTranslations %} {{ a2lixTranslations.partialTranslations(editForm.translations, ['title','description']) }} {{ a2lixTranslations.partialTranslations(editForm.translations, ['url']) }} #} {% macro partialTranslations(form, fieldsNames) %} {{ form_errors(form) }}
{% for translationsFields in form %} {% set locale = translationsFields.vars.name %}
{% for translationsField in translationsFields|filter(translationsField => translationsField.vars.name in fieldsNames) %} {{ form_row(translationsField) }} {% endfor %}
{% endfor %}
{% endmacro %}