rendered paste body $this->setWidget('pic', new sfWidgetFormInputFileEditable(array( 'label' => 'Picture', 'file_src' => $filePath, 'is_image' => true, 'edit_mode' => ($this->getObject()->getPic() AND !$this->getObject()->isNew() ? true: false), 'template' => '<table><tr> <td> %input% <br /> %delete% delete file </td> <td> <a rel="extraPics" title="'.$this->getObject()->getName().'" href="'.$filePath.'" target="_blank"><img src="'.thumbnail_path($filePath, 50, 50, 'good').'" /></a> </tr> </table>', )));