<?php

/**
 * Partners form.
 *
 * @package    sf
 * @subpackage form
 * @author     Atma
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PartnersForm extends BasePartnersForm
{
    public function configure()
    {
        $this->useFields(array('title', 'cover', 'link', 'order_id'));
        $this->widgetSchema['cover'] = new sfWidgetFormInputFileUpload(array(
            'allowedFileTypes' => 'image/png,image/jpeg',
            'script' => '/uploader?key=partner',
            'multiple' => false
        ), array('required' => true));
    }
}
