Commit 69dc1e19 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1595123: Suspended users have warning colour background



In the amdin user search results list

behatnotneeded - can't detect colours

Change-Id: I8fed73bdfc6414f8238ad7c4c55091e441a412bc
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 984de894
......@@ -129,6 +129,8 @@ $string['usersearch'] = 'User search';
$string['usersearchdescription'] = 'Search all users and perform administrative actions on them';
$string['usersearchinstructions'] = 'You can search for users by clicking on the initials of their first and last names or by entering a name in the search box. You can also enter an email address in the search box if you would like to search email addresses.';
$string['emailaddresshidden'] = 'Email address hidden';
$string['inactive'] = 'User not active';
$string['inactivefor'] = 'User "%s" is currently not active';
$string['administergroups'] = 'Administer groups';
$string['administergroupsdescription'] = 'Appoint group administrators and delete groups';
......
......@@ -56,6 +56,10 @@ td.tiny {
}
}
tr.inactive {
background: $alert-warning-bg !important;
}
td input[type=radio],
td input[type=checkbox] {
margin: 0 auto;
......
......@@ -4,6 +4,10 @@
{if $USER->is_institutional_admin($i)}{assign var=canedituser value=1}{/if}
{/foreach}
{/if}
{if !$r.active}
<span class="icon icon-user-times" title="{str tag=inactive section=admin}"></span>
<span class="sr-only">{str tag=inactivefor section=admin arg1=$r.username}</span>
{/if}
{if $canedituser}
<a href="{$WWWROOT}admin/users/edit.php?id={$r.id}">{$r.username}</a>
{else}
......
{foreach from=$results.data item=r}
<tr class="{cycle values='r0,r1'}">
<tr class="{cycle values='r0,r1'}{if !$r.active} inactive{/if}">
{foreach from=$cols key=f item=c}
{strip}
......
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