diff --git a/Resources/views/default.html.twig b/Resources/views/default.html.twig index 4f5d9aa..310b5f4 100644 --- a/Resources/views/default.html.twig +++ b/Resources/views/default.html.twig @@ -6,7 +6,7 @@ {% set locale = translationsFields.vars.name %}
  • - + {{ locale|capitalize }} {% if form.vars.default_locale == locale %}[Default]{% endif %} {% if translationsFields.vars.required %}*{% endif %} @@ -19,7 +19,7 @@ {% for translationsFields in form %} {% set locale = translationsFields.vars.name %} -
    +
    {{ form_errors(translationsFields) }} {{ form_widget(translationsFields) }}
    diff --git a/Resources/views/macros.html.twig b/Resources/views/macros.html.twig index 2fc988f..9c9f0c1 100644 --- a/Resources/views/macros.html.twig +++ b/Resources/views/macros.html.twig @@ -14,7 +14,7 @@ Example: {% set locale = translationsFields.vars.name %}
  • - + {{ locale|capitalize }} {% if form.vars.default_locale == locale %}[Default]{% endif %} {% if translationsFields.vars.required %}*{% endif %} @@ -27,7 +27,7 @@ Example: {% for translationsFields in form %} {% set locale = translationsFields.vars.name %} -
    +
    {% for translationsField in translationsFields if translationsField.vars.name in fieldsNames %} {{ form_row(translationsField) }} {% endfor %}