Issue Details (XML | Word | Printable)

Key: SCAFF-204
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: David Peterson
Reporter: Simon Wheatley
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Scaffolding Plugin

Use LABEL elements for list-data radio buttons

Created: 07/Mar/08 03:33 PM   Updated: 29/Aug/08 05:23 AM
Component/s: {list-data}
Affects Version/s: None
Fix Version/s: 3.0.0

Time Tracking:
Not Specified

Issue Links:
Relates
 


 Description  « Hide
The accessibility of the radio buttons could be improved by wrapping their labels in an appropriate LABEL element. Unfortunately this would leave the rest of the form without labels, but it would be a small step forward.

Generated code would then look like:

<li><input name="scaffold.Blah" value="whatever" tabindex="5" type="radio" id="scaffold_Blah_whatever"><label for="scaffold_Blah_whatever">Male</label></li>


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson added a comment - 07/Mar/08 10:58 PM
Yeah, not a bad idea. Hypothetically a new macro (e.g. {label-data}) could be added to generate a label for any other field you like also. E.g:
{label-data:Text}*Text Field:*{label-data} {text-data:Text}

The main problem is that people might expect a macro called {label-data} to be related to page labels, rather than HTML labels. Especially since we have a {label-options} macro now, which is definitely related to page labels...


Simon Wheatley added a comment - 08/Mar/08 10:43 AM
How about { label-for:whatever} or { label-data-for:whatever}?

David Peterson added a comment - 29/Aug/08 05:23 AM
I've added the <label> output for checkbox/radio buttons. I've created a new feature request for the {label-for} macro (SCAFF-245) - you might want to watch it...