Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1986 (closed defect: invalid)

Opened 11 years ago

Last modified 11 years ago

[PATCH] Submit buttons should render the name attribute

Reported by: chrisz Owned by: anonymous
Priority: normal Milestone: 1.1
Component: TurboGears Version: 1.0.6
Severity: normal Keywords:


If you have multiple submit buttons, you want to give them names in order to distinguish them. However, the SubmitButton widget does not render the widget name. You can work around this using attrs, but that's not nice. I suggest rendering the name attribute for submit buttons, see patch.


submit.patch Download (388 bytes) - added by chrisz 11 years ago.
Render name of submit button

Change History

Changed 11 years ago by chrisz

Render name of submit button

comment:1 Changed 11 years ago by chrisz

  • Status changed from new to closed
  • Resolution set to invalid

That was nonsense, the names of a submit buttons is rendered if it is set to a non-default value. I was fooled because the name does not appear in the template, but it is sneaked into the attrs attribute instead. So no fix is necessary.

Note: See TracTickets for help on using tickets.