Commit 7efd59b5 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1640308: Add some colour to the inactive auth instance"

parents db6d133a e4a4ba10
...@@ -440,6 +440,14 @@ ...@@ -440,6 +440,14 @@
width: 90%; width: 90%;
} }
.authInstance .authitem {
padding:5px;
&.inactive {
background: $state-warning-bg;
color: $state-warning-text;
}
}
.btn-search.btn.btn-primary.admin-groups.button.btn { .btn-search.btn.btn-primary.admin-groups.button.btn {
margin-left: -13px; margin-left: -13px;
margin-top: 2px; margin-top: 2px;
......
...@@ -191,9 +191,10 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div. ...@@ -191,9 +191,10 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div.
<div id="instanceList" class="listrow"> <div id="instanceList" class="listrow">
{{foreach $instancelist instance}} {{foreach $instancelist instance}}
<div class="authInstance" id="instanceDiv{{$instance->id}}"> <div class="authInstance" id="instanceDiv{{$instance->id}}">
<span class="authitem{{if $instance->active == 0}} inactive{{/if}}">
<label class="authLabel"> <label class="authLabel">
<a href="" onclick="editinstance({{$instance->id}},'{{$instance->authname}}'); return false;"> <a href="" onclick="editinstance({{$instance->id}},'{{$instance->authname}}'); return false;">
{{str tag="title" section="auth.`$instance->authname`"}}</a> {{str tag="title" section="auth.`$instance->authname`"}}</a> {{if $instance->active == 0}} ({{get_string('off', 'mahara')}}){{/if}}
</label> </label>
<span class="authIcons" id="arrows{{$instance->id}}"> <span class="authIcons" id="arrows{{$instance->id}}">
{{if $instance->index + 1 < $instance->total}} {{if $instance->index + 1 < $instance->total}}
...@@ -213,6 +214,7 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div. ...@@ -213,6 +214,7 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div.
<span class="sr-only">{{str tag=deleteitem}}</span> <span class="sr-only">{{str tag=deleteitem}}</span>
</a> </a>
</span> </span>
</span>
</div> </div>
{{/foreach}} {{/foreach}}
</div> </div>
......
Supports Markdown
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