RE: How to change the size of input field from Django

2007-08-15 Thread Richard House
-Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jordi.f Sent: 08 May 2007 19:27 To: Django users Subject: Re: How to change the size of input field from Django Hi L.B., I copy to 'myproject/templates/admin/base_site.html' th

Re: How to change the size of input field from Django

2007-05-08 Thread jordi.f
Hi L.B., I copy to 'myproject/templates/admin/base_site.html' the template from the Django source tree: 'django/contrib/admin/templates/admin/ base_site.html', so I can overwrite it without patching Django. Then I add something like {% block extrastyle %} textarea#id_Description { wi

Re: How to change the size of input field from Django

2007-05-04 Thread Pythoni
On May 5, 4:27 am, Alessandro Ronchi <[EMAIL PROTECTED]> wrote: > Alle venerdì 04 maggio 2007, Pythoni ha scritto: > > > But I would need at least rows="20" cols="70". > > Is there a way how to change the size from Django directly and not by > > editing HTML code? > > Thank you > > L.B. > > with

Re: How to change the size of input field from Django

2007-05-04 Thread Alessandro Ronchi
Alle venerdì 04 maggio 2007, Pythoni ha scritto: > But I would need at least rows="20" cols="70". > Is there a way how to change the size from Django directly and not by > editing HTML code? > Thank you > L.B. with newforms is very simple. you create the form from the model, like ContactForm = fo

Re: How to change the size of input field from Django

2007-05-04 Thread Russell Keith-Magee
On 5/4/07, Pythoni <[EMAIL PROTECTED]> wrote: > > One of the field in my model is defined > Description=meta.TextField() > > When I use > {{form.Description}} > in my input form( template) > the field is not as large as I would need. > When I check HTML I can see > > name="Description" rows="10"

Re: How to change the size of input field from Django

2007-05-04 Thread Bruno Tikami
You might also want to take a look at contrib/admin/views/template.py 's class TemplateValidator On 5/4/07, Bruno Tikami <[EMAIL PROTECTED]> wrote: > > Hi Pythoni! > > have you tried to take a look at oldforms/__init__.py file? There, look > for the LargeTextField class and it's render function.

Re: How to change the size of input field from Django

2007-05-04 Thread Bruno Tikami
Hi Pythoni! have you tried to take a look at oldforms/__init__.py file? There, look for the LargeTextField class and it's render function. I understand it's not exactily what you wanted, but it's a point to start ;) good luck! Tkm On 5/4/07, Pythoni <[EMAIL PROTECTED]> wrote: > > > One of t