Browse Source

Add accessibility labels

Add 'Search' aria-label to inputs on admin dashboard
Polycapa 7 years ago
parent
commit
99110ee98b
1 changed files with 6 additions and 4 deletions
  1. 6 4
      main/admin/index.php

+ 6 - 4
main/admin/index.php

@@ -82,7 +82,8 @@ if (api_is_platform_admin()) {
     $search_form = '
         <form method="get" class="form-inline" action="user_list.php">
             <div class="form-group">
-                <input class="form-control" type="text" name="keyword" value="">
+                <input class="form-control" type="text" name="keyword" value=""
+                 aria-label="'.get_lang('Search').'">
                 <button class="btn btn-default" type="submit">
                     <em class="fa fa-search"></em> ' . get_lang('Search').'
                 </button>
@@ -140,7 +141,8 @@ if (api_is_platform_admin()) {
 
     $search_form = ' <form method="get" class="form-inline" action="course_list.php">
             <div class="form-group">
-                <input class="form-control" type="text" name="keyword" value="">
+                <input class="form-control" type="text" name="keyword" value=""
+                 aria-label="'.get_lang('Search').'">
                 <button class="btn btn-default" type="submit">
                     <em class="fa fa-search"></em> ' . get_lang('Search').'
                 </button>
@@ -199,7 +201,7 @@ if (api_is_platform_admin()) {
 
     $search_form = ' <form method="get" action="settings.php" class="form-inline">
             <div class="form-group">
-                <input class="form-control" type="text" name="search_field" value="" >
+                <input class="form-control" type="text" name="search_field" value="" aria-label="'.get_lang('Search').'" >
                 <input type="hidden" value="search_setting" name="category">
                 <button class="btn btn-default" type="submit">
                     <em class="fa fa-search"></em> ' . get_lang('Search').'
@@ -280,7 +282,7 @@ $sessionPath = api_get_path(WEB_CODE_PATH).'session/';
 
 $search_form = ' <form method="GET" class="form-inline" action="'.$sessionPath.'session_list.php">
                     <div class="form-group">
-                        <input class="form-control" type="text" name="keyword" value="">
+                        <input class="form-control" type="text" name="keyword" value="" aria-label="'.get_lang('Search').'">
                         <button class="btn btn-default" type="submit">
                             <em class="fa fa-search"></em> ' . get_lang('Search').'
                         </button>