Opened 18 years ago
Last modified 17 years ago
#3295 closed enhancement
I'd like to have a group functionality in forms. — at Initial Version
Reported by: | ivan | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I use my custom group fields in my class forms.
I set an attribute in my form class:
class myform(forms):
field1 = ...
field2 = ...
group_myfields = ['field1','field2']
field1 and field2 are fields sets in my custom form class.
I can retrive html output, writing this:
myform().myfields.as_p()
myform().myfields.as_table()
and retrive only fileds listed in group_myfields.
Note:
See TracTickets
for help on using tickets.