{% set element = element ?? null %} {% set namespace = namespace is defined ? namespace : 'fields' %} {% namespace namespace %} {% for field in fields %} {% set translatable = field.getIsTranslatable() %} {% if translatable %} {% switch field.translationMethod %} {% case 'site' %} {% set translationDescription = 'This field is translated for each site.'|t('app') %} {% case 'siteGroup' %} {% set translationDescription = 'This field is translated for each site group.'|t('app') %} {% case 'language' %} {% set translationDescription = 'This field is translated for each language.'|t('app') %} {% endswitch %} {% endif %}
{{ field.name | t('site') }} {% if field.instructions %} {{ field.instructions | t('site') | e | md }} {% endif %} {% if translatable %} {% endif %}
{% include "super-table/field" with { field: field, required: field.required, element: element, static: static ?? false, registerDeltas: registerDeltas ?? false, } only %}
{% endfor %} {% endnamespace %}