diff --git a/templates/fields/_locale_data.twig b/templates/fields/_locale_data.twig index b2cc18d..e69de29 100644 --- a/templates/fields/_locale_data.twig +++ b/templates/fields/_locale_data.twig @@ -1,106 +0,0 @@ -{% set locales = app['translate.config'].getLocales() %} -{% set currentkey = locales|keys|first %} -{% set current = locales|first %} -{% set translatable = [] %} - -{% for name, field in context.contenttype.fields %} - {% if field.is_translateable is defined and field.is_translateable == true %} - {% set translatable = translatable|merge(['#'~name, '[name="'~name~'"]', '[name^="'~name~'[0]"]', '[name="'~name~'[file]"]']) %} - {% endif %} -{% endfor %} - -{% for key, option in locales %} - {% set current = option.get('slug') == app['translate.slug'] ? option : current %} - {% set currentkey = option.get('slug') == app['translate.slug'] ? key : currentkey %} -{% endfor %} - - - -
-
- {% if app.request.get('id') is not empty %} - - {% endif %} -
-
- - - -