Skip to content

Adding 'help' as reserved key for FieldDescription#484

Merged
rande merged 1 commit intosonata-project:masterfrom
stefanosala:master
Jan 10, 2012
Merged

Adding 'help' as reserved key for FieldDescription#484
rande merged 1 commit intosonata-project:masterfrom
stefanosala:master

Conversation

@stefanosala
Copy link

I added help to 'setOptions' to make it work with Admin as this example:

{
    public function configureFormFields(FormMapper $formMapper)
    {
        $formMapper->add('foo', null, array(), array('help' => 'fooHelp'))
        ;
    }
}

and the template that is already created:

    <span class="help-block sonata-ba-field-help">{{ sonata_admin.field_description.help }}</span>
{% endif %}

rande added a commit that referenced this pull request Jan 10, 2012
Adding 'help' as reserved key for FieldDescription
@rande rande merged commit 16fbf45 into sonata-project:master Jan 10, 2012
ft-1408 pushed a commit to intexsys/SonataAdminBundle that referenced this pull request Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants