[Bug 35237] New: Duplicate ids in markup of patron card layout edit form
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Bug ID: 35237 Summary: Duplicate ids in markup of patron card layout edit form Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Keywords: Academy, accessibility Severity: minor Priority: P5 - low Component: Templates Assignee: oleonard@myacpl.org Reporter: oleonard@myacpl.org QA Contact: testopia@bugs.koha-community.org CC: testopia@bugs.koha-community.org Tools -> Patron card creator -> Edit layout: A few pairs of radio buttons have duplicate labels: <li> <label for="page_side">Page side: </label> <input type="radio" name="page_side" id="page_side" value="F">Front <input type="radio" name="page_side" id="page_side" value="B" checked="checked">Back </li> It would be better for the "Page side" label to have no "for" attribute and for "Front" and "Back" to be labels. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 --- Comment #1 from Courtney Brown <courtneybrown@catalyst.net.nz> --- Created attachment 184253 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184253&action=edit BUG: 35237 Duplicate ids in markup of patron card form updated to have unique IDs. Test plan: 1. Head to 'tool's then 'patronn card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Inspect the page and check that the ids for Page side are unique. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Courtney Brown <courtneybrown@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|oleonard@myacpl.org |courtneybrown@catalyst.net. | |nz CC| |courtneybrown@catalyst.net. | |nz Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #184253|0 |1 is obsolete| | --- Comment #2 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 184421 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184421&action=edit Bug 35237: Give patron card layout form elements unique IDs This patch ensures the following patron card layout form fields use unique IDs: - page side - guide box - guide grid This semantically links the options to their labels so is more accessible for screen readers and keyboard navigation. The patch also adds a 'default' option to the original labels so they can become useful elements on the form rather than just text labels. Test plan: 1. Head to 'tools' then 'patron card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Confirm it's easy to tell which options are available and chosen for page side, guide box, and guide grid 5. Click on the text labels for the options i.e. front, back, on, off. Confirm the relevant radio button is selected Sponsored-by: Catalyst IT -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Noah <noah.tremblay@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Noah <noah.tremblay@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #184421|0 |1 is obsolete| | --- Comment #3 from Noah <noah.tremblay@inlibro.com> --- Created attachment 186246 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186246&action=edit Bug 35237: Give patron card layout form elements unique IDs This patch ensures the following patron card layout form fields use unique IDs: - page side - guide box - guide grid This semantically links the options to their labels so is more accessible for screen readers and keyboard navigation. The patch also adds a 'default' option to the original labels so they can become useful elements on the form rather than just text labels. Test plan: 1. Head to 'tools' then 'patron card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Confirm it's easy to tell which options are available and chosen for page side, guide box, and guide grid 5. Click on the text labels for the options i.e. front, back, on, off. Confirm the relevant radio button is selected Sponsored-by: Catalyst IT Signed-off-by: noah <noah@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@gmail.com --- Comment #4 from Jonathan Druart <jonathan.druart@gmail.com> --- Owen, can you confirm it's the our preferred styling for radio buttons? Before: https://snipboard.io/CgRw6D.jpg After: https://snipboard.io/josfAn.jpg I don't think the label's values should be bold. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA QA Contact|testopia@bugs.koha-communit |m.de.rooy@rijksmuseum.nl |y.org | CC| |m.de.rooy@rijksmuseum.nl --- Comment #5 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- - <label for="page_side">Page side: </label> + <label for="page_side_front">Page side: </label> Not sure about this change. Why front here? + <label for="page_side_front">Front: <input type="radio" name="page_side" id="page_side_front" value="F" /></label> Why include the input in the label ? Please explain. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 --- Comment #6 from Harrison Hawkins <harrisonhawkins@catalyst.net.nz> --- Created attachment 191736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191736&action=edit Bug 35237: Changed labels above checkbox on the edit layout page. Clarified the for attribute for the original labels of the checkboxes. Test plan: 1. Head to 'tools' then 'patron card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Confirm it's easy to tell which options are available and chosen for page side, guide box, and guide grid 5. Inspect the page, look at and confirm the original labels have been renamed for page size, guide box, guide grid Sponsored-by: Catalyst IT -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Harrison Hawkins <harrisonhawkins@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff CC| |harrisonhawkins@catalyst.ne | |t.nz --- Comment #7 from Harrison Hawkins <harrisonhawkins@catalyst.net.nz> --- (In reply to Marcel de Rooy from comment #5)
- <label for="page_side">Page side: </label> + <label for="page_side_front">Page side: </label> Not sure about this change. Why front here?
+ <label for="page_side_front">Front: <input type="radio" name="page_side" id="page_side_front" value="F" /></label> Why include the input in the label ?
Please explain.
In response to your first comment we have changed the labels for page side, guide box, guide grid. In response to second comment about inputs in labels we have noticed this formatting is elsewhere in koha for example see below: koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt: <label><input type="radio" name="branch" value="homebranch" /> Home library</label> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Harrison Hawkins <harrisonhawkins@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|courtneybrown@catalyst.net. |harrisonhawkins@catalyst.ne |nz |t.nz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Comma delimited| |Catalyst list of Sponsors| | Sponsorship status|--- |Sponsored CC| |aleisha@catalyst.net.nz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #186246|0 |1 is obsolete| | Attachment #191736|0 |1 is obsolete| | --- Comment #8 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 191806 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191806&action=edit Bug 35237: Give patron card layout form elements unique IDs This patch ensures the following patron card layout form fields use unique IDs: - page side - guide box - guide grid This semantically links the options to their labels so is more accessible for screen readers and keyboard navigation. The patch also adds a 'default' option to the original labels so they can become useful elements on the form rather than just text labels. Test plan: 1. Head to 'tools' then 'patron card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Confirm it's easy to tell which options are available and chosen for page side, guide box, and guide grid 5. Click on the text labels for the options i.e. front, back, on, off. Confirm the relevant radio button is selected Sponsored-by: Catalyst IT Signed-off-by: noah <noah@inlibro.com> Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 --- Comment #9 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 191807 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191807&action=edit Bug 35237: Changed labels above checkbox on the edit layout page. Clarified the for attribute for the original labels of the checkboxes. Test plan: 1. Head to 'tools' then 'patron card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Confirm it's easy to tell which options are available and chosen for page side, guide box, and guide grid 5. Inspect the page, look at and confirm the original labels have been renamed for page size, guide box, guide grid Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 --- Comment #10 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 191808 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191808&action=edit Bug 35237: (QA follow-up) Set label for attribute to first radio input Labels with a "for" attribute should reference an existing input, so we should keep the "Page side," "Guide box," and "Guide grid" for attribute pointing to the first corresponding radio input in that row. Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #191806|0 |1 is obsolete| | --- Comment #11 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 195250 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195250&action=edit Bug 35237: Give patron card layout form elements unique IDs This patch ensures the following patron card layout form fields use unique IDs: - page side - guide box - guide grid This semantically links the options to their labels so is more accessible for screen readers and keyboard navigation. The patch also adds a 'default' option to the original labels so they can become useful elements on the form rather than just text labels. Test plan: 1. Head to 'tools' then 'patron card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Confirm it's easy to tell which options are available and chosen for page side, guide box, and guide grid 5. Click on the text labels for the options i.e. front, back, on, off. Confirm the relevant radio button is selected Sponsored-by: Catalyst IT Signed-off-by: noah <noah@inlibro.com> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #191807|0 |1 is obsolete| | --- Comment #12 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 195251 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195251&action=edit Bug 35237: Changed labels above checkbox on the edit layout page. Clarified the for attribute for the original labels of the checkboxes. Test plan: 1. Head to 'tools' then 'patron card creator' 2. Click on 'Layouts' underneath 'Manage' 3. Click on 'Edit' 4. Confirm it's easy to tell which options are available and chosen for page side, guide box, and guide grid 5. Inspect the page, look at and confirm the original labels have been renamed for page size, guide box, guide grid Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #191808|0 |1 is obsolete| | --- Comment #13 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 195252 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195252&action=edit Bug 35237: (QA follow-up) Set label for attribute to first radio input Labels with a "for" attribute should reference an existing input, so we should keep the "Page side," "Guide box," and "Guide grid" for attribute pointing to the first corresponding radio input in that row. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |Remove duplicate ID's in release notes| |the markup to return valid | |html. CC| |martin.renvoize@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to main Version(s)| |26.05.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 --- Comment #14 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Thanks for all the hard work! Pushed to main for the next 26.05.00 release as RM Assistant -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 Jacob O'Mara <jacob.omara@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |Pushed to stable Version(s)|26.05.00 |26.05.00,25.11.05 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35237 --- Comment #15 from Jacob O'Mara <jacob.omara@openfifth.co.uk> --- Thanks all, pushed to 25.11.x -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org