'
- .&Apache::lonhtmlcommon::start_pick_box()
-
- .&Apache::lonhtmlcommon::row_headline()
- .'
'
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'user'})
- .'
'
- .&Apache::loncommon::studentbrowser_javascript()
- .&Apache::loncommon::selectstudent_link('ccrs','ccuname','ccdomain')
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'dmn'},"","LC_odd_row_value")
- .$domform
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_headline()
- .'
'
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'ctit'})
- .'
'
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'chsr'})
- .$course_home
- .&Apache::lonhtmlcommon::row_closure()
+ $r->print('
-$lt{'co'} $lt{'gc'}
-
-
-
-
-
-$lt{'ginf'}
-
-
-
-
-
-
-
-$lt{'grco'}
-
-
-
-
$lt{'mssg'}
-
-
-
-
-
-$lt{'cmmn'}
-
-
-
-
-
-$lt{'acco'}
-
-
-
-
-
-$lt{'rshm'}
-
-
-
-$lt{'grts'}
-
-$lt{'grtq'}
-Mb
-
-
+ $r->print('
-
-
-
-ENDDOCUMENT
+
+'
+ );
}
- $r->print($end_page);
+ $r->print(''.
+ $end_page);
}
# ====================================================== Phase two: make course
@@ -766,17 +664,21 @@ sub create_course {
&Apache::loncommon::construct_course($args,\$logmsg,\$courseid,
\$crsudom,\$crsunum,
$env{'user.domain'},
- $env{'user.name'});
+ $env{'user.name'},'dc_create');
$r->print($output);
if ($success) {
#
# Make the requested user a course coordinator or group coordinator
#
if (($ccdomain) && ($ccuname)) {
+ my $ccrole = 'cc';
+ if ($crstype eq 'Community') {
+ $ccrole = 'co';
+ }
$r->print(&mt('Assigning role of '.$crstype.' Coordinator to [_1]:',
,''.$ccuname.':'.$ccdomain.'')
.&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid,
- 'cc','','','','','createcourse').'');
+ $ccrole,'','','','','createcourse').'
');
}
if ($env{'form.setkeys'}) {
$r->print(
@@ -817,9 +719,14 @@ sub print_intro_page {
help => 'Batch_Creation',
},
{ internal_name => 'requestdisplay',
- name => &mt('Approve or reject course requests'),
+ name => &mt('Approve or reject requests'),
short_description =>
- &mt('Display course creation requests submitted by authorized users held pending approval by a Domain Coordinator.'),
+ &mt('Display course and community creation requests submitted by authorized users, held pending approval by a Domain Coordinator.'),
+ },
+ { internal_name => 'creationlog',
+ name => &mt('View creation log'),
+ short_description =>
+ &mt('Display information about when, how and by whom courses and communities were created in this domain.'),
},
);
my $options;
@@ -850,7 +757,7 @@ sub upload_batchfile {
my $end_page =
&Apache::loncommon::end_page();
$r->print($start_page.$crumbs);
- $r->print('
'.&mt('Upload a courses or groups attributes file').'
');
+ $r->print(''.&mt('Upload a courses or communities attributes file').'
');
$r->print('