From cc99e0b7d3a5d7fc7c9c050457769300527c885a Mon Sep 17 00:00:00 2001 From: Svante Richter Date: Fri, 30 Sep 2016 13:57:35 +0200 Subject: [PATCH] locale_data shouldn't have a field. --- templates/fields/_locale_data.twig | 106 ----------------------------- 1 file changed, 106 deletions(-) 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 %} -
-
- - - -