Pārlūkot izejas kodu

Merge pull request #475 from EmmanuelVella/fad32446bb00788071d30d5b15e1a85526f00eea

Add list and show time templates
Thomas 13 gadi atpakaļ
vecāks
revīzija
67a52e3fa8

+ 9 - 0
Resources/views/CRUD/list_time.html.twig

@@ -0,0 +1,9 @@
+{% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}
+
+{% block field %}
+    {%- if value is empty -%}
+         
+    {%- else -%}
+        {{ value|date('H:i:s') }}
+    {%- endif -%}
+{% endblock %}

+ 15 - 0
Resources/views/CRUD/show_time.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|date('H:i:s') }}{% endblock %}
+