public function config()
 {
     parent::config();
     $this->setName('login');
     $this->senha = new Izi_Form_Element_Password('senha', array('label' => 'senha', 'class' => 'text', 'validators' => array(array('StringLength', false, array(0, 32))), 'required' => true));
     $this->addElement('hidden', 'referer', array('label' => 'referer', 'validators' => array(new Izi_Validate_Uri()), 'required' => false));
     $this->removeElement('nome');
     $this->getElement('submit')->setLabel('entrar');
 }
 public function configure()
 {
     parent::configure();
     unset($this['id'], $this['fecha_activacion'], $this['certificado'], $this['activo']);
     $this->widgetSchema['datos_pago'] = new sfWidgetFormDoctrineChoice(array('model' => 'MedioPago', 'add_empty' => false, 'multiple' => true, 'expanded' => true, 'renderer_class' => 'sfWidgetFormSelectCheckboxFromString'));
     $this->validatorSchema['datos_pago'] = new sfValidatorDoctrineChoiceToString(array('model' => 'MedioPago', 'multiple' => true));
     $this->widgetSchema['datos_envio'] = new sfWidgetFormDoctrineChoice(array('model' => 'MedioPago', 'add_empty' => false, 'multiple' => true, 'expanded' => true, 'renderer_class' => 'sfWidgetFormSelectCheckboxFromString'));
     $this->validatorSchema['datos_envio'] = new sfValidatorDoctrineChoiceToString(array('model' => 'MedioEnvio', 'multiple' => true));
     $this->widgetSchema['datos_banco'] = new sfWidgetFormDoctrineChoice(array('model' => 'MedioPago', 'add_empty' => false, 'multiple' => true, 'expanded' => true, 'renderer_class' => 'sfWidgetFormSelectCheckboxFromString'));
     $this->validatorSchema['datos_banco'] = new sfValidatorDoctrineChoiceToString(array('model' => 'Banco', 'multiple' => true));
     $this->validatorSchema['telefono2']->setOption('required', false);
     $this->validatorSchema['pin']->setOption('required', false);
 }
 protected function setupInheritance()
 {
     parent::setupInheritance();
     $this->widgetSchema->setNameFormat('administrador[%s]');
 }
 protected function setupInheritance()
 {
     parent::setupInheritance();
     $this->widgetSchema->setNameFormat('academico[%s]');
 }