Symfony 1.3: how to force as inline the choices generated by renderLabel()

Posted by user248959 on Stack Overflow See other posts from Stack Overflow or by user248959
Published on 2010-05-10T13:49:18Z Indexed on 2010/05/10 13:54 UTC
Read the original article Hit count: 311

Filed under:
|

Hi,

this line:

<li><?php echo $form['genero']->renderLabel() ?></li>

is generating

<li>

<label for="usuario_genero">Genero</label>

<ul class="radio_list">

<li>   <!-- this li doesn't have any id-->

<input type="radio" checked="checked" id="usuario_genero_0" value="0"
name="usuario[genero]">&nbsp;<label for="usuario_genero_0">Chico</label>

</li>

<li>  <!-- this li doesn't have any id-->

<input type="radio" id="usuario_genero_1" value="1"
name="usuario[genero]">&nbsp;<label for="usuario_genero_1">Chica</label>

</li>

</ul>

</li> 

I'd like to force the choices as inline, but the li's generated don't have the 'id' attribute.

What should i do?

Regards

Javi

© Stack Overflow or respective owner

Related posts about symfony

Related posts about forms