[Twig+FrameworkBundle] Fix forward compat with Form 2.8
This commit is contained in:
parent
ee98096db0
commit
75dc464db8
@ -314,7 +314,7 @@
|
||||
|
||||
{%- block widget_attributes -%}
|
||||
id="{{ id }}" name="{{ full_name }}"
|
||||
{%- if read_only %} readonly="readonly"{% endif -%}
|
||||
{%- if read_only and attr.readonly is not defined %} readonly="readonly"{% endif -%}
|
||||
{%- if disabled %} disabled="disabled"{% endif -%}
|
||||
{%- if required %} required="required"{% endif -%}
|
||||
{%- for attrname, attrvalue in attr -%}
|
||||
|
@ -115,4 +115,14 @@ class FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTest
|
||||
{
|
||||
$this->extension->renderer->setTheme($view, $themes);
|
||||
}
|
||||
|
||||
public function testRange()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
|
||||
public function testRangeWithMinMaxValues()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
}
|
||||
|
@ -208,4 +208,14 @@ class FormExtensionDivLayoutTest extends AbstractDivLayoutTest
|
||||
array(array('parent_label.html.twig'), array('child_label.html.twig')),
|
||||
);
|
||||
}
|
||||
|
||||
public function testRange()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
|
||||
public function testRangeWithMinMaxValues()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
}
|
||||
|
@ -116,4 +116,14 @@ class FormExtensionTableLayoutTest extends AbstractTableLayoutTest
|
||||
{
|
||||
$this->extension->renderer->setTheme($view, $themes);
|
||||
}
|
||||
|
||||
public function testRange()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
|
||||
public function testRangeWithMinMaxValues()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>" <?php if ($read_only): ?>readonly="readonly" <?php endif ?>
|
||||
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>" <?php if ($read_only && !isset($attr['readonly'])): ?>readonly="readonly" <?php endif ?>
|
||||
<?php if ($disabled): ?>disabled="disabled" <?php endif ?>
|
||||
<?php if ($required): ?>required="required" <?php endif ?>
|
||||
<?php foreach ($attr as $k => $v): ?>
|
||||
|
@ -128,4 +128,14 @@ class FormHelperDivLayoutTest extends AbstractDivLayoutTest
|
||||
array(array('TestBundle:Parent'), array('TestBundle:Child')),
|
||||
);
|
||||
}
|
||||
|
||||
public function testRange()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
|
||||
public function testRangeWithMinMaxValues()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
}
|
||||
|
@ -115,4 +115,14 @@ class FormHelperTableLayoutTest extends AbstractTableLayoutTest
|
||||
{
|
||||
$this->engine->get('form')->setTheme($view, $themes);
|
||||
}
|
||||
|
||||
public function testRange()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
|
||||
public function testRangeWithMinMaxValues()
|
||||
{
|
||||
// No-op for forward compatibility with AbstractLayoutTest 2.8
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user