Re: Custom button for imagefield form
On Mon, Feb 22, 2010 at 1:06 PM, CrabbyPetewrote: > I have form with where users can upload an image. All works well but I > want a graphic instead of the default browse button that shows up. Can > I change it and if so how do you change it in the form field or > template? > > > class ProfileForm(SignUpForm): > > mugshot = forms.ImageField (required = False) > Please learn to use google, top result for 'styling file input': http://www.quirksmode.org/dom/inputfile.html HTH Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Custom button for imagefield form
On 22 February 2010 14:06, CrabbyPetewrote: > I have form with where users can upload an image. All works well but I > want a graphic instead of the default browse button that shows up. Can > I change it and if so how do you change it in the form field or > template? > > > class ProfileForm(SignUpForm): > > mugshot = forms.ImageField (required = False) > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > I don't really understand what are you trying to do, but if you want to change the appearance of the forms buttons you should try to use CSS, it has nothing to do with Django AFAIK (except maybe you could create your own widget but i don't see how that would help). -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Custom button for imagefield form
I have form with where users can upload an image. All works well but I want a graphic instead of the default browse button that shows up. Can I change it and if so how do you change it in the form field or template? class ProfileForm(SignUpForm): mugshot = forms.ImageField (required = False) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.