Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help text to single checkbox and radio #275

Merged
merged 1 commit into from
Aug 6, 2014

Conversation

tazGPL
Copy link
Contributor

@tazGPL tazGPL commented Jul 16, 2014

Help text is not rendered under single checkbox and single radio. Example form builder:

$builder->add('gender', 'choice', array(
    'choices'   => array('m' => 'Male', 'f' => 'Female'),
    'multiple' => false,
    'expanded' => true,
    'required'  => true,
    'mapped' => false,
    'attr' => array(
        'help_text' => 'Who are you?'
    )
))
->add('newsletter', 'checkbox', array(
    'mapped' => false,
    'attr' => array(
        'align_with_widget' => true,
        'help_text' => 'Would you like to receive our newsletter?'
    )
))

renders:
image

With the patch:
image

@sstok
Copy link

sstok commented Jul 17, 2014

👍

florianeckerstorfer pushed a commit that referenced this pull request Aug 6, 2014
Add help text to single checkbox and radio
@florianeckerstorfer florianeckerstorfer merged commit 4708ebb into braincrafted:develop Aug 6, 2014
@tazGPL tazGPL deleted the help-text branch August 13, 2014 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants