Sonataadminbundle: Render help

Created on 25 Aug 2020  路  4Comments  路  Source: sonata-project/SonataAdminBundle

SonataAdminBundle 3.73.0

Edit form renders as:
image

There has many problems:
1) paragraph inside inline-element (span)
2) empty span if no help
3) deprecation notice throws

TODO:
1) No inside. Use help_attr.class
2) Remove deprecate throws from \Sonata\AdminBundle\Admin\BaseFieldDescription::getHelp (add NEXT_MAJOR: Remove this method.)

bug unconfirmed

All 4 comments

Upgrades info dont prevent deprecation notice:
https://github.com/sonata-project/SonataAdminBundle/commit/26a887d7392715d7589b93fd8e1402f30a1527d4#diff-dcb51da20ad02d4fde6c4b5fb83819d0R4-R24

before example must be:

$formMapper
    ->add('field', null, [], [
        'help' => 'Help text <small>Please!</small>',
    ]);

Do you want to make a PR ?

Bonus points if you provide screenshots on the before an after changes :)

Was this page helpful?
0 / 5 - 0 ratings