Re: collapsible form

2009-02-17 Thread Alan
Hi, I got it working. I found the missing pieces in /sw/lib/python2.5/site-packages/django/views/i18n.py. Cheers, Alan On Tue, Feb 17, 2009 at 15:36, Alan wrote: > Hi There, > I am still working on CollapsedFieldsets.js and with help of Safari for > developer I got this error for the javascript:

Re: collapsible form

2009-02-17 Thread Alan
Hi There, I am still working on CollapsedFieldsets.js and with help of Safari for developer I got this error for the javascript: Can't find variable: gettext file:///Users/alan/Desktop/CollapsedFieldsets.js (line 34) Line 34: collapse_link.innerHTML = gettext('Show'); I don't know javascript eno

Re: collapsible form

2009-02-17 Thread Alan
So, I tried a lot and narrowed as much as I could from the django admin pages and got almost all from CollapsedFieldsets.js except one thing: - If CollapsedFieldsets.js is generating " (Show)" then it's not showing in my browser, i.e., I don't the (Hide) or (Show) link. I know the javascript is wo

Re: collapsible form

2009-02-13 Thread Alan
Gosh, you're right. From the source of admin: Thanks a lot, Alan On Fri, Feb 13, 2009 at 12:51, Daniel Roseman wrote: > > On Feb 13, 11:23 am, Alan wrote: > > Indeed, I have been looking athttp:// > docs.djangoproject.com/en/dev/intro/tutorial02/#s-customize-th... > > used 'classes': ['colla

Re: collapsible form

2009-02-13 Thread Daniel Roseman
On Feb 13, 11:23 am, Alan wrote: > Indeed, I have been looking > athttp://docs.djangoproject.com/en/dev/intro/tutorial02/#s-customize-th... > used 'classes': ['collapse'] in my admin page to see how it works and > I > don't see any javascript there and I don't believe page is been reloaded. You

Re: collapsible form

2009-02-13 Thread Alan
Thanks for your reply Bruno. On Fri, Feb 13, 2009 at 10:50, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > On 13 fév, 09:24, Alan wrote: > > > I really wonder how you could achieve this without javascript (unless > of course you plan on reloading the whole page, but I doubt this

Re: collapsible form

2009-02-13 Thread bruno desthuilliers
On 13 fév, 09:24, Alan wrote: > Hi There, > So using admin pages I can see the collapsible forms in action. Now I am > wondering how to have this functionality in my project. I know I need to > play with css (and I don't need javascript for that), I really wonder how you could achieve this with

collapsible form

2009-02-13 Thread Alan
Hi There, So using admin pages I can see the collapsible forms in action. Now I am wondering how to have this functionality in my project. I know I need to play with css (and I don't need javascript for that), but I was wondering if there's something else hidden in forms.Form module that would help