Oi (Helo)!!
Alguém sabe como eu coloco um checkbox em cada linha de uma tabela?
(Does anyone know how I put a checkbox in each row of a table?)
Obrigada!
(Thank you!)
Gerda Graciela
--------------------------- code----------------------
public function configure()
{
$this->setWidgets(array(
'id' => new sfWidgetFormInputHidden(),
'curriculo_id' => new sfWidgetFormInput(),
'curso_informatica_id' => new
sfWidgetFormPropelChoice(array('model' => 'CursoInformatica', 'add_empty' =>
false,'expanded' => true,'multiple' => true)),
'created_at' => new sfWidgetFormDateTime(),
'updated_at' => new sfWidgetFormDateTime(),
'curso_informatica_niveis_id' => new
sfWidgetFormPropelChoice(array('model' => 'CursoInformaticaNiveis',
'multiple'=>false, 'expanded' => true)),
));
$this->setValidators(array(
'id' => new
sfValidatorPropelChoice(array('model' => 'ConhecimentoInformatica', 'column'
=> 'id', 'required' => false)),
'curriculo_id' => new sfValidatorInteger(),
'curso_informatica_id' => new
sfValidatorPropelChoice(array('model' => 'CursoInformatica', 'column' =>
'id')),
'created_at' => new
sfValidatorDateTime(array('required' => false)),
'updated_at' => new
sfValidatorDateTime(array('required' => false)),
'curso_informatica_niveis_id' => new
sfValidatorPropelChoice(array('model' => 'CursoInformaticaNiveis', 'column'
=> 'id', 'required' => false)),
));
$this->widgetSchema->setNameFormat('conhecimento_informatica[%s]');
}
-------------------------- code 2 ( _form) ---------------------
<tr>
<td>
<?php echo $form['curso_informatica_id']->renderError() ?>
<?php echo $form['curso_informatica_id'] ?>
</td>
<td>
<?php echo $form['curso_informatica_niveis_id']->renderError() ?>
<?php echo $form['curso_informatica_niveis_id'] ?>
</td>
<??>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en