[issue2551065] Cannot add attributes to submit buttons

Garth Jensen <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from Garth Jensen:

Using tal:attributes with tal:replace="structure context/submit" 
doesn't actually add attributes to the resulting submit button.  This 
makes it impossible to style the button by adding a class attribute.  
The reason this happens is that context/submit returns two or three 
hidden inputs before the submit input.  The attributes assigned by 
tal:attributes get attached to the first (hidden) input instead of the 
submit input.  The fix is to make the submit input get returned first 
in the HTMLClass.submit and _HTMLItem.submit methods in templating.py.

----------
components: Web interface
messages: 6706
nosy: garth
severity: minor
status: new
title: Cannot add attributes to submit buttons
versions: 1.6.1

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551065>
_________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.