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] Fixed the .form-check-input class in the bs4 templates#24874

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

Closed
vudaltsov wants to merge2 commits intosymfony:3.4fromvudaltsov:bs4-fix
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -71,7 +71,7 @@

{% block checkbox_widget -%}
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{%- set attr = attr|merge({class: attr.class|default('form-check-input')}) -%}
{%- set attr = attr|merge({class:(attr.class|default('') ~ 'form-check-input')|trim}) -%}
{% if 'checkbox-inline' in parent_label_class %}
{{- form_label(form, null, { widget: parent() }) -}}
{% else -%}
Expand All@@ -83,7 +83,7 @@

{% block radio_widget -%}
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{%- set attr = attr|merge({class: attr.class|default('form-check-input')}) -%}
{%- set attr = attr|merge({class:(attr.class|default('') ~ 'form-check-input')|trim}) -%}
{%- if 'radio-inline' in parent_label_class -%}
{{- form_label(form, null, { widget: parent() }) -}}
{%- else -%}
Expand Down
4 changes: 2 additions & 2 deletionssrc/Symfony/Bridge/Twig/composer.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,7 @@
"symfony/asset": "~2.8|~3.0|~4.0",
"symfony/dependency-injection": "~2.8|~3.0|~4.0",
"symfony/finder": "~2.8|~3.0|~4.0",
"symfony/form": "~3.4-beta2|~4.0-beta2",
"symfony/form": "~3.4|~4.0",
"symfony/http-foundation": "^3.3.11|~4.0",
"symfony/http-kernel": "~3.2|~4.0",
"symfony/polyfill-intl-icu": "~1.0",
Expand All@@ -41,7 +41,7 @@
"symfony/web-link": "~3.3|~4.0"
},
"conflict": {
"symfony/form": "<3.4",
"symfony/form": "<3.4-beta4|~4.0,<4.0-beta4",
"symfony/console": "<3.4"
},
"suggest": {
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -164,7 +164,7 @@ public function testCheckedCheckbox()
[.=" [trans]Name[/trans]"]
[@class="form-check-label required"]
[
./input[@type="checkbox"][@name="name"][@id="my&id"][@class="my&class"][@checked="checked"][@value="1"]
./input[@type="checkbox"][@name="name"][@id="my&id"][@class="my&class form-check-input"][@checked="checked"][@value="1"]
]
]
'
Expand DownExpand Up@@ -242,7 +242,7 @@ public function testUncheckedCheckbox()
./label
[.=" [trans]Name[/trans]"]
[
./input[@type="checkbox"][@name="name"][@id="my&id"][@class="my&class"][not(@checked)]
./input[@type="checkbox"][@name="name"][@id="my&id"][@class="my&class form-check-input"][not(@checked)]
]
]
'
Expand All@@ -262,7 +262,7 @@ public function testCheckboxWithValue()
./label
[.=" [trans]Name[/trans]"]
[
./input[@type="checkbox"][@name="name"][@id="my&id"][@class="my&class"][@value="foo&bar"]
./input[@type="checkbox"][@name="name"][@id="my&id"][@class="my&class form-check-input"][@value="foo&bar"]
]
]
'
Expand DownExpand Up@@ -487,7 +487,7 @@ public function testSingleChoiceExpandedAttributes()
./label
[.=" [trans]Choice&B[/trans]"]
[
./input[@type="radio"][@name="name"][@id="name_1"][@value="&b"][not(@checked)][@class="foo&bar"]
./input[@type="radio"][@name="name"][@id="name_1"][@value="&b"][not(@checked)][@class="foo&bar form-check-input"]
]
]
/following-sibling::input[@type="hidden"][@id="name__token"]
Expand DownExpand Up@@ -863,7 +863,7 @@ public function testMultipleChoiceExpandedAttributes()
./label
[.=" [trans]Choice&B[/trans]"]
[
./input[@type="checkbox"][@name="name[]"][@id="name_1"][not(@checked)][not(@required)][@class="foo&bar"]
./input[@type="checkbox"][@name="name[]"][@id="name_1"][not(@checked)][not(@required)][@class="foo&bar form-check-input"]
]
]
/following-sibling::div
Expand DownExpand Up@@ -896,7 +896,7 @@ public function testCheckedRadio()
[@id="my&id"]
[@type="radio"]
[@name="name"]
[@class="my&class"]
[@class="my&class form-check-input"]
[@checked="checked"]
[@value="1"]
]
Expand All@@ -920,7 +920,7 @@ public function testUncheckedRadio()
[@id="my&id"]
[@type="radio"]
[@name="name"]
[@class="my&class"]
[@class="my&class form-check-input"]
[not(@checked)]
]
]
Expand All@@ -945,7 +945,7 @@ public function testRadioWithValue()
[@id="my&id"]
[@type="radio"]
[@name="name"]
[@class="my&class"]
[@class="my&class form-check-input"]
[@value="foo&bar"]
]
]
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp