Browse Source

Manage other integer type : tinyint, smallint, mediumint, bigint

Timothée Barray 14 years ago
parent
commit
e643637c4d

+ 4 - 0
Admin/Admin.php

@@ -554,6 +554,10 @@ abstract class Admin extends ContainerAware
                     break;
 
                 case 'integer':
+                case 'tinyint';
+                case 'smallint':
+                case 'mediumint':
+                case 'bigint':
                     $field = new \Symfony\Component\Form\IntegerField($name, $description['options']);
                     break;
 

+ 11 - 0
Resources/views/CRUD/list_bigint.twig

@@ -0,0 +1,11 @@
+{#
+
+This file is part of the Sonata package.
+
+(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+
+#}
+{% extends 'Sonata/BaseApplicationBundle:CRUD:list_integer.twig' %}

+ 11 - 0
Resources/views/CRUD/list_mediumint.twig

@@ -0,0 +1,11 @@
+{#
+
+This file is part of the Sonata package.
+
+(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+
+#}
+{% extends 'Sonata/BaseApplicationBundle:CRUD:list_integer.twig' %}

+ 11 - 0
Resources/views/CRUD/list_smallint.twig

@@ -0,0 +1,11 @@
+{#
+
+This file is part of the Sonata package.
+
+(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+
+#}
+{% extends 'Sonata/BaseApplicationBundle:CRUD:list_integer.twig' %}

+ 11 - 0
Resources/views/CRUD/list_tinyint.twig

@@ -0,0 +1,11 @@
+{#
+
+This file is part of the Sonata package.
+
+(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+
+#}
+{% extends 'Sonata/BaseApplicationBundle:CRUD:list_integer.twig' %}