Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions htdocs/js/System/system.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,23 @@ input.changed[type='text'] {
}
}

// Login proctor styles
.proctor-login-info {
background-color: #ddf;

&.proctor-login-overtime {
background-color: #ffa;
}

[data-bs-theme='dark'] & {
background-color: #00d;

&.proctor-login-overtime {
background-color: #550;
}
}
}

mjx-help-background {
z-index: 1055;
}
Expand Down
10 changes: 5 additions & 5 deletions templates/ContentGenerator/LoginProctor.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
% # Print a message about submission times if we're submitting an answer.
% if (param('submitAnswers')) {
% my $dueTime = $userSet->due_date;
% my ($color, $msg) = ('#ddddff', '');
% my ($overtimeClass, $msg) = ('', '');
% if ($dueTime + $ce->{gatewayGracePeriod} < $submitTime) {
% $color = '#ffffaa';
% $overtimeClass = ' proctor-login-overtime';
% $msg = maketext('The time limit on this assignment was exceeded. The assignment may be checked, '
% . 'but the result will not be counted.');
% }
%
<div class="card mb-2" style="background-color:<%= $color %>;">
<div class="proctor-login-info card mb-2<%= $overtimeClass %>">
<div class="card-body p-2">
<div class="card-title"><strong><%= maketext('Grading Assignment') %></strong></div>
<div class="card-text">
Expand Down Expand Up @@ -52,7 +52,7 @@
% || ($userSet->restricted_login_proctor eq '' || $userSet->restricted_login_proctor eq 'No'))
% {
% # The user info and username field for the proctor.
<div class="card p-2 mb-2" style="background-color:#ddddff;">
<div class="proctor-login-info card p-2 mb-2">
<div><%= maketext(q{User's username is:}) %> <strong><%= param('effectiveUser') // '' %></strong></div>
<div>
<%= maketext(q{User's name is:}) %>
Expand All @@ -68,7 +68,7 @@
</div>
% } else {
% # Restricted set login
<div class="card p-2 mb-2" style="background-color:#ddddff;">
<div class="proctor-login-info card p-2 mb-2">
<em>
<%= maketext(
'This set has a set-level proctor password to authorize logins. Enter the password below.') =%>
Expand Down
Loading