Remove delete checkbox Sonata Admin Bundle

GBRocks

I am using Sonata admin bundle and I have embedded admins. The child entities are listed as a table structure. I have removed the delete route for the child admin. But still delete checkbox is coming when the child is embedded.

i.e I have a Product table and a price table. I am embedding the price table in the product table. In the price table I am able to remove the delete button. But when embedded, the delete checkbox is appearing in the product table and if checked and updated, the row gets deleted. Could anyone of you please help me remove the delete checkbox..?? Thanks in advance

GBRocks

The type option can do the job for embedded admins like below.

$formMapper
    ->add('field_name', 'sonata_type_collection',
                array('type_options' => array('delete' => false)),
                array(
                    'edit'   => 'inline',
                    'inline' => 'table'
                ))
        ;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Sonata admin bundle : unable to remove relation with sonata_type_admin

From Dev

sonata admin bundle symfony

From Dev

CKEditor not showing with Sonata Formatter (Sonata Admin Bundle)

From Dev

Use tags in Sonata Admin Bundle

From Dev

Configure Menu in Sonata Admin Bundle

From Dev

Conflicts with sonata admin bundle and LiipFunctionalTestBundle

From Dev

Sonata Admin Bundle - String Validation

From Dev

List Images in sonata admin bundle

From Dev

Use tags in Sonata Admin Bundle

From Dev

Sonata Admin Bundle configureRoutes getPersistentParameters

From Dev

Conflicts with sonata admin bundle and LiipFunctionalTestBundle

From Dev

Sonata Media Bundle with Sonata Admin Bundle 3.0 (or 2.4)

From Dev

Sonata User Bundle + Admin Bundle admin redirect after login

From Dev

JSON array to table Sonata admin bundle

From Dev

Show sidebar in show view - Sonata admin bundle

From Dev

Error in file upload with sonata-admin bundle

From Dev

Sonata Admin Bundle custom routes using annotations

From Dev

Customise exported CSV content of Sonata Admin bundle

From Dev

Store Logged in user data in sonata admin bundle

From Dev

Is it possible to add a translatable association in Sonata Admin Bundle?

From Dev

Adding entity not managed by Sonata Admin Bundle

From Dev

disable action in sonata admin bundle CRUD

From Dev

Show sidebar in show view - Sonata admin bundle

From Dev

Sonata Admin Bundle custom routes using annotations

From Dev

Create new field type in sonata admin bundle

From Dev

How to display a photo in Sonata Admin Bundle

From Dev

Set a field like choose in sonata Admin bundle

From Dev

Gedmo translatable / default locale and sonata admin bundle

From Dev

Batch actions with Sonata Admin Bundle on Symfony

Related Related

  1. 1

    Sonata admin bundle : unable to remove relation with sonata_type_admin

  2. 2

    sonata admin bundle symfony

  3. 3

    CKEditor not showing with Sonata Formatter (Sonata Admin Bundle)

  4. 4

    Use tags in Sonata Admin Bundle

  5. 5

    Configure Menu in Sonata Admin Bundle

  6. 6

    Conflicts with sonata admin bundle and LiipFunctionalTestBundle

  7. 7

    Sonata Admin Bundle - String Validation

  8. 8

    List Images in sonata admin bundle

  9. 9

    Use tags in Sonata Admin Bundle

  10. 10

    Sonata Admin Bundle configureRoutes getPersistentParameters

  11. 11

    Conflicts with sonata admin bundle and LiipFunctionalTestBundle

  12. 12

    Sonata Media Bundle with Sonata Admin Bundle 3.0 (or 2.4)

  13. 13

    Sonata User Bundle + Admin Bundle admin redirect after login

  14. 14

    JSON array to table Sonata admin bundle

  15. 15

    Show sidebar in show view - Sonata admin bundle

  16. 16

    Error in file upload with sonata-admin bundle

  17. 17

    Sonata Admin Bundle custom routes using annotations

  18. 18

    Customise exported CSV content of Sonata Admin bundle

  19. 19

    Store Logged in user data in sonata admin bundle

  20. 20

    Is it possible to add a translatable association in Sonata Admin Bundle?

  21. 21

    Adding entity not managed by Sonata Admin Bundle

  22. 22

    disable action in sonata admin bundle CRUD

  23. 23

    Show sidebar in show view - Sonata admin bundle

  24. 24

    Sonata Admin Bundle custom routes using annotations

  25. 25

    Create new field type in sonata admin bundle

  26. 26

    How to display a photo in Sonata Admin Bundle

  27. 27

    Set a field like choose in sonata Admin bundle

  28. 28

    Gedmo translatable / default locale and sonata admin bundle

  29. 29

    Batch actions with Sonata Admin Bundle on Symfony

HotTag

Archive