Answer the question
In order to leave comments, you need to log in
How to make a beautiful button through a form in Symfony2?
Guys. I want to make a picture instead of a not beautiful "select file" button. The form is generated via the form in the controller. When trying to connect bootstrap3 , all types are reacted except "file" / if you write
// ->add('photo', 'file', array('attr' => array('class' => 'btn btn-default' )))
then the old button lies in the middle of the new one. she does not react to the style
adding a file prescribed through iphpbundle (perhaps this affects)
what tell me?
Answer the question
In order to leave comments, you need to log in
A field of type file, it is special, there you can’t get by with just adding a class.
The easiest way to style it is to make it transparent, and underneath it put a nice "select image file".
Something like www.abeautifulsite.net/whipping-file-inputs-into-s...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question