From d0cc4c7d97a6a7e058de90a0b8269587758f085b Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 9 Feb 2017 17:33:46 +0000 Subject: Bug 1280393 - [a11y] All inputs and selects need to be labeled properly --- .../template/en/default/bug_modal/edit.html.tmpl | 5 ++- .../template/en/default/bug_modal/field.html.tmpl | 40 +++++++++++++++------- .../en/default/bug_modal/new_comment.html.tmpl | 2 +- 3 files changed, 32 insertions(+), 15 deletions(-) (limited to 'extensions/BugModal/template') diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 08a47b2d6..ef2922181 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -409,6 +409,7 @@ container = 1 hide_on_view = bug.priority == "--" && bug.bug_severity == "normal" help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#priority" + label_for = "priority" %] [% INCLUDE bug_modal/field.html.tmpl field = bug_fields.priority @@ -442,6 +443,7 @@ label = "Status" hide_on_edit = 1 help = "https://wiki.mozilla.org/BMO/UserGuide/BugStatuses" + label_for = "bug_status" %] [% bug.bug_status FILTER html %] [%+ bug.resolution FILTER html IF bug.resolution %] @@ -780,6 +782,7 @@ hide_on_view = (bug.rep_platform == 'All' && bug.op_sys == 'All') || (bug.rep_platform == 'Unspecified' && bug.op_sys == 'Unspecified') help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#rep_platform" + label_for = "rep_platform" %] [% INCLUDE bug_modal/field.html.tmpl field = bug_fields.rep_platform @@ -1009,7 +1012,7 @@ [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.status_whiteboard field_type = constants.FIELD_TYPE_FREETEXT - help = "https://wiki.mozilla.org/BMO/Whiteboard" + help = "https://wiki.mozilla.org/BMO/UserGuide/Whiteboard" %] [% bug.status_whiteboard == "" ? "---" : bug.status_whiteboard FILTER html %] [% END %] diff --git a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl index ac501c8d5..58fc4c30f 100644 --- a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl @@ -33,6 +33,7 @@ # class: (string) optional button class # caption: (string) button caption # hidden: (boolean) don't show the button (default: false) + # label_for: (string) optional label for identifier #%] [% @@ -104,9 +105,21 @@ END; [% END %] @@ -177,7 +190,7 @@ END; [% CASE constants.FIELD_TYPE_SINGLE_SELECT %] [%# single value select %] - [% IF values.defined %] [% FOREACH v IN values %] [% NEXT IF NOT v.is_active AND NOT value.contains(v.name).size %] @@ -195,7 +208,7 @@ END; [% CASE constants.FIELD_TYPE_MULTI_SELECT %] [%# multi value select %] - [% IF values.defined %] [%# not implemented %] [% ELSE %] @@ -207,8 +220,7 @@ END; [% CASE constants.FIELD_TYPE_FREETEXT %] [%# normal input field %] - - + [% CASE constants.FIELD_TYPE_USER %] [% IF action && !action.hidden %]