From 5c0c094f3c912e957940bd198acfd92e5783ce4f Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Fri, 27 Jul 2012 18:50:06 +0800 Subject: [PATCH 1/3] MDL-34573 accessibility compliance for tag: Add forform input text and select tag --- tag/coursetags_edit.php | 11 +++++++---- tag/manage.php | 7 +++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/tag/coursetags_edit.php b/tag/coursetags_edit.php index 8dbc285dffa..8f0e4d6a2ef 100644 --- a/tag/coursetags_edit.php +++ b/tag/coursetags_edit.php @@ -159,11 +159,12 @@ echo $OUTPUT->header();
- $edittagthisunit +
- + +
- $editdeletemytag +
- $selectoptions
diff --git a/tag/manage.php b/tag/manage.php index e0edeb94bf5..d63b09d3f9a 100644 --- a/tag/manage.php +++ b/tag/manage.php @@ -260,8 +260,10 @@ if ($tagrecords = $DB->get_records_sql($query, $params, $table->get_page_start() $flag = $tag->flag; $timemodified = format_time(time() - $tag->timemodified); $checkbox = ''; - $text = ''; - $tagtype = html_writer::select($existing_tagtypes, 'tagtypes['.$tag->id.']', $tag->tagtype, false); + $text = html_writer::label(get_string('newname', 'tag'), 'newname_' . $tag->id, false, array('class' => 'accesshide')); + $text .= ''; + $tagtype = html_writer::label(get_string('tagtype', 'tag'), 'menutagtypes'. $tag->id, false, array('class' => 'accesshide')); + $tagtype .= html_writer::select($existing_tagtypes, 'tagtypes['.$tag->id.']', $tag->tagtype, false, array('id' => 'menutagtypes'. $tag->id)); //if the tag if flagged, highlight it if ($tag->flag > 0) { @@ -283,6 +285,7 @@ if ($tagrecords = $DB->get_records_sql($query, $params, $table->get_page_start() echo ' '; echo ' '; echo '

'; + echo html_writer::label(get_string('withselectedtags', 'tag'), 'menuformaction', false, array('class' => 'accesshide')); echo '
+
+
+
+
+ +
+
From 14d15f125eac8ba69b989dba62f1422981f3af94 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Fri, 17 Aug 2012 12:01:34 +0800 Subject: [PATCH 3/3] MDL-34573 - add label for search tag input text --- tag/locallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tag/locallib.php b/tag/locallib.php index 589b6dcca14..a5ff7041204 100644 --- a/tag/locallib.php +++ b/tag/locallib.php @@ -233,6 +233,7 @@ function tag_print_search_box($return=false) { $output = $OUTPUT->box_start('','tag-search-box'); $output .= '
'; $output .= '
'; + $output .= ''; $output .= ''; $output .= '
'; $output .= '
';