version 1.101.4.2, 2010/01/26 03:26:02
|
version 1.104, 2009/11/06 19:49:26
|
Line 1129 sub display_control {
|
Line 1129 sub display_control {
|
&verify_reenable($r,$groupname,$state,$action,$page,$states, |
&verify_reenable($r,$groupname,$state,$action,$page,$states, |
\%stored,$crstype); |
\%stored,$crstype); |
} elsif ($state eq 'result') { |
} elsif ($state eq 'result') { |
&reenable_group($r,$cdom,$cnum,$groupname); |
&reenable_group($r,$cdom,$cnum,$groupname,$crstype); |
} |
} |
} |
} |
} |
} |
Line 1215 sub delete_group {
|
Line 1215 sub delete_group {
|
.'</div>'); |
.'</div>'); |
} else { |
} else { |
$r->print('<div class="LC_error">'); |
$r->print('<div class="LC_error">'); |
if ($crstype eq 'Community') { |
if ($crstype eq 'Comunity') { |
$r->print(&mt("Although the group was deleted, an error occurred when removing the group's folder from the 'Community Groups' folder: [_1]",$outcome)); |
$r->print(&mt("Although the group was deleted, an error occurred when removing the group's folder from the 'Community Groups' folder: [_1]",$outcome)); |
} else { |
} else { |
$r->print(&mt("Although the group was deleted, an error occurred when removing the group's folder from the 'Course Groups' folder: [_1]",$outcome)); |
$r->print(&mt("Although the group was deleted, an error occurred when removing the group's folder from the 'Course Groups' folder: [_1]",$outcome)); |
Line 1442 $context) eq 'ok') {
|
Line 1442 $context) eq 'ok') {
|
.'</div>'); |
.'</div>'); |
} else { |
} else { |
$r->print('<div class="LC_error">'); |
$r->print('<div class="LC_error">'); |
if ($crstype eq 'Community') { |
if ($crstype eq 'Comunity') { |
$r->print(&mt("Although the group was re-enabled, an error occurred when adding the group's folder to the 'Community Groups' folder: [_1]",$outcome)); |
$r->print(&mt("Although the group was re-enabled, an error occurred when adding the group's folder to the 'Community Groups' folder: [_1]",$outcome)); |
} else { |
} else { |
$r->print(&mt("Although the group was re-enabled, an error occurred when adding the group's folder to the 'Course Groups' folder: [_1]",$outcome)); |
$r->print(&mt("Although the group was re-enabled, an error occurred when adding the group's folder to the 'Course Groups' folder: [_1]",$outcome)); |
Line 1605 sub general_settings_form {
|
Line 1605 sub general_settings_form {
|
&access_date_settings($r,$action,$formname,$stored,2,$gpterm,$ucgpterm); |
&access_date_settings($r,$action,$formname,$stored,2,$gpterm,$ucgpterm); |
if ($action eq 'create') { |
if ($action eq 'create') { |
&membership_options($r,$cdom,$cnum,$action,$formname,$sectioncount,3, |
&membership_options($r,$cdom,$cnum,$action,$formname,$sectioncount,3, |
$gpterm,$ucgpterm); |
$gpterm,$ucgpterm,$crstype); |
$nexttext = $$navbuttons{'gtns'}; |
$nexttext = $$navbuttons{'gtns'}; |
} else { |
} else { |
my @available = (); |
my @available = (); |
Line 1774 sub membership_options {
|
Line 1774 sub membership_options {
|
'picr' => 'Pick the criteria to use to build a list of course users from which you will select members of the new group.', |
'picr' => 'Pick the criteria to use to build a list of course users from which you will select members of the new group.', |
'pica' => 'Pick the criteria to use to build a list of course users from which you will select additional members of the group.', |
'pica' => 'Pick the criteria to use to build a list of course users from which you will select additional members of the group.', |
'ifno' => 'If you do not wish to add members when you first create the group, there is no need to pick any criteria.', |
'ifno' => 'If you do not wish to add members when you first create the group, there is no need to pick any criteria.', |
|
'asub' => 'A subsequent step will also allow you to specify automatic adding/dropping of group members triggered by specified user role and section <i>changes</i> in the course.', |
'acty' => 'Access types', |
'acty' => 'Access types', |
'coro' => 'Course roles', |
'coro' => 'Course roles', |
'cose' => 'Course sections', |
'cose' => 'Course sections', |
Line 1786 sub membership_options {
|
Line 1787 sub membership_options {
|
} else { |
} else { |
$lt{'asub'} = &mt('A subsequent step will also allow you to specify automatic adding/dropping of group members triggered by specified user role and section [_1]changes[_2] in the course.','<i>','</i>'); |
$lt{'asub'} = &mt('A subsequent step will also allow you to specify automatic adding/dropping of group members triggered by specified user role and section [_1]changes[_2] in the course.','<i>','</i>'); |
} |
} |
|
|
my %status_types = ( |
my %status_types = ( |
active => &mt('Currently has access'), |
active => &mt('Currently has access'), |
previous => &mt('Previously had access'), |
previous => &mt('Previously had access'), |
Line 1805 sub membership_options {
|
Line 1805 sub membership_options {
|
|
|
$r->print(&Apache::lonhtmlcommon::topic_bar($image,$lt{'pipa'}).' |
$r->print(&Apache::lonhtmlcommon::topic_bar($image,$lt{'pipa'}).' |
<b>'.$lt{'gmem'}.'</b><br />'); |
<b>'.$lt{'gmem'}.'</b><br />'); |
|
|
if ($action eq 'create') { |
if ($action eq 'create') { |
$r->print($lt{'picr'}.'<br />'.$lt{'ifno'}.'<br />'.$lt{'asub'}); |
$r->print($lt{'picr'}.'<br />'.$lt{'ifno'}.'<br />'.$lt{'asub'}); |
} else { |
} else { |
Line 2104 sub pick_new_members {
|
Line 2103 sub pick_new_members {
|
&check_uncheck_buttons($r,$formname,'member',$lt{'addm'}); |
&check_uncheck_buttons($r,$formname,'member',$lt{'addm'}); |
if (@{$available} > 0 && $granularity eq 'Yes') { |
if (@{$available} > 0 && $granularity eq 'Yes') { |
$r->print('<td> |
$r->print('<td> |
<fieldset><legend><b>'.$lt{'setf'}.'</b></legend> |
<fieldset><legend>'.$lt{'setf'}.'</legend> |
<span class="LC_nobreak"> |
<span class="LC_nobreak"> |
<input type="button" value="'.&mt('check all').'" |
<input type="button" value="'.&mt('check all').'" |
onclick="javascript:checkAllTools(document.'.$formname.')" /> |
onclick="javascript:checkAllTools(document.'.$formname.')" /> |
Line 2338 sub default_privileges {
|
Line 2337 sub default_privileges {
|
&Apache::lonhtmlcommon::row_title($lt{'func'},undef, |
&Apache::lonhtmlcommon::row_title($lt{'func'},undef, |
'LC_groups_functionality')); |
'LC_groups_functionality')); |
my @tableHeader; |
my @tableHeader; |
if ((ref($functions) eq 'HASH') && (ref($tools) eq 'ARRAY')) { |
foreach my $key (sort(keys(%{$functions}))){ |
@tableHeader = map { $functions->{$_}; } @{$tools}; |
push (@tableHeader,&mt($functions->{$key})); |
} |
} |
$r->print(join('</td><td class="LC_groups_functionality">', @tableHeader)); |
$r->print(join('</td><td class="LC_groups_functionality">', @tableHeader)); |
$r->print(&Apache::lonhtmlcommon::row_closure(1)); |
$r->print(&Apache::lonhtmlcommon::row_closure(1)); |
my $fixed = ''; |
my $fixed = ''; |
Line 2557 sub current_membership {
|
Line 2556 sub current_membership {
|
$r->print(' |
$r->print(' |
<td> |
<td> |
<span class="LC_nobreak"> |
<span class="LC_nobreak"> |
<fieldset><legend><b>'.$lt{'curf'}.'</b></legend> |
<fieldset><legend>'.$lt{'curf'}.'</legend> |
<input type="button" value="'.&mt('check all').'" |
<input type="button" value="'.&mt('check all').'" |
onclick="javascript:checkAllTools(document.'.$formname.')" /> |
onclick="javascript:checkAllTools(document.'.$formname.')" /> |
|
|
Line 2715 sub check_uncheck_buttons {
|
Line 2714 sub check_uncheck_buttons {
|
$r->print(' |
$r->print(' |
<td '.$colspan.'> |
<td '.$colspan.'> |
<fieldset> |
<fieldset> |
<legend><b>'.$title.'</b></legend> |
<legend>'.$title.'</legend> |
<span class="LC_nobreak"> |
<span class="LC_nobreak"> |
<input type="button" value="'.&mt('check all').'" |
<input type="button" value="'.&mt('check all').'" |
onclick="javascript:checkAll(document.'.$formname.'.'.$field.')" /> |
onclick="javascript:checkAll(document.'.$formname.'.'.$field.')" /> |
Line 2795 sub change_privs_form {
|
Line 2794 sub change_privs_form {
|
sub add_members_form { |
sub add_members_form { |
my ($r,$cdom,$cnum,$action,$formname,$page,$startdate,$enddate,$groupname, |
my ($r,$cdom,$cnum,$action,$formname,$page,$startdate,$enddate,$groupname, |
$description,$granularity,$quota,$sectioncount,$tools,$functions, |
$description,$granularity,$quota,$sectioncount,$tools,$functions, |
$stored,$states,$navbuttons,$gpterm,$ucgpterm,$crstype)=@_; |
$stored,$states,$navbuttons,$gpterm,$ucgpterm,$crstype)=@_; |
$r->print(' <br />'); |
$r->print(' <br />'); |
my @available = (); |
my @available = (); |
my @unavailable = (); |
my @unavailable = (); |
Line 3015 sub member_privileges_form {
|
Line 3014 sub member_privileges_form {
|
$r->print('<td>'); |
$r->print('<td>'); |
} |
} |
$r->print( |
$r->print( |
'<fieldset><legend><b>'.&mt($$toolprivs{$tool}{$priv}).'</b></legend>' |
'<fieldset><legend>'.&mt($$toolprivs{$tool}{$priv}).'</legend>' |
.'<span class="LC_nobreak">' |
.'<span class="LC_nobreak">' |
.' <input type="button" value="'.&mt('check all').'"' |
.' <input type="button" value="'.&mt('check all').'"' |
.' onclick="javascript:checkAll(document.'.$formname.'.userpriv_'.$priv.')" />' |
.' onclick="javascript:checkAll(document.'.$formname.'.userpriv_'.$priv.')" />' |
Line 3299 sub write_group_data {
|
Line 3298 sub write_group_data {
|
} else { |
} else { |
if ($crstype eq 'Community') { |
if ($crstype eq 'Community') { |
$error = &mt("An error occurred while setting parameters '. |
$error = &mt("An error occurred while setting parameters '. |
'for Discussion Boards folder: '. |
'for Discussion Boards folder: '. |
'Could not retrieve community information"); |
'Could not retrieve community information"); |
} else { |
} else { |
$error = &mt("An error occurred while setting parameters '. |
$error = &mt("An error occurred while setting parameters '. |
'for Discussion Boards folder: '. |
'for Discussion Boards folder: '. |
Line 3555 sub process_membership {
|
Line 3554 sub process_membership {
|
$r->print('<p class="LC_info">'); |
$r->print('<p class="LC_info">'); |
if ($crstype eq 'Community') { |
if ($crstype eq 'Community') { |
$r->print(&mt("Any currently logged in community users affected by the changes you made" |
$r->print(&mt("Any currently logged in community users affected by the changes you made" |
.' to group membership or privileges for the [_1] group will need to log out' |
.' to group membership or privileges for the [_1] group will need to log out' |
.' and log back in for their LON-CAPA sessions to reflect these changes.' |
.' and log back in for their LON-CAPA sessions to reflect these changes.' |
,'<i>'.$groupname.'</i>')); |
,'<i>'.$groupname.'</i>')); |
|
|
} else { |
} else { |