A little hack for collapsing apps in the admin

2008-08-21 Thread [EMAIL PROTECTED]
I've always put the most important apps up top in the admin, and less- used stuff down toward the bottom. As far as I can tell, newforms- admin insists on alphabetizing them, so it occurred to me it would be nice to collapse the less-used apps to keep them out of the way. So, after taking a quick

Customizing newforms-admin -- collapsing apps?

2008-08-20 Thread [EMAIL PROTECTED]
Has anyone customized the admin (specifically with newforms-admin) to collapse/expand apps? I'd like to keep them out of the way as much as possible. I'm thinking some javascript that would expand/collapse them and store the preference in a cookie or the session. Is this a dumb idea? Has anyone do

Collapsing Template blocks

2007-10-10 Thread handsome greg
Just a quick question about templates: I'm coming from a templating system (html_template_sigma - ouch, I know) where you are able to hide and show blocks like tpl.hideBlock('block_name'). ANY clue how I might go about mimicking this behavior until we have a chance to revamp how our templates are

Re: collapsing

2006-08-17 Thread SmileyChris
Finishing the half finished sentence: ... You could make this work either by using square brackets or by adding a comma after the your inner "two-tuple", otherwise the outer brackets are being ignored and not turned into a list. It's a python thing with tuples and brackets. --~--~-~--~--

Re: collapsing

2006-08-17 Thread SmileyChris
Fields must be a list of two-tuples. You could make thi Note the new comma after the bracket: fields = ( ('Alcohol Use', {'fields': ('have_used', 'have_participated',), 'classes': 'collapse'}), ) --~--~-~--~~~---~--~~ You received this message because yo

collapsing

2006-08-17 Thread hoangelos
I have an admin screen for a class called Buyer. I have several other classes that need to be populated at the same time as Buyer. I wanted to collapse these. And allow the user to expand as they add. Below is one of the classes BuyerAlcoholUses. The problem is that it is not collapsed. Also