'.&mt('Hotlist options').'
+
'.&mt('Hotlist options').'
'.
&mt('When enabled, the Hotlist keeps track of the last N '.$lc_role.'s visited.').' '.
&mt('Those N '.$lc_role.'s are then shown in a table at the top of the '.$lc_role.'s page.').'
'.
@@ -365,7 +367,7 @@ $options.'
');
if ($roles_check_list) {
$r->print('
-
'.&mt('Freeze Roles').'
+
'.&mt('Freeze Roles').'
'.&mt('The table below can be used to [_1]freeze[_2] '.$lc_role.'s in the Hotlist.','',' ').' '.
&mt('Those '.$lc_role.'s marked frozen will not be removed from the list, even if not recently used.').'
@@ -378,7 +380,7 @@ $options.'
$r->print('
-');
+
');
}
sub rolespref_get_role_text {
@@ -491,13 +493,11 @@ sub screennamechanger {
text => 'Change Screen Name'});
$r->print(Apache::loncommon::start_page('Personal Data'));
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Screen Name'));
- $r->print('
'
- .&mt('Change the name that is displayed in your posts.')
- .'
'
- );
+ $r->print('
');
+ my $caption = &mt('Name displayed in posts you make').':';
$r->print('
'
+ .'
'
);
}
@@ -556,7 +556,8 @@ sub iconchanger {
{ href => '/adm/preferences?action=changeicons',
text => 'Change Menu Display'});
$r->print(Apache::loncommon::start_page('Page Display Settings'));
- $r->print(Apache::lonhtmlcommon::breadcrumbs('Change Menu Display'));
+ $r->print(Apache::lonhtmlcommon::breadcrumbs('Change Menu Display').
+ '
ENDSCREEN
}
@@ -657,7 +663,8 @@ sub clickerchanger {
{ href => '/adm/preferences?action=changeclicker',
text => 'Register Clicker'});
$r->print(Apache::loncommon::start_page('Other'));
- $r->print(Apache::lonhtmlcommon::breadcrumbs('Register Clicker'));
+ $r->print(Apache::lonhtmlcommon::breadcrumbs('Register Clicker').
+ '
');
my $user = $env{'user.name'};
my $domain = $env{'user.domain'};
my %userenv = &Apache::lonnet::get
@@ -668,14 +675,17 @@ sub clickerchanger {
my $change=&mt('Save');
my $helplink=&Apache::loncommon::help_open_topic('Clicker_Registration',&mt('Locating your clicker ID'));
$r->print(<
+
ENDSCREEN
}
@@ -848,14 +858,24 @@ sub msgforwardchanger {
notv => 'is not a valid e-mail address',
toen => "To enter multiple addresses, enter one address at a time, click 'Change' and then add the next one",
prme => 'Back',
+ acti => 'Action',
+ type => 'Types of message for which notification is sent',
+ nota => 'Notification address',
+ exce => 'Excerpt retains HTML tags in message',
+ modi => 'Modify',
+ dele => 'Delete',
+ addn => 'Add new address',
+ yes => 'Yes',
+ no => 'No',
);
$lt{'foad_exmpl'} = &mt('e.g. [_1]userA:domain1,userB:domain2,...[_2]','
',' ');
$lt{'mnot_exmpl'} = &mt('e.g. [_1]joe@doe.com[_2]','
',' ');
Apache::lonhtmlcommon::add_breadcrumb(
{ href => '/adm/preferences?action=changemsgforward',
- text => 'Messages & Notifications'});
+ text => 'Messages & Notifications'});
$r->print(Apache::loncommon::start_page('Messages & Notifications'));
- $r->print(Apache::lonhtmlcommon::breadcrumbs('Messages & Notifications'));
+ $r->print(Apache::lonhtmlcommon::breadcrumbs('Messages & Notifications').
+ '
');
my $forwardingHelp = &Apache::loncommon::help_open_topic("Prefs_Forwarding");
my $notificationHelp = &Apache::loncommon::help_open_topic("Prefs_Notification");
my $criticalMessageHelp = &Apache::loncommon::help_open_topic("Course_Critical_Message");
@@ -924,41 +944,41 @@ $validatescript
$r->print(<
$lt{'fwdm'} $forwardingHelp
+$lt{'fwdm'} $forwardingHelp
-$lt{'foad'} ($lt{'foad_exmpl'}):
-
-
-$lt{'noti'} $notificationHelp
-$lt{'mnot'} ($lt{'mnot_exmpl'}):
+$lt{'foad'} ($lt{'foad_exmpl'}):
+
+
+$lt{'noti'} $notificationHelp
+$lt{'mnot'} ($lt{'mnot_exmpl'}):
ENDMSG
- my @sortforwards = sort (keys(%allnot));
+ my @sortnotify = sort (keys(%allnot));
my $output = &Apache::loncommon::start_data_table().
&Apache::loncommon::start_data_table_header_row().
- ' '.
- ''.&mt('Action').' '.
- ''.&mt('Notification address').' '.
- &mt('Types of message for which notification is sent').
+ ' # '.
+ ''.$lt{'acti'}.' '.
+ ''.$lt{'nota'}.' '.
+ $lt{'type'}.
$criticalMessageHelp.' '.
- &mt('Excerpt retains HTML tags in message').' '.
+ $lt{'exce'}.''.
&Apache::loncommon::end_data_table_header_row();
my $num = 0;
my $counter = 1;
- foreach my $item (@sortforwards) {
- $output .= &Apache::loncommon::start_data_table_row().
+ foreach my $item (@sortnotify) {
+ $output .= &Apache::loncommon::start_data_table_row('LC_prefs_row').
''.$counter.' '.
''.
' '.
- &mt('Modify').' '.
+ $lt{'modi'}.' '.(' ' x2).
''.
' '.
- &mt('Delete').' '.
- '';
+ ')" aria-labelledby="LC_email_notify" /> ';
my %chk;
if (defined($allnot{$item}{'crit'})) {
if (defined($allnot{$item}{'reg'})) {
@@ -969,13 +989,15 @@ ENDMSG
} else {
$chk{'reg'} = 'checked="checked" ';
}
+ $output .= ''.$lt{'type'}.' ';
foreach my $type ('all','crit','reg') {
$output .= ''.
' '.
- $lt{$type}.' '.(' ' x4);
+ $lt{$type}.' '.(' ' x2);
}
+ $output .= ' ';
my $htmlon = '';
my $htmloff = '';
if (grep/^\Q$item\E/,@allow_html) {
@@ -983,14 +1005,16 @@ ENDMSG
} else {
$htmloff = 'checked="checked" ';
}
- $output .= ' '.$lt{'exce'}.' '.
+ ' '.
- &mt('Yes').' '.(' ' x3).
+ $lt{'yes'}.' '.(' ' x2).
' '.
- &mt('No').' '.
+ $lt{'no'}.''.
&Apache::loncommon::end_data_table_row();
$num ++;
$counter ++;
@@ -1000,24 +1024,27 @@ ENDMSG
crit => '',
reg => '',
);
- $output .= &Apache::loncommon::start_data_table_row().
+ $output .= &Apache::loncommon::start_data_table_row('LC_prefs_row').
''.$counter.' '.
''.
' '.&mt('Add new address').' '.
- '';
+ '" value="1" />'.$lt{'addn'}.' '.
+ '';
+ $output .= ''.$lt{'type'}.' ';
foreach my $type ('all','crit','reg') {
$output .= ''.
' '.
- $lt{$type}.' '.(' ' x4);
+ $lt{$type}.' '.(' ' x2);
}
- $output .= ' '.&mt('Yes').' '.(' ' x3).
+ $output .= ''.
+ ''.$lt{'exce'}.' '.
+ ' '.$lt{'yes'}.' '.(' ' x2).
' '.
- &mt('No').' '.
+ $lt{'no'}.''.
&Apache::loncommon::end_data_table_row().
&Apache::loncommon::end_data_table();
$num ++;
@@ -1027,7 +1054,7 @@ ENDMSG
-
+
|);
}
@@ -1161,7 +1188,8 @@ sub colorschanger {
{ href => '/adm/preferences?action=changecolors',
text => 'Change Colors'});
$r->print(Apache::loncommon::start_page('Page Display Settings'));
- $r->print(Apache::lonhtmlcommon::breadcrumbs('Change Colors'));
+ $r->print(Apache::lonhtmlcommon::breadcrumbs('Change Colors').
+ '
');
# figure out colors
my $function=&Apache::loncommon::get_users_function();
my $domain=&Apache::loncommon::determinedomain();
@@ -1175,13 +1203,18 @@ sub colorschanger {
'vlink' => 'Visited Link Color',
'alink' => 'Active Link Color',
);
- my $start_data_table = &Apache::loncommon::start_data_table();
+ my $start_data_table = &Apache::loncommon::start_data_table().
+ &Apache::loncommon::data_table_caption(&mt('Colors for LON-CAPA pages')).
+ &Apache::loncommon::start_data_table_header_row().
+ '
'.&mt('Page Element').' '.&mt('Color').' '.
+ &Apache::loncommon::end_data_table_header_row();
my $chtable='';
foreach my $item (sort(keys(%colortypes))) {
my $curcol=&Apache::loncommon::designparm($function.'.'.$item,$domain);
$chtable.=&Apache::loncommon::start_data_table_row().
- ''.$colortypes{$item}.' '.$colortypes{$item}.' '.
+ ' '.
&Apache::loncommon::end_data_table_row()."\n";
}
@@ -1203,6 +1236,7 @@ sub colorschanger {
+
$start_data_table
@@ -1213,7 +1247,7 @@ $end_data_table
-
+
ENDCOL
}
@@ -1288,7 +1322,7 @@ sub passwordchanger {
my ($blocked,$blocktext) =
&Apache::loncommon::blocking_status('passwd',$clientip);
if ($blocked) {
- $r->print('
'.$blocktext.'
');
+ $r->print('
'.$blocktext.'
');
return;
}
} elsif ($caller eq 'reset_by_email') {
@@ -1338,13 +1372,18 @@ sub passwordchanger {
$r->print(
'