From: Gustavo Martin Morcuende Date: Sat, 19 May 2012 19:29:00 +0000 (+0200) Subject: Using list decorator in set language form. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=019c879ae6d4a4523676517f533d362aac8d9a44;p=mobi%2F.git Using list decorator in set language form. For ads index. TODO: my own decorator. --- diff --git a/lib/form/doctrine/LanguageListForm.class.php b/lib/form/doctrine/LanguageListForm.class.php index c2df827..13ceb26 100644 --- a/lib/form/doctrine/LanguageListForm.class.php +++ b/lib/form/doctrine/LanguageListForm.class.php @@ -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');