Modify label with GridBundle


#1

hi all,

i’am using the GridBundle. I want to modify the labels in the create and edit view but the label option in the config modify only the labels in the table view.

sylius_grid:
    grids:
        app_banner_grid:
            driver:
                name: doctrine/orm
                options:
                     class: AppBundle\Entity\Banner
            fields:
                title:
                    type: string
                    label: title // this label don't modify the label in the create and edit view
                    sortable: ~

solutions? and if i want to add a brief description after the label?

thanks


#2

ok. i have not read carefully the doc.

the GridBundle is only for the index view. to modify the label in edit and create view you have to edit the label in the form. to customize form you have to use custom template for the resource:

here the doc:
http://docs.sylius.com/en/1.2/components_and_bundles/bundles/SyliusResourceBundle/routing.html#using-custom-templates