[LON-CAPA-cvs] cvs: loncom /interface lonpopulate.pm
wenzelju
wenzelju@source.lon-capa.org
Tue, 24 Nov 2009 14:26:15 -0000
wenzelju Tue Nov 24 14:26:15 2009 EDT
Modified files:
/loncom/interface lonpopulate.pm
Log:
The follwing is only a temporary solution to adapt 'Automated Enrollment' to the design:
- Used LC_pick_box in order to design the table with the content.
- Deleted deprecated <font size=...>-Tags
- Inserted new breadcrumbs-symbol
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.66 loncom/interface/lonpopulate.pm:1.67
--- loncom/interface/lonpopulate.pm:1.66 Fri Oct 30 20:35:34 2009
+++ loncom/interface/lonpopulate.pm Tue Nov 24 14:26:15 2009
@@ -1,5 +1,5 @@
# automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.66 2009/10/30 20:35:34 raeburn Exp $
+# $Id: lonpopulate.pm,v 1.67 2009/11/24 14:26:15 wenzelju Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -217,26 +217,28 @@
} elsif ($action eq "newsections") {
$action = "sections";
}
- $page .= "-> <a href=\"/adm/populate?action=$action\">".$$tasklongref{$action}."</a> -> <b>result</b>";
+ $page .= "» <a href=\"/adm/populate?action=$action\">".$$tasklongref{$action}."</a> » <b>result</b>";
} else {
- $page .= " -> <b>".$$tasklongref{$action}."</b>";
+ $page .= " » <b>".$$tasklongref{$action}."</b>";
}
}
my $usrmang = &mt('User Management');
my $autenrl = &mt('Automated Enrollment Manager');
+ #LC_pick_box is used in the following. This is only a temporary solution to adapt the site to the design.
$r->print(<<ENDTHIS);
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td bgcolor="#CCCCFF">
- <font size="2"><a href="/adm/menu">$realm</a> -> <a href="/adm/createuser">$usrmang</a> -> $page</font><br/>
+ <td bgcolor="#C5DB99">
+ <a href="/adm/menu">$realm</a> » <a href="/adm/createuser">$usrmang</a> » $page<br/>
</td>
- <td align="right" bgcolor="#CCCCFF" valign="top">
- <font size="+1">$autenrl </font>
+ <td align="right" bgcolor="#C5DB99" valign="top">
+ $autenrl
</td>
</tr>
</table>
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
+<br/>
+<table width="100%" border="0" cellpadding="0" cellspacing="0" class="LC_pick_box">
+ <tr class="LC_pick_box_row">
ENDTHIS
}
@@ -247,9 +249,7 @@
$action = $env{'form.action'};
}
$r->print(<<ENDONE);
- <td width="10" valign="top" bgcolor="#DDFFFF"> </td>
- <td width="20%" valign="top" bgcolor="#DDFFFF">
- <br/>
+ <td valign="top" class="LC_pick_box_title">
ENDONE
foreach my $task (@{$tasksref}) {
if ($task eq $action) {
@@ -272,9 +272,7 @@
$r->print("
<p> </p>
</td>
- <td width=\"10\" valign=\"top\" bgcolor=\"#CCCCFF\"> </td>
- <td width=\"10\" valign=\"top\" bgcolor=\"#FFFFFF\"> </td>
- <td bgcolor=\"#ffffff\" valign=\"top\">");
+ <td valign=\"top\" class=\"LC_pick_box_value\">");
}
###############################################################
@@ -429,7 +427,7 @@
}
my $dateshow;
if ( ($oldendshow eq '') && ($oldstartshow eq '') ) {
- $dateshow = "<br/><font size='+1'>Warning</font>. Currently <b>NO</b> first enrollment or last enrollment dates are set. You <b>must</b> use this menu to set a start date and an end date if you plan to utilise automated adds and/or drops in this course.\n";
+ $dateshow = "<br/>Warning. Currently <b>NO</b> first enrollment or last enrollment dates are set. You <b>must</b> use this menu to set a start date and an end date if you plan to utilise automated adds and/or drops in this course.\n";
} else {
$dateshow = "Currently: First enrollment: <b><i>$oldstartshow</i></b>, Last enrollment: <b><i>$oldendshow</i></b>\n";
}
@@ -1334,7 +1332,7 @@
);
my $dateshow;
if ( ($oldendshow eq '') && ($oldstartshow eq '') ) {
- $dateshow = "<br/><font size='+1'>".&mt('Warning')."</font>. ".$lt{'cuno'}." ";
+ $dateshow = "<br/>".&mt('Warning').". ".$lt{'cuno'}." ";
if ($action eq 'setaccess') {
$dateshow .= $lt{'ifyo'}."\n";
} elsif ($action eq 'updatenow') {
@@ -1514,7 +1512,7 @@
}
if ($autoadds || $autodrops) {
$warning = &warning_message($dom,$crs,$action);
- $warn_prefix = "<br/><font size ='+1'><b>Warning</b></font>. Although you indicated that nightly ";
+ $warn_prefix = "<br/><b>Warning</b>. Although you indicated that nightly ";
$warn_suffix = " should be enabled, additional action is required.<br/>";
}
if ($autoadds) {
@@ -1612,7 +1610,7 @@
}
}
$warning = &warning_message($dom,$crs,$action);
- $warn_prefix = "<br/><font size ='+1'><b>Warning</b></font>. Although you set a start and end date for auto-enrollment, additional action is required.<br/>";
+ $warn_prefix = "<br/><b>Warning</b>. Although you set a start and end date for auto-enrollment, additional action is required.<br/>";
unless ($warning eq '') {
$response .= $warn_prefix.$warning;
}
@@ -1711,7 +1709,7 @@
}
}
$warning = &warning_message($dom,$crs,$action);
- $warn_prefix = "<br/><font size ='+1'><b>Warning</b></font>. Although you have set default first and last access dates for students who are added via automatic enrollment, additional action is required.<br/>";
+ $warn_prefix = "<br/><b>Warning</b>. Although you have set default first and last access dates for students who are added via automatic enrollment, additional action is required.<br/>";
unless ($warning eq '') {
$response .= $warn_prefix.$warning;
}
@@ -2019,7 +2017,7 @@
if (@allxlists > 0) {
$warning = &warning_message($dom,$crs,$action);
- $warn_prefix = "<br/><font size ='+1'><b>Warning</b></font>. Although you have selected crosslisted courses to contribute enrollment to this course, additional action is required.<br/>";
+ $warn_prefix = "<br/><b>Warning</b>. Although you have selected crosslisted courses to contribute enrollment to this course, additional action is required.<br/>";
unless ($warning eq '') {
$response .= $warn_prefix.$warning;
}
@@ -2157,7 +2155,7 @@
if ($seccount > 0) {
$warning = &warning_message($dom,$crs,$action);
- $warn_prefix = "<br/><font size ='+1'><b>Warning</b></font>. Although you have selected sections to contribute enrollment to this course, additional action is required.<br/>";
+ $warn_prefix = "<br/><b>Warning</b>. Although you have selected sections to contribute enrollment to this course, additional action is required.<br/>";
unless ($warning eq '') {
$response .= $warn_prefix.$warning;
}
@@ -2328,7 +2326,7 @@
if (@allsections > 0) {
$warning = &warning_message($dom,$crs,$action);
- $warn_prefix = "<br/><font size ='+1'><b>Warning</b></font>. Although you have selected sections to contribute enrollment to this course, additional action is required.<br/>";
+ $warn_prefix = "<br/><b>Warning</b>. Although you have selected sections to contribute enrollment to this course, additional action is required.<br/>";
unless ($warning eq '') {
$response .= $warn_prefix.$warning;
}