Forráskód Böngészése

rename template and controller (update last symfony changes)

Thomas 14 éve
szülő
commit
226043211d
63 módosított fájl, 172 hozzáadás és 172 törlés
  1. 4 4
      Admin/Admin.php
  2. 11 11
      Admin/EntityAdmin.php
  3. 1 1
      Controller/CoreController.php
  4. 2 2
      Resources/config/routing/base_application.xml
  5. 2 2
      Resources/config/templates.xml
  6. 0 0
      Resources/views/CRUD/base_edit.twig.html
  7. 0 0
      Resources/views/CRUD/base_edit_field.twig.html
  8. 0 0
      Resources/views/CRUD/base_filter_field.twig.html
  9. 0 0
      Resources/views/CRUD/base_list.twig.html
  10. 0 0
      Resources/views/CRUD/base_list_field.twig.html
  11. 1 1
      Resources/views/CRUD/edit.twig
  12. 1 1
      Resources/views/CRUD/edit_array.twig
  13. 0 0
      Resources/views/CRUD/edit_boolean.twig.html
  14. 1 1
      Resources/views/CRUD/edit_choice.twig
  15. 12 0
      Resources/views/CRUD/edit_datetime.twig.html
  16. 1 1
      Resources/views/CRUD/edit_integer.twig
  17. 1 1
      Resources/views/CRUD/edit_string.twig
  18. 0 0
      Resources/views/CRUD/edit_many_association_script.twig.html
  19. 2 2
      Resources/views/CRUD/edit_many_to_many.twig
  20. 2 2
      Resources/views/CRUD/edit_many_to_one.twig
  21. 1 1
      Resources/views/CRUD/edit_one_to_many.twig
  22. 2 2
      Resources/views/CRUD/edit_one_to_one.twig
  23. 1 1
      Resources/views/CRUD/edit_text.twig
  24. 1 1
      Resources/views/CRUD/edit_decimal.twig
  25. 0 12
      Resources/views/CRUD/filter_boolean.twig
  26. 12 0
      Resources/views/CRUD/filter_boolean.twig.html
  27. 0 12
      Resources/views/CRUD/filter_callback.twig
  28. 12 0
      Resources/views/CRUD/filter_callback.twig.html
  29. 1 1
      Resources/views/CRUD/filter_many_to_many.twig
  30. 1 1
      Resources/views/CRUD/filter_integer.twig
  31. 1 1
      Resources/views/CRUD/filter_identifier.twig
  32. 0 13
      Resources/views/CRUD/filter_string.twig
  33. 13 0
      Resources/views/CRUD/filter_string.twig.html
  34. 0 13
      Resources/views/CRUD/filter_text.twig
  35. 13 0
      Resources/views/CRUD/filter_text.twig.html
  36. 1 1
      Resources/views/CRUD/list.twig
  37. 1 1
      Resources/views/CRUD/list__batch.twig
  38. 1 1
      Resources/views/CRUD/list_array.twig
  39. 1 1
      Resources/views/CRUD/list_bigint.twig
  40. 1 1
      Resources/views/CRUD/list_boolean.twig
  41. 1 1
      Resources/views/CRUD/list_datetime.twig
  42. 0 14
      Resources/views/CRUD/list_decimal.twig
  43. 14 0
      Resources/views/CRUD/list_decimal.twig.html
  44. 11 0
      Resources/views/CRUD/list_identifier.twig.html
  45. 1 2
      Resources/views/CRUD/edit_datetime.twig
  46. 0 0
      Resources/views/CRUD/list_many_to_many.twig.html
  47. 1 1
      Resources/views/CRUD/list_many_to_one.twig
  48. 0 11
      Resources/views/CRUD/list_mediumint.twig
  49. 1 1
      Resources/views/CRUD/list_identifier.twig
  50. 0 0
      Resources/views/CRUD/list_one_to_many.twig.html
  51. 1 1
      Resources/views/CRUD/list_one_to_one.twig
  52. 0 11
      Resources/views/CRUD/list_smallint.twig
  53. 11 0
      Resources/views/CRUD/list_smallint.twig.html
  54. 0 11
      Resources/views/CRUD/list_string.twig
  55. 11 0
      Resources/views/CRUD/list_string.twig.html
  56. 0 11
      Resources/views/CRUD/list_text.twig
  57. 11 0
      Resources/views/CRUD/list_text.twig.html
  58. 0 11
      Resources/views/CRUD/list_tinyint.twig
  59. 1 1
      Resources/views/CRUD/list_integer.twig
  60. 1 1
      Resources/views/Core/dashboard.twig
  61. 0 0
      Resources/views/ajax_layout.twig.html
  62. 0 0
      Resources/views/standard_layout.twig.html
  63. 3 3
      Tool/Datagrid.php

+ 4 - 4
Admin/Admin.php

@@ -109,7 +109,7 @@ abstract class Admin extends ContainerAware
 
                 $this->baseRoutePattern = sprintf('/%s/%s/%s',
                     $this->urlize($matches[2], '-'),
-                    $this->urlize($matches[4], '-'),
+                    $this->urlize($matches[3], '-'),
                     $this->urlize($matches[5], '-')
                 );
             } else {
@@ -133,7 +133,7 @@ abstract class Admin extends ContainerAware
 
                 $this->baseRouteName = sprintf('admin_%s_%s_%s',
                     $this->urlize($matches[2]),
-                    $this->urlize($matches[4]),
+                    $this->urlize($matches[3]),
                     $this->urlize($matches[5])
                 );
             } else {
@@ -311,7 +311,7 @@ abstract class Admin extends ContainerAware
      */
     public function getListTemplate()
     {
-        return 'Sonata\BaseApplicationBundle:CRUD:list.twig';
+        return 'SonataBaseApplicationBundle:CRUD:list.twig.html';
     }
 
     /**
@@ -321,7 +321,7 @@ abstract class Admin extends ContainerAware
      */
     public function getEditTemplate()
     {
-        return 'Sonata\BaseApplicationBundle:CRUD:edit.twig';
+        return 'SonataBaseApplicationBundle:CRUD:edit.twig.html';
     }
 
     public function getReflectionFields()

+ 11 - 11
Admin/EntityAdmin.php

@@ -119,22 +119,22 @@ abstract class EntityAdmin extends Admin
             // fix template value for doctrine association fields
             if(!$formDescription->getTemplate()) {
 
-                $formDescription->setTemplate(sprintf('Sonata\BaseApplicationBundle:CRUD:edit_%s.twig', $formDescription->getType()));
+                $formDescription->setTemplate(sprintf('SonataBaseApplicationBundle:CRUD:edit_%s.twig.html', $formDescription->getType()));
                 
                 if($formDescription->getType() == ClassMetadataInfo::ONE_TO_ONE) {
-                    $formDescription->setTemplate('Sonata\BaseApplicationBundle:CRUD:edit_one_to_one.twig');
+                    $formDescription->setTemplate('SonataBaseApplicationBundle:CRUD:edit_one_to_one.twig.html');
                 }
 
                 if($formDescription->getType() == ClassMetadataInfo::MANY_TO_ONE) {
-                    $formDescription->setTemplate('Sonata\BaseApplicationBundle:CRUD:edit_many_to_one.twig');
+                    $formDescription->setTemplate('SonataBaseApplicationBundle:CRUD:edit_many_to_one.twig.html');
                 }
 
                 if($formDescription->getType() == ClassMetadataInfo::MANY_TO_MANY) {
-                    $formDescription->setTemplate('Sonata\BaseApplicationBundle:CRUD:edit_many_to_many.twig');
+                    $formDescription->setTemplate('SonataBaseApplicationBundle:CRUD:edit_many_to_many.twig.html');
                 }
 
                 if($formDescription->getType() == ClassMetadataInfo::ONE_TO_MANY) {
-                    $formDescription->setTemplate('Sonata\BaseApplicationBundle:CRUD:edit_one_to_many.twig');
+                    $formDescription->setTemplate('SonataBaseApplicationBundle:CRUD:edit_one_to_many.twig.html');
                 }
 
             }
@@ -197,22 +197,22 @@ abstract class EntityAdmin extends Admin
 
             if(!$fieldDescription->getTemplate()) {
 
-                $fieldDescription->setTemplate(sprintf('Sonata/BaseApplicationBundle:CRUD:list_%s.twig', $fieldDescription->getType()));
+                $fieldDescription->setTemplate(sprintf('SonataBaseApplicationBundle:CRUD:list_%s.twig.html', $fieldDescription->getType()));
 
                 if($fieldDescription->getType() == ClassMetadataInfo::MANY_TO_ONE) {
-                    $fieldDescription->setTemplate('Sonata/BaseApplicationBundle:CRUD:list_many_to_one.twig');
+                    $fieldDescription->setTemplate('SonataBaseApplicationBundle:CRUD:list_many_to_one.twig.html');
                 }
 
                 if($fieldDescription->getType() == ClassMetadataInfo::ONE_TO_ONE) {
-                    $fieldDescription->setTemplate('Sonata/BaseApplicationBundle:CRUD:list_one_to_one.twig');
+                    $fieldDescription->setTemplate('SonataBaseApplicationBundle:CRUD:list_one_to_one.twig.html');
                 }
 
                 if($fieldDescription->getType() == ClassMetadataInfo::ONE_TO_MANY) {
-                    $fieldDescription->setTemplate('Sonata/BaseApplicationBundle:CRUD:list_one_to_many.twig');
+                    $fieldDescription->setTemplate('SonataBaseApplicationBundle:CRUD:list_one_to_many.twig.html');
                 }
 
                 if($fieldDescription->getType() == ClassMetadataInfo::MANY_TO_MANY) {
-                    $fieldDescription->setTemplate('Sonata/BaseApplicationBundle:CRUD:list_many_to_many.twig');
+                    $fieldDescription->setTemplate('SonataBaseApplicationBundle:CRUD:list_many_to_many.twig.html');
                 }
             }
 
@@ -230,7 +230,7 @@ abstract class EntityAdmin extends Admin
                 'label' => 'batch',
                 'code'  => '_batch'
             ));
-            $fieldDescription->setTemplate('Sonata/BaseApplicationBundle:CRUD:list__batch.twig');
+            $fieldDescription->setTemplate('SonataBaseApplicationBundle:CRUD:list__batch.twig.html');
             $this->listFields = array( '_batch' => $fieldDescription ) + $this->listFields;
         }
 

+ 1 - 1
Controller/CoreController.php

@@ -72,7 +72,7 @@ class CoreController extends Controller
     public function dashboardAction()
     {
 
-        return $this->render('Sonata/BaseApplicationBundle:Core:dashboard.twig', array(
+        return $this->render('SonataBaseApplicationBundle:Core:dashboard.twig.html', array(
             'groups' => $this->get('base_application.admin.pool')->getGroups()
         ));
     }

+ 2 - 2
Resources/config/routing/base_application.xml

@@ -5,11 +5,11 @@
     xsi:schemaLocation="http://www.symfony-project.org/schema/routing http://www.symfony-project.org/schema/routing/routing-1.0.xsd">
 
     <route id="sonata_base_application_dashboard" pattern="/dashboard">
-        <default key="_controller">Sonata\BaseApplicationBundle:Core:dashboard</default>
+        <default key="_controller">SonataBaseApplicationBundle:Core:dashboard</default>
     </route>
 
     <route id="sonata_base_application_retrieve_form_element" pattern="/core/{code}/get-form-field-element/{element_id}">
-        <default key="_controller">Sonata\BaseApplicationBundle:Core:retrieveFormFieldElement</default>
+        <default key="_controller">SonataBaseApplicationBundle:Core:retrieveFormFieldElement</default>
     </route>
 
 </routes>

+ 2 - 2
Resources/config/templates.xml

@@ -5,8 +5,8 @@
            xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
 
     <parameters>
-        <parameter key="base_application.templates.layout">Sonata\BaseApplicationBundle::standard_layout.twig</parameter>
-        <parameter key="base_application.templates.ajax">Sonata\BaseApplicationBundle::ajax_layout.twig</parameter>
+        <parameter key="base_application.templates.layout">SonataBaseApplicationBundle::standard_layout.twig.html</parameter>
+        <parameter key="base_application.templates.ajax">SonataBaseApplicationBundle::ajax_layout.twig.html</parameter>
     </parameters>
 
 </container>

Resources/views/CRUD/base_edit.twig → Resources/views/CRUD/base_edit.twig.html


Resources/views/CRUD/base_edit_field.twig → Resources/views/CRUD/base_edit_field.twig.html


Resources/views/CRUD/base_filter_field.twig → Resources/views/CRUD/base_filter_field.twig.html


Resources/views/CRUD/base_list.twig → Resources/views/CRUD/base_list.twig.html


Resources/views/CRUD/base_list_field.twig → Resources/views/CRUD/base_list_field.twig.html


+ 1 - 1
Resources/views/CRUD/edit.twig

@@ -9,5 +9,5 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit.twig.html' %}
 

+ 1 - 1
Resources/views/CRUD/edit_array.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}
     <span class="edit">

Resources/views/CRUD/edit_boolean.twig → Resources/views/CRUD/edit_boolean.twig.html


+ 1 - 1
Resources/views/CRUD/edit_choice.twig

@@ -9,4 +9,4 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}

+ 12 - 0
Resources/views/CRUD/edit_datetime.twig.html

@@ -0,0 +1,12 @@
+{#
+
+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 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}

+ 1 - 1
Resources/views/CRUD/edit_integer.twig

@@ -9,6 +9,6 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}{{ form_field(field_element, {'class' : 'title'}) }}{% endblock %}

+ 1 - 1
Resources/views/CRUD/edit_string.twig

@@ -9,6 +9,6 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}{{ form_field(field_element, {'class' : 'title'}) }}{% endblock %}

Resources/views/CRUD/edit_many_association_script.twig → Resources/views/CRUD/edit_many_association_script.twig.html


+ 2 - 2
Resources/views/CRUD/edit_many_to_many.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}
     <div id="field_container_{{ admin.code }}_{{ field_element.id}}">
@@ -26,5 +26,5 @@ file that was distributed with this source code.
         </div>
     </div>
 
-    {% include 'Sonata/BaseApplicationBundle:CRUD:edit_many_association_script.twig' %}
+    {% include 'SonataBaseApplicationBundle:CRUD:edit_many_association_script.twig.html' %}
 {% endblock %}

+ 2 - 2
Resources/views/CRUD/edit_many_to_one.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}
     <div id="field_container_{{ admin.code }}_{{ field_element.id}}">
@@ -26,5 +26,5 @@ file that was distributed with this source code.
         </div>
     </div>
 
-    {% include 'Sonata/BaseApplicationBundle:CRUD:edit_many_association_script.twig' %}
+    {% include 'SonataBaseApplicationBundle:CRUD:edit_many_association_script.twig.html' %}
 {% endblock %}

+ 1 - 1
Resources/views/CRUD/edit_one_to_many.twig

@@ -9,4 +9,4 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}

+ 2 - 2
Resources/views/CRUD/edit_one_to_one.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}
     {% if field_description.options.edit == 'inline' %}
@@ -32,6 +32,6 @@ file that was distributed with this source code.
             </div>
         </div>
 
-        {% include 'Sonata/BaseApplicationBundle:CRUD:edit_many_association_script.twig' %}
+        {% include 'SonataBaseApplicationBundle:CRUD:edit_many_association_script.twig.html' %}
     {% endif %}
 {% endblock %}

+ 1 - 1
Resources/views/CRUD/edit_text.twig

@@ -9,6 +9,6 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}{{ form_field(field_element, {'class' : 'title'}) }}{% endblock %}

+ 1 - 1
Resources/views/CRUD/edit_decimal.twig

@@ -9,6 +9,6 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_edit_field.twig.html' %}
 
 {% block field %}{{ form_field(field_element, {'class' : 'title'}) }}{% endblock %}

+ 0 - 12
Resources/views/CRUD/filter_boolean.twig

@@ -1,12 +0,0 @@
-{#
-
-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:base_filter_field.twig' %}

+ 12 - 0
Resources/views/CRUD/filter_boolean.twig.html

@@ -0,0 +1,12 @@
+{#
+
+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 'SonataBaseApplicationBundle:CRUD:base_filter_field.twig.html' %}

+ 0 - 12
Resources/views/CRUD/filter_callback.twig

@@ -1,12 +0,0 @@
-{#
-
-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:base_filter_field.twig' %}

+ 12 - 0
Resources/views/CRUD/filter_callback.twig.html

@@ -0,0 +1,12 @@
+{#
+
+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 'SonataBaseApplicationBundle:CRUD:base_filter_field.twig.html' %}

+ 1 - 1
Resources/views/CRUD/filter_many_to_many.twig

@@ -9,5 +9,5 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_filter_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_filter_field.twig.html' %}
 

+ 1 - 1
Resources/views/CRUD/filter_integer.twig

@@ -9,5 +9,5 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_filter_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_filter_field.twig.html' %}
 

+ 1 - 1
Resources/views/CRUD/filter_identifier.twig

@@ -9,5 +9,5 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_filter_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_filter_field.twig.html' %}
 

+ 0 - 13
Resources/views/CRUD/filter_string.twig

@@ -1,13 +0,0 @@
-{#
-
-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:base_filter_field.twig' %}
-

+ 13 - 0
Resources/views/CRUD/filter_string.twig.html

@@ -0,0 +1,13 @@
+{#
+
+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 'SonataBaseApplicationBundle:CRUD:base_filter_field.twig.html' %}
+

+ 0 - 13
Resources/views/CRUD/filter_text.twig

@@ -1,13 +0,0 @@
-{#
-
-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:base_filter_field.twig' %}
-

+ 13 - 0
Resources/views/CRUD/filter_text.twig.html

@@ -0,0 +1,13 @@
+{#
+
+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 'SonataBaseApplicationBundle:CRUD:base_filter_field.twig.html' %}
+

+ 1 - 1
Resources/views/CRUD/list.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list.twig.html' %}
 
 {% block table_body %}
     {% for element in datagrid.results %}

+ 1 - 1
Resources/views/CRUD/list__batch.twig

@@ -9,6 +9,6 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}
 
 {% block field%}<input type="checkbox" name="idx[]" value="{{ object.id }}" />{% endblock %}

+ 1 - 1
Resources/views/CRUD/list_array.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}
 
 {% block field%}
     {% for key, val in value %}

+ 1 - 1
Resources/views/CRUD/list_bigint.twig

@@ -8,4 +8,4 @@ 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' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:list_integer.twig.html' %}

+ 1 - 1
Resources/views/CRUD/list_boolean.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}
 
 {% block field%}<img src="/bundles/baseapplication/famfamfam/{% if value %}accept{% else %}exclamation{% endif %}.png" />{% endblock %}
 

+ 1 - 1
Resources/views/CRUD/list_datetime.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}
 
 {% block field%}{{ value|date }}{% endblock %}
 

+ 0 - 14
Resources/views/CRUD/list_decimal.twig

@@ -1,14 +0,0 @@
-{#
-
-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:base_list_field.twig' %}
-
-{% block field%}{{ value }}{% endblock %}

+ 14 - 0
Resources/views/CRUD/list_decimal.twig.html

@@ -0,0 +1,14 @@
+{#
+
+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 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}
+
+{% block field%}{{ value }}{% endblock %}

+ 11 - 0
Resources/views/CRUD/list_identifier.twig.html

@@ -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 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}

+ 1 - 2
Resources/views/CRUD/edit_datetime.twig

@@ -8,5 +8,4 @@ For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.
 
 #}
-
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_edit_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}

Resources/views/CRUD/list_many_to_many.twig → Resources/views/CRUD/list_many_to_many.twig.html


+ 1 - 1
Resources/views/CRUD/list_many_to_one.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}
 
 {% block field%}
     {% if value %}

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

@@ -1,11 +0,0 @@
-{#
-
-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' %}

+ 1 - 1
Resources/views/CRUD/list_identifier.twig

@@ -8,4 +8,4 @@ For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.
 
 #}
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:list_integer.twig.html' %}

Resources/views/CRUD/list_one_to_many.twig → Resources/views/CRUD/list_one_to_many.twig.html


+ 1 - 1
Resources/views/CRUD/list_one_to_one.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}
 
 {% block field%}
 

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

@@ -1,11 +0,0 @@
-{#
-
-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.html

@@ -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 'SonataBaseApplicationBundle:CRUD:list_integer.twig.html' %}

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

@@ -1,11 +0,0 @@
-{#
-
-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:base_list_field.twig' %}

+ 11 - 0
Resources/views/CRUD/list_string.twig.html

@@ -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 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}

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

@@ -1,11 +0,0 @@
-{#
-
-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:base_list_field.twig' %}

+ 11 - 0
Resources/views/CRUD/list_text.twig.html

@@ -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 'SonataBaseApplicationBundle:CRUD:base_list_field.twig.html' %}

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

@@ -1,11 +0,0 @@
-{#
-
-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' %}

+ 1 - 1
Resources/views/CRUD/list_integer.twig

@@ -8,4 +8,4 @@ For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.
 
 #}
-{% extends 'Sonata/BaseApplicationBundle:CRUD:base_list_field.twig' %}
+{% extends 'SonataBaseApplicationBundle:CRUD:list_integer.twig.html' %}

+ 1 - 1
Resources/views/Core/dashboard.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% extends 'Sonata/BaseApplicationBundle::standard_layout.twig' %}
+{% extends 'SonataBaseApplicationBundle::standard_layout.twig.html' %}
 
 {% block title %}{% trans 'title_dashboard' from 'BaseApplicationBundle' %}{% endblock%}
 {% block content %}

Resources/views/ajax_layout.twig → Resources/views/ajax_layout.twig.html


Resources/views/standard_layout.twig → Resources/views/standard_layout.twig.html


+ 3 - 3
Tool/Datagrid.php

@@ -162,14 +162,14 @@ class Datagrid
             }
 
             if(!$fieldDescription->getTemplate()) {
-                $fieldDescription->setTemplate(sprintf('Sonata/BaseApplicationBundle:CRUD:filter_%s.twig', $fieldDescription->getType()));
+                $fieldDescription->setTemplate(sprintf('SonataBaseApplicationBundle:CRUD:filter_%s.twig.html', $fieldDescription->getType()));
 
                 if($fieldDescription->getType() == ClassMetadataInfo::MANY_TO_ONE) {
-                    $fieldDescription->setTemplate('Sonata/BaseApplicationBundle:CRUD:filter_many_to_one.twig');
+                    $fieldDescription->setTemplate('SonataBaseApplicationBundle:CRUD:filter_many_to_one.twig.html');
                 }
 
                 if($fieldDescription->getType() == ClassMetadataInfo::MANY_TO_MANY) {
-                    $fieldDescription->setTemplate('Sonata/BaseApplicationBundle:CRUD:filter_many_to_many.twig');
+                    $fieldDescription->setTemplate('SonataBaseApplicationBundle:CRUD:filter_many_to_many.twig.html');
                 }
             }
         }