@@ -513,9 +516,19 @@ END
ENDDOCUMENT
- } elsif ($crstype eq 'Group') {
+ } elsif ($crstype eq 'Community') {
$r->print(<
+
+
+
+
$lt{'grtq'}
Mb
-
-
-
-
@@ -653,7 +656,7 @@ sub create_course {
my $r=shift;
my $ccuname =&LONCAPA::clean_username($env{'form.ccuname'});
my $ccdomain=&LONCAPA::clean_domain($env{'form.ccdomain'});
- my $crstype = 'Group';
+ my $crstype = 'Community';
my ($enrollstart,$enrollend,$startaccess,$endaccess);
if ($env{'form.phase'} eq 'coursetwo') {
@@ -791,11 +794,11 @@ sub create_course {
sub print_intro_page {
my $r = shift;
my $start_page =
- &Apache::loncommon::start_page('Create a New Course or Group Space');
+ &Apache::loncommon::start_page('Create a New Course or Community');
my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Creation Options','Create_Course',undef,'Create_Courses');
my $end_page =
&Apache::loncommon::end_page();
- my $helplink=&Apache::loncommon::help_open_topic('Create_Course_GroupSpace',&mt('Help on Creating Courses and Groups'));
+ my $helplink=&Apache::loncommon::help_open_topic('Create_Course_Community',&mt('Help on Creating Courses and Communities'));
my @choices = ({ internal_name => 'courseone',
name => &mt('Create a single course'),
@@ -803,16 +806,21 @@ sub print_intro_page {
&mt('Create a new course by completing an online form.'),
},
{ internal_name => 'groupone',
- name => &mt('Create a single collaborative group space'),
+ name => &mt('Create a single community'),
short_description =>
- &mt('Create a new group space for non-course use by completing an online form.'),
+ &mt('Create a new collaborative community by completing an online form.'),
},
{ internal_name => 'batchone',
- name => &mt('Create courses/groups by uploading an attributes file'),
+ name => &mt('Create courses/communities by uploading an attributes file'),
short_description =>
- &mt('Upload an attributes file containing specifications for one or more courses or groups in XML format.'),
+ &mt('Upload an attributes file containing specifications for one or more courses or communities in XML format.'),
help => 'Batch_Creation',
},
+ { internal_name => 'requestdisplay',
+ name => &mt('Approve or reject course requests'),
+ short_description =>
+ &mt('Display course creation requests submitted by authorized users held pending approval by a Domain Coordinator.'),
+ },
);
my $options;
foreach my $choice (@choices) {
@@ -837,8 +845,8 @@ ENDDOCUMENT
sub upload_batchfile {
my $r = shift;
my $start_page =
- &Apache::loncommon::start_page('Create a New Course or Group Space');
- my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Upload Course/Group Attributes File','Create_Course',undef,'Create_Courses');
+ &Apache::loncommon::start_page('Create a New Course or Community');
+ my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Upload Course/Community Attributes File','Create_Course',undef,'Create_Courses');
my $end_page =
&Apache::loncommon::end_page();
$r->print($start_page.$crumbs);
@@ -848,7 +856,7 @@ sub upload_batchfile {
''.
'$lt{'co'} $lt{'gc'}
+$lt{'ginf'}
$lt{'grts'}
+
-$lt{'gc'}
-
'.
'');
+ 'value="Create Courses/Communities" />');
$r->print($end_page);
return;
}
@@ -856,7 +864,7 @@ sub upload_batchfile {
sub process_batchfile {
my $r = shift;
my $start_page =
- &Apache::loncommon::start_page('Create a New Course or Group Space');
+ &Apache::loncommon::start_page('Create a New Course or Community');
my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Creation Outcome','Create_Course',undef,'Create_Courses');
my $end_page =
&Apache::loncommon::end_page();
@@ -894,6 +902,26 @@ sub process_batchfile {
}
+sub courserequestbrowser_javascript {
+ return <<"ENDREQBRW";
+
+ENDREQBRW
+}
+
+
# ===================================================================== Handler
sub handler {
my $r = shift;
@@ -949,6 +977,33 @@ sub handler {
text=>"Creation Outcome",
faq=>9,bug=>'Dom Coord Interface',});
&process_batchfile($r);
+ } elsif ($env{'form.phase'} eq 'requestdisplay') {
+ &Apache::lonhtmlcommon::add_breadcrumb
+ ({href=>"/adm/createcourse?phase=$env{'form.phase'}",
+ text=>&mt('[_1] Display Request Queue',),
+ faq=>9,bug=>'Dom Coord Interface',});
+ my $js = &courserequestbrowser_javascript();
+ my $start_page=&Apache::loncommon::start_page('Display Requests',$js);
+ my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Display Requests','Course_Request',undef,'Course_Request');
+ $r->print($start_page.$crumbs."\n".'