javiereguiluz/easy-admin-demo

Can't add a divider in the edit/create form

Closed this issue · 2 comments

Hi,
I have a problem when I add - { type: 'divider' } in product.yml
So, my product.yml look like this:
product.yml:

    easy_admin:
        entities:
            Product:
                 class: AppBundle\Entity\Product
                ...
                form:
                    fields:
                        - { property: 'createdAt', label: 'Crée le', css_class: 'col-sm-4' }
                        - { type: 'divider' }
                        - { property: 'name', label: 'Nom', css_class: 'col-sm-4' }

But it throw an Exeption:

RuntimeException in NormalizerConfigPass.php line 152: One of the values of the "fields" option for the "edit" view of the "AppBundle\Entity\Product" entity does not define the "property" option.

Thank you :)

@pepe95270 the divider and the other special elements are merged only in the dev-master branch. They will be available in the next stable version, to be released soon.

Ohh okay,
thanks