I figured you had missed the def part. Thanks for clarification.
Christopher Arndt wrote:
> Suren schrieb:
> > If I have multiple buttons on a form, how does the controller which
> > button has been clicked? I can send all submits to one controller
> > method but how to determine which of those four buttons were clicked?
>
> BTW, for the most common case, where you want a submit and a cancel button,
> you
> can just put a link instead of the cancel button, that references another
> url
> than the form action, and then make it look like a button with CSS:
>
> <style>
> a.button {
> color: black;
> border: .2em outset #e2e2de;
> background-color: #e2e2de;
> font-family: sans-serif;
> font-size: small;
> text-decoration: none;
> padding: .15em .5em;
> display: inline-block;
> cursor: default;
> }
>
> a.button:active {
> border-style: inset;
> }
> </style>
>
> <input type="submit" value="A real button">
> <a class="button" href="#">A fake button</a>
>
> Of course, you should then style normal buttons accordingly too.
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---