Sfoglia il codice sorgente

limit size for the edit title

Thomas Rabaix 11 anni fa
parent
commit
634188df6b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Resources/views/CRUD/base_edit.html.twig

+ 1 - 1
Resources/views/CRUD/base_edit.html.twig

@@ -13,7 +13,7 @@ file that was distributed with this source code.
 
 
 {% block title %}
 {% block title %}
     {% if admin.id(object) is not null %}
     {% if admin.id(object) is not null %}
-        {{ "title_edit"|trans({'%name%': admin.toString(object) }, 'SonataAdminBundle') }}
+        {{ "title_edit"|trans({'%name%': admin.toString(object)|truncate(15) }, 'SonataAdminBundle') }}
     {% else %}
     {% else %}
         {{ "title_create"|trans({}, 'SonataAdminBundle') }}
         {{ "title_create"|trans({}, 'SonataAdminBundle') }}
     {% endif %}
     {% endif %}