Re: customize form in template according to field attribute

2010-02-09 Thread bruno desthuilliers
On Jan 29, 12:56 pm, jul wrote: > hi, > > I've got the Category model and SearchForm form shown below. In my > template I'd like to get all Category instances having a given type to > be able to separate those having different style in my CSS. > How can I do this? You'll have to provide your own

Re: customize form in template according to field attribute

2010-02-09 Thread Julien
Oh I have exactly this problem and cant find a good way to display my "categories" field ordered/grouped by parent type On 31 jan, 12:30, jul wrote: > I reposted this question with more details. > > On Jan 29, 12:56 pm, jul wrote: > > > > > hi, > > > I've got the Category model and SearchForm

Re: customize form in template according to field attribute

2010-01-31 Thread jul
I reposted this question with more details. On Jan 29, 12:56 pm, jul wrote: > hi, > > I've got the Category model and SearchForm form shown below. In my > template I'd like to get all Category instances having a given type to > be able to separate those having different style in my CSS. > How can

Re: customize form in template according to field attribute

2010-01-29 Thread jul
I meant: "to be able to separate those having different type in my CSS. " On Jan 29, 12:56 pm, jul wrote: > hi, > > I've got the Category model and SearchForm form shown below. In my > template I'd like to get all Category instances having a given type to > be able to separate those having differ

customize form in template according to field attribute

2010-01-29 Thread jul
hi, I've got the Category model and SearchForm form shown below. In my template I'd like to get all Category instances having a given type to be able to separate those having different style in my CSS. How can I do this? thanks Jul **Category model*** CATEGORY_TYPE = [ (1, 'region'), (2,