Commit 63a1da59 authored by Yuliya Bozhko's avatar Yuliya Bozhko Committed by Gerrit Code Review
Browse files

Merge "Adding accessible text to column headers in users -> search (Bug #1266924)"

parents c679c3b2 4369ffed
......@@ -411,6 +411,8 @@ $string['mustspecifyoldpassword'] = 'You must specify your current password.';
$string['Site'] = 'Site';
// Misc. register stuff that could be used elsewhere
$string['profileicon'] = 'Profile image';
$string['bulkselect'] = 'Select users for editing / reports';
$string['emailaddress'] = 'Email address';
$string['emailaddressdescription'] = ' ';
$string['firstname'] = 'First name';
......
......@@ -393,6 +393,7 @@ function build_admin_user_search_results($search, $offset, $limit) {
'icon' => array(
'template' => 'admin/users/searchiconcolumn.tpl',
'class' => 'center',
'accessible' => get_string('profileicon'),
),
'firstname' => array(
'name' => get_string('firstname'),
......@@ -453,6 +454,7 @@ function build_admin_user_search_results($search, $offset, $limit) {
'headhtml' => '<a href="" id="selectall">' . get_string('All') . '</a>&nbsp;<a href="" id="selectnone">' . get_string('none') . '</a>',
'template' => 'admin/users/searchselectcolumn.tpl',
'class' => 'center nojs-hidden-table-cell',
'accessible' => get_string('bulkselect'),
);
if (!$USER->get('admin') && !$USER->is_institutional_admin()) {
......
......@@ -104,6 +104,9 @@
</a>
{else}
{$c.name}
{if $c.accessible}
<span class="accessible-hidden">{$c.accessible}</span>
{/if}
{/if}
{if $c.help}
{$c.helplink|safe}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment