Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Form] Add description of label_html option#13316

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:masterfromprzemyslaw-bogusz:label_html
Mar 14, 2020

Conversation

przemyslaw-bogusz
Copy link
Contributor

@przemyslaw-boguszprzemyslaw-bogusz commentedMar 8, 2020
edited
Loading

QA
Feature PRsymfony/symfony#31375
PR author(s)@przemyslaw-bogusz
Merged inWCM

@przemyslaw-boguszprzemyslaw-bogusz changed the titleAdd description of label_html option[WCM] Add description of label_html optionMar 8, 2020
@przemyslaw-boguszprzemyslaw-bogusz changed the title[WCM] Add description of label_html option[Form][WCM] Add description of label_html optionMar 8, 2020
@OskarStarkOskarStark added the Waiting Code MergeDocs for features pending to be merged labelMar 9, 2020
@OskarStarkOskarStark added this to the5.1 milestoneMar 9, 2020
nicolas-grekas added a commit to symfony/symfony that referenced this pull requestMar 12, 2020
This PR was squashed before being merged into the 5.1-dev branch.Discussion----------[Form] Add label_html attribute| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MIT| Doc PR        |symfony/symfony-docs#13316I propose to add a new attribute to `BaseType` class so it is easy to include html tags in labels for, both, buttons and other elements that inherit from `FormType` class. This gives you an ability to add, e.g. a glyphicon to a button, or a link to a checkbox, simply inside the `FormBuilder`, which means you can just do```twig{{ form(form) }}```inside a template.**Sidenotes**1. I have started working on this two days ago and it the meantime@alexander-schranz made a similar proposition in#31358. If necessary, I can close my PR and@alexander-schranz can include my suggestions inside his PR.1. I have just read in#29861 that@mpiot wanted to include this idea in his PR. With respect to@xabbuh's comments from that PR, I hope that my PR will be at least a good place to discuss, if the proposed feature is a good solution.Commits-------239fe04 [Form] Add label_html attribute
symfony-splitter pushed a commit to symfony/form that referenced this pull requestMar 12, 2020
This PR was squashed before being merged into the 5.1-dev branch.Discussion----------[Form] Add label_html attribute| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MIT| Doc PR        |symfony/symfony-docs#13316I propose to add a new attribute to `BaseType` class so it is easy to include html tags in labels for, both, buttons and other elements that inherit from `FormType` class. This gives you an ability to add, e.g. a glyphicon to a button, or a link to a checkbox, simply inside the `FormBuilder`, which means you can just do```twig{{ form(form) }}```inside a template.**Sidenotes**1. I have started working on this two days ago and it the meantime@alexander-schranz made a similar proposition in #31358. If necessary, I can close my PR and@alexander-schranz can include my suggestions inside his PR.1. I have just read in #29861 that@mpiot wanted to include this idea in his PR. With respect to@xabbuh's comments from that PR, I hope that my PR will be at least a good place to discuss, if the proposed feature is a good solution.Commits-------239fe04ff9 [Form] Add label_html attribute
@javiereguiluzjaviereguiluz added Form Status: Reviewed and removed Waiting Code MergeDocs for features pending to be merged Status: Needs Review labelsMar 14, 2020
@javiereguiluzjaviereguiluz changed the title[Form][WCM] Add description of label_html option[Form] Add description of label_html optionMar 14, 2020
@javiereguiluz
Copy link
Member

@przemyslaw-bogusz thanks! We added the missingversionadded directive while merging.

@przemyslaw-bogusz
Copy link
ContributorAuthor

Thanks, I will try to remember about it next time.

xabbuh reacted with thumbs up emoji

@przemyslaw-boguszprzemyslaw-bogusz deleted the label_html branchMarch 14, 2020 15:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees
No one assigned
Projects
None yet
Milestone
5.1
Development

Successfully merging this pull request may close these issues.

4 participants
@przemyslaw-bogusz@javiereguiluz@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp