Using list decorator in set language form.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sat, 19 May 2012 19:29:00 +0000 (21:29 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sat, 19 May 2012 19:29:00 +0000 (21:29 +0200)
For ads index.
TODO: my own decorator.

lib/form/doctrine/LanguageListForm.class.php

index c2df827..13ceb26 100644 (file)
@@ -26,6 +26,9 @@ class LanguageListForm extends BaseLanguageForm
 
     $this->widgetSchema->setLabels(array('id' => 'Language: ',));
 
+    //By default symfony comes with 2 decorators: 'table' and 'list'
+    $this->widgetSchema->setFormFormatterName('list');
+
     //i18n (Internationalization)
     //See apps/companyfront/modules/language/i18n/language_select_form.es.xml file (not created yet)
     $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('language_select_form');