Fix Fabpot.io
This commit is contained in:
parent
69ded67643
commit
f1d13a860c
@ -1,5 +1,5 @@
|
||||
<div>
|
||||
<?php $widgetAtt = empty($help) ? [] : ['attr'=>['aria-describedby'=> $id.'_help']]; ?>
|
||||
<?php $widgetAtt = empty($help) ? array() : array('attr' => array('aria-describedby' => $id.'_help')); ?>
|
||||
<?php echo $view['form']->label($form); ?>
|
||||
<?php echo $view['form']->errors($form); ?>
|
||||
<?php echo $view['form']->widget($form, $widgetAtt); ?>
|
||||
|
@ -195,7 +195,7 @@ abstract class AbstractBootstrap4LayoutTest extends AbstractBootstrap3LayoutTest
|
||||
|
||||
public function testErrorWithNoLabel()
|
||||
{
|
||||
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', array('label'=>false));
|
||||
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', array('label' => false));
|
||||
$form->addError(new FormError('[trans]Error 1[/trans]'));
|
||||
$view = $form->createView();
|
||||
$html = $this->renderLabel($view);
|
||||
|
Reference in New Issue
Block a user