public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('title', 'text', array('label' => 'Title', 'required' => false, 'max_length' => VARCHAR_COLUMN_LENGTH_USED, 'attr' => array('autofocus' => 'autofocus'))); $builder->add('description_text', 'textarea', array('label' => 'Description', 'required' => false)); $builder->add('footer_text', 'textarea', array('label' => 'Footer Text', 'required' => false)); if ($this->config->isFileStore()) { $builder->add('logo', 'file', array("mapped" => false, 'label' => 'Upload new Logo', 'required' => false)); } }