8000 [FrameworkBundle] Remove invalid markup · symfony/symfony@1fe8e31 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1fe8e31

Browse files
flackfabpot
authored andcommitted
[FrameworkBundle] Remove invalid markup
1 parent f5b4b11 commit 1fe8e31

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<div <?php echo $view['form']->block($form, 'widget_container_attributes') ?>>
22
<?php if (!$form->parent && $errors): ?>
3-
<tr>
4-
<td colspan="2">
5-
<?php echo $view['form']->errors($form) ?>
6-
</td>
7-
</tr>
3+
<?php echo $view['form']->errors($form) ?>
84
<?php endif ?>
95
<?php echo $view['form']->block($form, 'form_rows') ?>
106
<?php echo $view['form']->rest($form) ?>

src/Symfony/Bundle/FrameworkBundle/Resources/views/FormTable/form_widget_compound.html.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<table <?php echo $view['form']->block($form, 'widget_container_attributes') ?>>
2-
<?php if (!$form->parent): ?>
3-
<?php echo $view['form']->errors($form) ?>
2+
<?php if (!$form->parent && $errors): ?>
3+
<tr>
4+
<td colspan="2">
5+
<?php echo $view['form']->errors($form) ?>
6+
</td>
7+
</tr>
48
<?php endif ?>
59
<?php echo $view['form']->block($form, 'form_rows') ?>
610
<?php echo $view['form']->rest($form) ?>

0 commit comments

Comments
 (0)
0