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

[TwigBridge] Apply some changes to support Bootstrap4-stable#26167

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
nicolas-grekas merged 2 commits intosymfony:3.4fromnicolas-grekas:mpiot-master
Feb 15, 2018

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedFeb 13, 2018
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#25655#25635#24435
LicenseMIT
Doc PR-

Follow up of#25715, see discussion there.

This fixes the following errors:

@nicolas-grekas
Copy link
MemberAuthor

nicolas-grekas commentedFeb 13, 2018
edited
Loading

@Nyholm I gave you access to my fork so you can finish this PR if you don't mind (tests esp. are broken for now.)

{%-setprepend=not (money_patternstarts with'{{') -%}
{%-setappend=not (money_patternends with'}}') -%}
{%-ifprependorappend -%}
<divclass="input-group{{group_class|default('') }}">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

isgroup_class defined here ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not in this block no. The abstract form has the same code:https://github.com/symfony/symfony/blob/v4.0.4/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_base_layout.html.twig#L14

I guess it was just copied and added some modifications.

$this->assertMatchesXpath($html,
'/legend
[@class="col-form-label col-sm-2 col-form-legend required"]
[@class="col-form-label col-sm-2 col-form-label required"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Here is thecol-form-label added twice. Do we bother?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

it would be better if we could avoid, to make the HTML cleaner. But it should not break anything.

Copy link
Member

@NyholmNyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍 Looks good

@nicolas-grekas
Copy link
MemberAuthor

Thank you@mpiot.

@nicolas-grekas
Copy link
MemberAuthor

Thank you@Nyholm also

@nicolas-grekasnicolas-grekas merged commit14e2282 intosymfony:3.4Feb 15, 2018
nicolas-grekas added a commit that referenced this pull requestFeb 15, 2018
…le (mpiot, Nyholm)This PR was merged into the 3.4 branch.Discussion----------[TwigBridge] Apply some changes to support Bootstrap4-stable| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#25655#25635#24435| License       | MIT| Doc PR        | -Follow up of#25715, see discussion there.This fixes the following errors:- Delete form-control-label, don't used in Bootstrap 4- Replace col-form-legend by col-form-label- Separate the label and input (before the input was in the label)- Use form-check-inline to put radio and/or checkboxes inline- Add support of custom form for radio and checkboxes- Fix input-group: MoneyType (Issue#25655), PercentType- Remove form-control duplication (Issue#25635)- Fix Errors in label (#24435)Commits-------14e2282 Fixed broken testscf4e956 [TwigBridge] Apply some changes to support Bootstrap4-stable
@nicolas-grekasnicolas-grekas deleted the mpiot-master branchFebruary 15, 2018 07:59
@Nyholm
Copy link
Member

Ping@mpiot, Can you make a PR with the awesome help-block as I mentioned here?
#25715 (comment)

If you do not have time right now that is also very fine. Just tell me.

This was referencedMar 1, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@NyholmNyholmNyholm approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@Nyholm@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp