File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Bundle/FrameworkBundle/Resources/views/Form Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 85
85
{%- endblock choice_widget_options -%}
86
86
87
87
{%- block checkbox_widget -%}
88
- <input type =" checkbox" {{ block (' widget_attributes' ) }}{% if value is defined %} value =" {{ value }}" {% endif %}{% if checked %} checked =" checked" {% endif %} />
88
+ <input type =" hidden " name = " {{ full_name }} " />< input type = " checkbox" {{ block (' widget_attributes' ) }}{% if value is defined %} value =" {{ value }}" {% endif %}{% if checked %} checked =" checked" {% endif %} />
89
89
{%- endblock checkbox_widget -%}
90
90
91
91
{%- block radio_widget -%}
Original file line number Diff line number Diff line change 22
22
"require-dev" : {
23
23
"symfony/asset" : " ~2.7" ,
24
24
"symfony/finder" : " ~2.3" ,
25
- "symfony/form" : " ~2.7.11 |~2.8.4 " ,
25
+ "symfony/form" : " ~2.7.20 |~2.8.13 " ,
26
26
"symfony/http-kernel" : " ~2.3" ,
27
27
"symfony/intl" : " ~2.3" ,
28
28
"symfony/routing" : " ~2.2" ,
Original file line number Diff line number Diff line change 1
- <input type="checkbox"
1
+ <input type="hidden" name=" <?php echo $ view -> escape ( $ full_name ) ?> " /><input type=" checkbox"
2
2
<?php echo $ view ['form ' ]->block ($ form , 'widget_attributes ' ) ?>
3
3
<?php if (strlen ($ value ) > 0 ): ?> value="<?php echo $ view ->escape ($ value ) ?> "<?php endif ?>
4
4
<?php if ($ checked ): ?> checked="checked"<?php endif ?>
Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ public function testMultipleChoiceExpandedWithLabelsAsFalse()
805
805
/following-sibling::input[@type="checkbox"][@name="name[]"][@id="name_1"][@value="&b"][not(@checked)]
806
806
/following-sibling::input[@type="hidden"][@id="name__token"]
807
807
]
808
- [count(./input)=3 ]
808
+ [count(./input)=5 ]
809
809
[count(./label)=1]
810
810
'
811
811
);
@@ -837,7 +837,7 @@ public function testMultipleChoiceExpandedWithLabelsSetByCallable()
837
837
/following-sibling::label[@for="name_2"][.="[trans]label.&c[/trans]"]
838
838
/following-sibling::input[@type="hidden"][@id="name__token"]
839
839
]
840
- [count(./input)=4 ]
840
+ [count(./input)=7 ]
841
841
[count(./label)=3]
842
842
'
843
843
);
@@ -862,7 +862,7 @@ public function testMultipleChoiceExpandedWithLabelsSetFalseByCallable()
862
862
/following-sibling::input[@type="checkbox"][@name="name[]"][@id="name_1"][@value="&b"][not(@checked)]
863
863
/following-sibling::input[@type="hidden"][@id="name__token"]
864
864
]
865
- [count(./input)=3 ]
865
+ [count(./input)=5 ]
866
866
[count(./label)=1]
867
867
'
868
868
);
Original file line number Diff line number Diff line change @@ -1133,7 +1133,7 @@ public function testMultipleChoiceExpanded()
1133
1133
/following-sibling::label[@for="name_2"][.="[trans]Choice&C[/trans]"]
1134
1134
/following-sibling::input[@type="hidden"][@id="name__token"]
1135
1135
]
1136
- [count(./input)=4 ]
1136
+ [count(./input)=7 ]
1137
1137
'
1138
1138
);
1139
1139
}
@@ -1160,7 +1160,7 @@ public function testMultipleChoiceExpandedWithoutTranslation()
1160
1160
/following-sibling::label[@for="name_2"][.="Choice&C"]
1161
1161
/following-sibling::input[@type="hidden"][@id="name__token"]
1162
1162
]
1163
- [count(./input)=4 ]
1163
+ [count(./input)=7 ]
1164
1164
'
1165
1165
);
1166
1166
}
@@ -1189,7 +1189,7 @@ public function testMultipleChoiceExpandedAttributes()
1189
1189
/following-sibling::label[@for="name_2"][.="[trans]Choice&C[/trans]"]
1190
1190
/following-sibling::input[@type="hidden"][@id="name__token"]
1191
1191
]
1192
- [count(./input)=4 ]
1192
+ [count(./input)=7 ]
1193
1193
'
1194
1194
);
1195
1195
}
You can’t perform that action at this time.
0 commit comments