Browse Source

[Form] Removed unused 'template' option

Bernhard Schussek 14 years ago
parent
commit
80116be577

+ 0 - 1
src/Symfony/Component/Form/Type/CollectionType.php

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

+ 0 - 1
src/Symfony/Component/Form/Type/DateTimeType.php

@@ -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,

+ 0 - 1
src/Symfony/Component/Form/Type/DateType.php

@@ -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),

+ 0 - 1
src/Symfony/Component/Form/Type/FieldType.php

@@ -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,

+ 0 - 1
src/Symfony/Component/Form/Type/FileType.php

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

+ 0 - 1
src/Symfony/Component/Form/Type/FormType.php

@@ -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',

+ 0 - 1
src/Symfony/Component/Form/Type/HiddenType.php

@@ -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,
         );

+ 0 - 1
src/Symfony/Component/Form/Type/IntegerType.php

@@ -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,

+ 0 - 1
src/Symfony/Component/Form/Type/NumberType.php

@@ -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,

+ 0 - 1
src/Symfony/Component/Form/Type/PercentType.php

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

+ 0 - 1
src/Symfony/Component/Form/Type/RepeatedType.php

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

+ 0 - 7
src/Symfony/Component/Form/Type/TextareaType.php

@@ -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';

+ 0 - 1
src/Symfony/Component/Form/Type/TimeType.php

@@ -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),