开发者

symfony file-input widget problem

in my RcProfileTableForm.class.php i have this line for file input: $this->widgetSchema['file'] = new sfWidgetFormInputFile(array('label' => 'Profile Pic'),array('class' => 'file_input'));

on my form i have the lable as Profile Pic as above, then the button to click to open the browser to choose the input file and next to that i have the wording "No file chosen".

if you do choose a file, the filename will appear there. my problem now is: i cannot find in all of my code where that string is defined - No file 开发者_StackOverflow社区chosen????? i need to make that string RED and cannot find it anywhere...is this a symfony(1.4.5) thing???

can some-one please help? thank you


just as Piskvor commented - it's a browser-specific. For example Firefox 4.0 doesn't show 'No file chosen' text (it shows text input field).

And the way to apply color (or other style) to the text is using CSS:

.file_input { color: red }

Regards.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜