8000 fixed form_rest() for embedded forms (refs #1051, #1115) · sstok/symfony@923c234 · GitHub
[go: up one dir, main page]

Skip to content

Commit 923c234

Browse files
committed
fixed form_rest() for embedded forms (refs symfony#1051, symfony#1115)
1 parent 4de930b commit 923c234

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/field_rest.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php foreach ($form->getChildren() as $child): ?>
1+
<?php foreach ($form as $child): ?>
22
<?php if (!$child->isRendered()): ?>
33
<?php echo $view['form']->row($child) ?>
44
<?php endif; ?>

src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/form_widget.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div<?php echo $view['form']->attributes() ?>>
22
<?php echo $view['form']->errors($form); ?>
3-
<?php foreach ($form->getChildren() as $child): ?>
3+
<?php foreach ($form as $child): ?>
44
<?php echo $view['form']->row($child); ?>
55
<?php endforeach; ?>
66
<?php echo $view['form']->rest($form) ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php echo $view['form']->errors($form) ?>
22

3-
<?php foreach ($form->getChildren() as $child): ?>
3+
<?php foreach ($form as $child): ?>
44
<?php echo $view['form']->row($child); ?>
55
<?php endforeach; ?>

src/Symfony/Bundle/TwigBundle/Resources/views/Form/div_layout.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% block field_rows %}
22
{% spaceless %}
33
{{ form_errors(form) }}
4-
{% for child in form.children %}
4+
{% for child in form %}
55
{{ form_row(child) }}
66
{% endfor %}
77
{% endspaceless %}
@@ -27,7 +27,7 @@
2727

2828
{% block field_rest %}
2929
{% spaceless %}
30-
{% for child in form.children %}
30+
{% for child in form %}
3131
{% if not child.rendered %}
3232
{{ form_row(child) }}
3333
{% endif %}

0 commit comments

Comments
 (0)
0