'.&mt('Allowing others to retrieve portfolio file: [_1]',
+ $r->print(''.&mt('Allowing others to retrieve file: [_1]',
$port_path.$file_name).'
'."\n");
- $file_name = &prepend_group($file_name,$group);
- my ($uname,$udom) = &get_name_dom($group);
+ $file_name = &prepend_group($file_name);
+ my ($uname,$udom) = &get_name_dom();
my ($errors,$outcome,$deloutcome,$new_values,$translation);
if ($totalprocessed) {
($outcome,$deloutcome,$new_values,$translation) =
@@ -827,7 +897,7 @@ sub update_access {
if ($allnew > 0) {
my $now = time;
my $then = $now + (60*60*24*180); # six months approx.
- &open_form($r,$url,$group);
+ &open_form($r,$url);
foreach my $newitem ('course','group','domains','users') {
if ($env{'form.new'.$newitem} > 0) {
$r->print('
'.&mt('Add new [_1]-based access control for portfolio file: [_2]',$newitem,$env{'form.currentpath'}.$env{'form.selectfile'}).'
');
@@ -844,12 +914,13 @@ sub update_access {
}
&close_form($r,$url);
} else {
- $r->print('
'.
- &mt('Display all access settings for this file').''.
- ' '.
- ''.&mt('Return to directory listing').'');
+ my %anchor_fields = (
+ 'currentpath' => $env{'form.currentpath'},
+ 'access' => $env{'form.selectfile'}
+ );
+ $r->print('
'.&make_anchor($url, \%anchor_fields, &mt('Display all access settings for this file')));
+ delete $anchor_fields{'access'};
+ $r->print(' '.&make_anchor($url,\%anchor_fields,&mt('Return to directory listing')));
}
return;
}
@@ -1019,24 +1090,24 @@ sub access_setting_table {
$passwd.'" />');
$r->print(&Apache::loncommon::end_data_table_row());
$r->print(&Apache::loncommon::end_data_table());
- $r->print(' |
');
- &access_element($r,'domains',\%acl_count,\@domains,$access_controls,$now,$then);
- $r->print(' | | ');
- &access_element($r,'users',\%acl_count,\@users,$access_controls,$now,$then);
- $r->print(' |
|
');
- if (@courses > 0 || @groups > 0) {
- $r->print('');
- } else {
- $r->print(' | ');
- }
- &access_element($r,'course',\%acl_count,\@courses,$access_controls,$now,$then);
- $r->print(' | ');
- if (@courses > 0 || @groups > 0) {
- $r->print('
|
');
- } else {
- $r->print(' | | ');
- }
- &access_element($r,'group',\%acl_count,\@groups,$access_controls,$now,$then);
+# $r->print(' |
|
');
+# &access_element($r,'domains',\%acl_count,\@domains,$access_controls,$now,$then);
+# $r->print(' | | ');
+# &access_element($r,'users',\%acl_count,\@users,$access_controls,$now,$then);
+# $r->print(' |
|
');
+# if (@courses > 0 || @groups > 0) {
+# $r->print('');
+# } else {
+# $r->print(' | ');
+# }
+# &access_element($r,'course',\%acl_count,\@courses,$access_controls,$now,$then);
+# $r->print(' | ');
+# if (@courses > 0 || @groups > 0) {
+# $r->print('
|
');
+# } else {
+# $r->print(' | | ');
+# }
+# &access_element($r,'group',\%acl_count,\@groups,$access_controls,$now,$then);
$r->print(' |