some changes
Erik Myllymaki <erik.myllymaki-e7/W+miKoN1Wk0Htik3J/[email protected]> Tue, 30 May 2006 18:49:42 -0700
| Newsgroups | gmane.comp.web.zope.formulator.devel |
|---|---|
| Message-ID | <[email protected]> |
I find I use Formulator a lot for simple submit forms that show the result of submission on the following page, or in form-to-email applications using MailTemplates. In both cases I just want to be able to dump the whole form in a loop without formatting individual fields. I couldn't really figure out if I could have done this using the TALES expressions(I'm pretty sure that's what it's there for...?), so I ended up changing bits of Widget.py and StandardFields.py What I ended up doing mainly is just altering/extending render_view() a bit for DateTimeWidget and adding EmailWidget and LinkWidget. DateTime: input style: added another option 'alpha-list' which displays the month name in the drop-down list instead of the numeric month value. Extended Format: displays the date as "Tuesday, May 30, 2006". Include Weekday: decide if you want the weekday name included in extended format["Tuesday, May 30, 2006"|"May 30, 2006"]. EmailField: Render as Link: diplays the email address in href=mailto tag. LinkField: Render as Link: displays the link in href tag. If you think this might be helpful to anyone else, I will make it available.