Skip to content

[Form] Add help texts for checkboxes in horizontal bootstrap 4 forms #28113

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

Merged
merged 1 commit into from
Aug 14, 2018
Merged

[Form] Add help texts for checkboxes in horizontal bootstrap 4 forms #28113

merged 1 commit into from
Aug 14, 2018

Conversation

apfelbox
Copy link
Contributor

@apfelbox apfelbox commented Aug 2, 2018

Q A
Branch? 4.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Bootstrap 4 horizontal forms override the {% block checkbox_form %} but didn't include the help text. Regular (vertical) Bootstrap 4 are not affected, as they use the default form_row, which includes the form_help() call.

Before

before

After

after

@apfelbox
Copy link
Contributor Author

apfelbox commented Aug 2, 2018

Thanks to @nicolas-grekas & @vudaltsov for making testing easier here ❤️ (#28036)

@nicolas-grekas nicolas-grekas added this to the 4.1 milestone Aug 3, 2018
@nicolas-grekas
Copy link
Member

Thank you @apfelbox.

@nicolas-grekas nicolas-grekas merged commit 1483c87 into symfony:4.1 Aug 14, 2018
nicolas-grekas added a commit that referenced this pull request Aug 14, 2018
…ap 4 forms (apfelbox)

This PR was merged into the 4.1 branch.

Discussion
----------

[Form] Add help texts for checkboxes in horizontal bootstrap 4 forms

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | —
| License       | MIT
| Doc PR        | —

Bootstrap 4 horizontal forms override the `{% block checkbox_form %}` but didn't include the help text. Regular (vertical) Bootstrap 4 are not affected, as they use the default `form_row`, which includes the `form_help()` call.

### Before
![before](https://user-images.githubusercontent.com/1032411/43576420-9a1051ee-9649-11e8-8c1e-89502e5a79bd.png)

### After
![after](https://user-images.githubusercontent.com/1032411/43576423-9dfe5620-9649-11e8-8bce-74ec82d83729.png)

Commits
-------

1483c87 Add help texts for checkboxes in horizontal bootstrap 4 forms
@apfelbox apfelbox deleted the bootstrap-checkbox-help branch August 14, 2018 15:50
@fabpot fabpot mentioned this pull request Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants