Add accessibility labels

Add 'Search' aria-label to inputs on admin dashboard
pull/2487/head
Polycapa 9 years ago
parent caf965709c
commit 99110ee98b
  1. 10
      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>

Loading…
Cancel
Save