[FrameworkBundle] Add widgetAtt to formTable/form_row

This commit is contained in:
Mathieu Piot 2018-03-20 17:57:01 +01:00
parent f1d13a860c
commit 075fcfd07c

View File

@ -1,10 +1,11 @@
<tr>
<?php $widgetAtt = empty($help) ? array() : array('attr' => array('aria-describedby' => $id.'_help')); ?>
<td>
<?php echo $view['form']->label($form); ?>
</td>
<td>
<?php echo $view['form']->errors($form); ?>
<?php echo $view['form']->widget($form); ?>
<?php echo $view['form']->widget($form, $widgetAtt); ?>
<?php echo $view['form']->help($form); ?>
</td>
</tr>