10000 [FrameworkBundle] Add widgetAtt to formTable/form_row · symfony/symfony@075fcfd · GitHub
[go: up one dir, main page]

Skip to content

Commit 075fcfd

Browse files
committed
[FrameworkBundle] Add widgetAtt to formTable/form_row
1 parent f1d13a8 commit 075fcfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<tr>
2+
<?php $widgetAtt = empty($help) ? array() : array('attr' => array('aria-describedby' => $id.'_help')); ?>
23
<td>
34
<?php echo $view['form']->label($form); ?>
45
</td>
56
<td>
67
<?php echo $view['form']->errors($form); ?>
7-
<?php echo $view['form']->widget($form); ?>
8+
<?php echo $view['form']->widget($form, $widgetAtt); ?>
89
<?php echo $view['form']->help($form); ?>
910
</td>
1011
</tr>

0 commit comments

Comments
 (0)
0