File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
FrameworkBundle/Resources/views/Form
TwigBundle/Resources/views/Form Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- <?php foreach ($ form-> getChildren () as $ child ): ?>
1
+ <?php foreach ($ form as $ child ): ?>
2
2
<?php if (!$ child ->isRendered ()): ?>
3
3
<?php echo $ view ['form ' ]->row ($ child ) ?>
4
4
<?php endif ; ?>
Original file line number Diff line number Diff line change 1
1
<div<?php echo $ view ['form ' ]->attributes () ?> >
2
2
<?php echo $ view ['form ' ]->errors ($ form ); ?>
3
- <?php foreach ($ form-> getChildren () as $ child ): ?>
3
+ <?php foreach ($ form as $ child ): ?>
4
4
<?php echo $ view ['form ' ]->row ($ child ); ?>
5
5
<?php endforeach ; ?>
6
6
<?php echo $ view ['form ' ]->rest ($ form ) ?>
Original file line number Diff line number Diff line change 1
1
<?php echo $ view ['form ' ]->errors ($ form ) ?>
2
2
3
- <?php foreach ($ form-> getChildren () as $ child ): ?>
3
+ <?php foreach ($ form as $ child ): ?>
4
4
<?php echo $ view ['form ' ]->row ($ child ); ?>
5
5
<?php endforeach ; ?>
Original file line number Diff line number Diff line change 1
1
{% block field_rows %}
2
2
{% spaceless %}
3
3
{{ form_errors(form ) }}
4
- {% for child in form . children %}
4
+ {% for child in form %}
5
5
{{ form_row(child ) }}
6
6
{% endfor %}
7
7
{% endspaceless %}
27
27
28
28
{% block field_rest %}
29
29
{% spaceless %}
30
- {% for child in form . children %}
30
+ {% for child in form %}
31
31
{% if not child .rendered %}
32
32
{{ form_row(child ) }}
33
33
{% endif %}
You can’t perform that action at this time.
0 commit comments