[Form] Removed unused 'template' option

This commit is contained in:
Bernhard Schussek 2011-03-27 14:42:44 +02:00
parent 6588a47ba7
commit 80116be577
13 changed files with 0 additions and 19 deletions

View File

@ -34,7 +34,6 @@ class CollectionType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'collection',
'modifiable' => false,
'prototype' => true,
'type' => 'text',

View File

@ -96,7 +96,6 @@ class DateTimeType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'datetime',
'input' => 'datetime',
'with_seconds' => false,
'data_timezone' => null,

View File

@ -101,7 +101,6 @@ class DateType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'date',
'years' => range(date('Y') - 5, date('Y') + 5),
'months' => range(1, 12),
'days' => range(1, 31),

View File

@ -95,7 +95,6 @@ class FieldType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'text', // TODO remove me
'data' => null,
'data_class' => null,
'trim' => true,

View File

@ -57,7 +57,6 @@ class FileType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'file',
'type' => 'string',
'csrf_protection' => false,
);

View File

@ -56,7 +56,6 @@ class FormType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'form',
'data_constructor' => null,
'csrf_protection' => true,
'csrf_field_name' => '_token',

View File

@ -18,7 +18,6 @@ class HiddenType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'hidden',
// Pass errors to the parent
'error_bubbling' => true,
);

View File

@ -24,7 +24,6 @@ class IntegerType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'integer',
// default precision is locale specific (usually around 3)
'precision' => null,
'grouping' => false,

View File

@ -24,7 +24,6 @@ class NumberType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'number',
// default precision is locale specific (usually around 3)
'precision' => null,
'grouping' => false,

View File

@ -24,7 +24,6 @@ class PercentType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'percent',
'precision' => 0,
'type' => 'fractional',
);

View File

@ -29,7 +29,6 @@ class RepeatedType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'repeated',
'type' => 'text',
'options' => array(),
'first_name' => 'first',

View File

@ -15,13 +15,6 @@ use Symfony\Component\Form\FormBuilder;
class TextareaType extends AbstractType
{
public function getDefaultOptions(array $options)
{
return array(
'template' => 'textarea',
);
}
public function getParent(array $options)
{
return 'field';

View File

@ -80,7 +80,6 @@ class TimeType extends AbstractType
public function getDefaultOptions(array $options)
{
return array(
'template' => 'time',
'hours' => range(0, 23),
'minutes' => range(0, 59),
'seconds' => range(0, 59),