[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonpopulate.pm
raeburn
raeburn at source.lon-capa.org
Sat Apr 18 00:29:00 EDT 2026
raeburn Sat Apr 18 04:29:00 2026 EDT
Modified files:
/loncom/interface lonpopulate.pm loncommon.pm
Log:
- WCAG 2 compliance -- contrast ratio of at least 4.5:1 for normal text.
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.95 loncom/interface/lonpopulate.pm:1.96
--- loncom/interface/lonpopulate.pm:1.95 Tue Jan 13 04:11:54 2026
+++ loncom/interface/lonpopulate.pm Sat Apr 18 04:29:00 2026
@@ -1,5 +1,5 @@
# automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.95 2026/01/13 04:11:54 raeburn Exp $
+# $Id: lonpopulate.pm,v 1.96 2026/04/18 04:29:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -312,13 +312,13 @@
foreach my $task (@{$tasksref}) {
if (($task eq $action) && ($state eq 'choose')) {
$r->print('
- <p style="color: #A32E59;">
+ <p>
<b>'.$tasklongref->{$task}.'</b><br/>
</p>');
} else {
$r->print('
- <p style="color: #004263">
- <a href="/adm/populate?action='.$task.'"><b>'.$tasklongref->{$task}.'</b></a><br/>
+ <p>
+ <a href="/adm/populate?action='.$task.'" class="LC_autoenroll_nav"><b>'.$tasklongref->{$task}.'</b></a><br/>
</p>');
}
@@ -479,7 +479,7 @@
</div>
<div style="padding:0;clear:both;margin:0;border:0"></div>
</div>
-<div class="LC_autoenroll" style="color: #888888">
+<div class="LC_autoenroll" style="color: #757575;">
'.&mt('Note: Any students added manually by course coordinators using the User Manager will be unaffected by the nightly removal process if you choose to enable it.').'
</div>
<div style="text-align: right;">
@@ -578,10 +578,12 @@
</div>
<div class="LC_autoenroll">
<fieldset style="display: inline;"><legend>'.&mt('Condition for use of failsafe in this course').'</legend>
+ <div style="display: inline-block; margin: 0; padding: 0; line-height: 185%;">
<span class="LC_nobreak"><label><input type="radio" name="autodropfailsafetype" value="dom" onclick="toggleFailsafe(this.form);"'.$failsafechecked{'dom'}.$disabled.' />'.&mt('Use domain default').'</label></span> -- '.$domdefault.'<br />
<span class="LC_nobreak"><label><input type="radio" name="autodropfailsafetype" value="zero" onclick="toggleFailsafe(this.form);"'.$failsafechecked{'zero'}.$disabled.' />'.&mt('Failsafe will apply if retrieved institutional section enrollment is zero.').'</label></span><br />
<span class="LC_nobreak"><label><input type="radio" name="autodropfailsafetype" value="any" onclick="toggleFailsafe(this.form);"'.$failsafechecked{'any'}.$disabled.' />'.&mt('Failsafe will apply if retrieved institutional section enrollment is zero or greater.').'</label></span><br />
<span class="LC_nobreak"><label><input type="radio" name="autodropfailsafetype" value="off" onclick="toggleFailsafe(this.form);"'.$failsafechecked{'off'}.$disabled.' />'.&mt('Failsafe will not be in use in this course.').'</label></span><br />
+ </div>
</fieldset>
<br />
<fieldset style="display:'.$failsafesty.';" id="autodropfailsafe">
@@ -640,7 +642,7 @@
<div class="LC_autoenroll">
'.$start_table.'
</div>
- <div class="LC_autoenroll" style="color: #888888">
+ <div class="LC_autoenroll" style="color: #757575;">
'.&mt('If automated adds and/or drops are enabled, then your class roster will be automatically updated nightly, once the first enrollment date has been reached. Prior to this date, the class roster will only contain students you have added directly using the standard LON-CAPA enrollment tools.').'
</div>
<div class="LC_autoenroll">
@@ -650,7 +652,7 @@
<div class="LC_autoenroll">
'.$end_table.'
</div>
- <div class="LC_autoenroll" style="color: #888888">
+ <div class="LC_autoenroll" style="color: #757575;">
'.&mt('If automated adds and/or drops are enabled, then your class roster will be automatically updated nightly, until the last enrollment date has been reached.').'
</div>
<div style="text-align: right;">
@@ -1148,7 +1150,7 @@
}
if ($can_enable) {
$r->print('<br />
- <div class="LC_autoenroll" style="color: #888888">'.
+ <div class="LC_autoenroll" style="color: #757575;">'.
&mt('Note: if you enable automatic import of student photos, your course will automatically have access to photos saved by your institution for officially registered students, via a conduit established by your LON-CAPA domain coordinator.').'
</div>
');
@@ -1207,7 +1209,7 @@
<label><input type="radio" name="updatedrops" value="0"'.$disabled.' /> '.&mt('No').' </label><br />
</fieldset>
</div>
- <div class="LC_autoenroll" style="color: #888888;">'.
+ <div class="LC_autoenroll" style="color: #757575;">'.
&mt("Note: Any students previously added manually by course coordinator(s) using either 'Upload classlist CSV file' or 'Enroll a single user' will be unaffected by the removal process.").'
</div>
');
@@ -1505,7 +1507,7 @@
');
if ($action eq 'setaccess') {
$r->print('
- <div class="LC_autoenroll" style="color: #888888">
+ <div class="LC_autoenroll" style="color: #757575;">
'.$lt{'ifad'}.'
</div>
<div class="LC_autoenroll">
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1512 loncom/interface/loncommon.pm:1.1513
--- loncom/interface/loncommon.pm:1.1512 Wed Apr 15 16:36:58 2026
+++ loncom/interface/loncommon.pm Sat Apr 18 04:29:00 2026
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1512 2026/04/15 16:36:58 raeburn Exp $
+# $Id: loncommon.pm,v 1.1513 2026/04/18 04:29:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7988,6 +7988,10 @@
padding: 2px 0px 0px 5px;
}
+.LC_autoenroll_nav {
+ color: #004263;
+}
+
table.LC_data_table {
border: 1px solid #000000;
border-collapse: separate;
More information about the LON-CAPA-cvs
mailing list