Freeform default button label (Was: [Twisted-web] using
freeformbind_* instead of subclass TypedInterface)
Mobilisera.com
simon at hedberg.net
Mon Jul 18 05:57:23 MDT 2005
One usecase is for example having a message form and having one button
for 'save' and another one for 'save and send'.
-----Original Message-----
From: twisted-web-bounces at twistedmatrix.com
[mailto:twisted-web-bounces at twistedmatrix.com] On Behalf Of Richard Wall
Sent: den 18 juli 2005 13:22
To: Discussion of twisted.web, Nevow, and Woven
Subject: Freeform default button label (Was: [Twisted-web] using
freeformbind_* instead of subclass TypedInterface)
On 16/07/05 20:22 Donovan Preston wrote:
> Thanks for mentioning this. It gave me an idea about a better way to
> support submit buttons in formless (more like forms does it).
However,
> in the meantime, would it be enough if it said "Submit" instead of
> "Call"? Or do you want no buttons at all?
I think "Submit" would be a much better default.
It might be useful to be able to add extra buttons to the form but in
most cases I find it better to have one submit button and a series of
hyperlinks css styled as buttons.
For example a form that saves a DB record at...
http://www.example.com/events/1/edit
...would save its contents to recordID=1.
A "cancel" button would link to... http://www.example.com/events/1/ ...a
"delete" button would link directly to...
http://www.example.com/events/1/delete
...which presents a confirmation form. Finally a "duplicate" button
links to... http://www.example.com/events/new/?id=1
I'm sure there are usecases for multiple submit buttons but I haven't
yet needed them.
-RichardW.
--
Richard Wall <richard at the-moon.net>
_______________________________________________
Twisted-web mailing list
Twisted-web at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
More information about the Twisted-web
mailing list