diff --git a/lib/Alchemy/Phrasea/Controller/Admin/Fields.php b/lib/Alchemy/Phrasea/Controller/Admin/Fields.php index fc62bd5901..81e2de8af7 100644 --- a/lib/Alchemy/Phrasea/Controller/Admin/Fields.php +++ b/lib/Alchemy/Phrasea/Controller/Admin/Fields.php @@ -146,7 +146,7 @@ class Fields implements ControllerProviderInterface continue; } - $res[$tagname] = array( + $res[] = array( 'id' => $namespace . '/' . $tagname, 'label' => $datas['namespace'] . ' / ' . $datas['tagname'], 'value' => $datas['namespace'] . ':' . $datas['tagname'], @@ -155,8 +155,6 @@ class Fields implements ControllerProviderInterface } } - ksort($res); - return $app->json($res); } diff --git a/templates/web/admin/fields/index.html.twig b/templates/web/admin/fields/index.html.twig index f7bbb11eae..a4c3eda609 100644 --- a/templates/web/admin/fields/index.html.twig +++ b/templates/web/admin/fields/index.html.twig @@ -1,6 +1,3 @@ -{# empty Twig template #} - - {% include 'admin/fields/templates.html.twig' %}
@@ -14,14 +11,10 @@
-
- -
-
- -
+
+
- +{# bootstrap admin field application #} - \ No newline at end of file + diff --git a/templates/web/admin/fields/templates.html.twig b/templates/web/admin/fields/templates.html.twig index fe6a31cd28..479137c158 100644 --- a/templates/web/admin/fields/templates.html.twig +++ b/templates/web/admin/fields/templates.html.twig @@ -14,66 +14,62 @@