From 019c879ae6d4a4523676517f533d362aac8d9a44 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sat, 19 May 2012 21:29:00 +0200 Subject: [PATCH] Using list decorator in set language form. For ads index. TODO: my own decorator. --- lib/form/doctrine/LanguageListForm.class.php | 3 +++ 1 file changed, 3 insertions(+) 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'); -- 2.1.4