Hi,

If I understand correctly, you want to put a checkbox on a table, like the
one generated on the admin generator, where you select items to make a
particular action? If that's so and you're not using the admin generator,
just add your own checkbox to the table and create an action to receive the
array of ID's, and do what you need with the collection.

On Thu, Sep 23, 2010 at 2:24 PM, Gerda Graciela Rodrigues <[email protected]
> wrote:

> 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]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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

Reply via email to