--- modules/relate/lonlogin.pm 2012/03/01 01:00:38 1.9
+++ modules/relate/lonlogin.pm 2012/05/01 15:47:14 1.10
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.9 2012/03/01 01:00:38 relate Exp $
+# $Id: lonlogin.pm,v 1.10 2012/05/01 15:47:14 relate Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -293,7 +293,9 @@ sub handler {
'serv' => 'Server',
'servadm' => 'Server Administration',
'helpdesk' => 'Contact Helpdesk',
- 'exist' => 'Existing user?',
+ 'exist' => 'Existing user - sign-up with existing username',
+ 'create' => 'New user - create username and sign-up',
+ 'already' => 'Already signed up?',
'forgotpw' => 'Forgot your password?',
'newuser' => 'New User?',
'click' => 'Click here to sign up',
@@ -319,6 +321,7 @@ sub handler {
# ---------------------------------------- Assemble Javascript to put in
+
my $js = (<
@@ -370,6 +373,16 @@ function enableInput() {
return;
}
+function SubmitSignUp() {
+ if (document.signup.usertype[0].checked == true) {
+ document.signup.action = '/adm/createaccount';
+ }
+ if (document.signup.usertype[1].checked == true) {
+ document.signup.action = '/adm/selfenroll';
+ }
+ return true;
+}
+
// ]]>
@@ -396,7 +409,6 @@ ENDSCRIPT
# ------------------------------------------------------------ Additional Texts
$lt{'newto'} = &mt('New to the [_1]Mechanics Online[_2] site?','','');
$lt{'mech'} = &mt('Mechanics Online is a Newtonian Mechanics course developed by Professor David Pritchard and the RELATE education group at MIT. [_1]Learn more[_2]','','');
- $lt{'thco'} = &mt('The course opens on March 1st at 10:00am EST. If you sign up before then you will be automatically enrolled in the course.');
$lt{'runson'} = &mt('Mechanics Online runs on [_1]LON-CAPA[_2] - an open source, freeware, distributed learning content management and assessment system.',
'',
'');
@@ -468,7 +480,7 @@ END
}
# -------------------------------------------- Static cid for prerequisite test
- my $prereqcid = 'relate_3e100973b27484f2drelatel1';
+ my $prereqcid = 'relate_2764113e81b9e4f0crelatel1';
# ---------------------------------------------------- Warning if no Javascript
my $noscript_warning = '