Browse Source

Add trans type for list and show action

Thomas Rabaix 13 years ago
parent
commit
74448031d3

+ 15 - 0
Resources/views/CRUD/list_trans.html.twig

@@ -0,0 +1,15 @@
+{#
+
+This file is part of the Sonata package.
+
+(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+
+#}
+{% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}
+
+{% block field%}
+    {{value|trans({}, field_description.options.catalogue)}}
+{% endblock %}

+ 15 - 0
Resources/views/CRUD/show_trans.html.twig

@@ -0,0 +1,15 @@
+{#
+
+This file is part of the Sonata package.
+
+(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+
+#}
+{% extends 'SonataAdminBundle:CRUD:base_show_field.html.twig' %}
+
+{% block field%}
+    {{value|trans({}, field_description.options.catalogue)}}
+{% endblock %}