When I use sfWidgetFormInputFileEditable, there automatically shows a
"delete current file" checkbox in the edit action.

This my code:

                $this->widgetSchema['logo'] = new 
sfWidgetFormInputFileEditable(array
(
                        'file_src'     => '/uploads/studies/' . 
$this->getObject()->getLogo
(),
                        'is_image'     => true,
                        'edit_mode'    => !$this->isNew(),
                        'delete_label' => 'Verwijder',
                        'template'     => '%file%<br />%input%<br />%delete% 
%delete_label
%'
                ));



Now, in the template option, I use %delete% for the checkbox.
My question: is it possible to add a class to the checkbox?

So instead of

<input type="checkbox" name="institution[logo_delete]"
id="institution_logo_delete" />


I want to get

<input class="myclass" type="checkbox" name="institution[logo_delete]"
id="institution_logo_delete" />
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to