1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- Templates
- =========
- You can customize the global layout by tweaking the ``SonataAdminBundle`` configuration.
- .. code-block:: yaml
- sonata_admin:
- templates:
- # default global templates
- layout: SonataAdminBundle::standard_layout.html.twig
- ajax: SonataAdminBundle::ajax_layout.html.twig
- # default value if done set, actions templates, should extends a global templates
- list: SonataAdminBundle:CRUD:list.html.twig
- show: SonataAdminBundle:CRUD:show.html.twig
- edit: SonataAdminBundle:CRUD:edit.html.twig
- You can also configure the templates used by the Form Framework while rendering the widget
- .. code-block:: yaml
- sonata_doctrine_orm_admin:
- templates:
- form: [ SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig ]
- filter: [ SonataDoctrineORMAdminBundle:Form:filter_admin_fields.html.twig ]
- You can also customize field types
- .. code-block:: yaml
- sonata_doctrine_orm_admin:
- templates:
- types:
- list:
- date: SonataAdminBundle:CRUD:date_field.html.twig
- datetime: SonataAdminBundle:CRUD:datetime_field.html.twig
- .. note::
- By default, if the ``SonataIntlBundle`` classes are availables, then the numeric and date fields will be
- localized with the current user locale (only for list, work in progress).
|