Diff for /loncom/interface/lonparmset.pm between versions 1.522.2.26.2.2 and 1.522.2.26.2.3

version 1.522.2.26.2.2, 2020/02/12 21:17:54 version 1.522.2.26.2.3, 2021/01/19 00:44:10
Line 1213  sub print_td { Line 1213  sub print_td {
                 $nolink = 1;                  $nolink = 1;
             }              }
         } elsif ($mprefix =~ /availablestudent\&$/) {          } elsif ($mprefix =~ /availablestudent\&$/) {
             if ($which > 3) {              $nolink = 1;
                 $nolink = 1;  
             }  
         } elsif ($mprefix =~ /examcode\&$/) {          } elsif ($mprefix =~ /examcode\&$/) {
             unless ($which == 2) {              unless ($which == 2) {
                 $nolink = 1;                  $nolink = 1;
Line 3378  sub listdata { Line 3376  sub listdata {
         ($thiskey=~/^$env{'request.course.id'}\.(?:(.+)\.)*([\w\s]+)\.(\w+)$/);          ($thiskey=~/^$env{'request.course.id'}\.(?:(.+)\.)*([\w\s]+)\.(\w+)$/);
         my $section=&mt('All Students');          my $section=&mt('All Students');
         $readonly = $readonlyall;          $readonly = $readonlyall;
           my $userscope;
           my $showval = $$resourcedata{$thiskey};
         if ($middle=~/^\[(.*)\]/) {          if ($middle=~/^\[(.*)\]/) {
             my $issection=$1;              my $issection=$1;
             if ($issection=~/^useropt\:($match_username)\:($match_domain)/) {              if ($issection=~/^useropt\:($match_username)\:($match_domain)/) {
Line 3390  sub listdata { Line 3390  sub listdata {
                     }                      }
                 }                  }
                 $section=&mt('User').": ".&Apache::loncommon::plainname($1,$2);                  $section=&mt('User').": ".&Apache::loncommon::plainname($1,$2);
                   $userscope = 1;
             } else {              } else {
                 if (($env{'request.course.sec'} ne '') && ($caller eq 'overview')) {                  if (($env{'request.course.sec'} ne '') && ($caller eq 'overview')) {
                     if (exists($grouphash{$issection})) {                      if (exists($grouphash{$issection})) {
Line 3454  sub listdata { Line 3455  sub listdata {
               '<td><b>'.&mt($parmitem).                '<td><b>'.&mt($parmitem).
               '</b></td>');                '</b></td>');
         unless ($readonly) {          unless ($readonly) {
               my $disabled;
               if (($name eq 'availablestudent') &&
                   (($showval eq '') || ($userscope))) {
                   $disabled = ' disabled="disabled"';
               }
             $r->print('<td><input type="checkbox" name="del_'.              $r->print('<td><input type="checkbox" name="del_'.
                       $thiskey.'" /></td>');                        $thiskey.'"'.$disabled.' /></td>');
         }          }
         $r->print('<td>');          $r->print('<td>');
         $foundkeys++;          $foundkeys++;
Line 3483  sub listdata { Line 3489  sub listdata {
             $r->print(&date_interval_selector($thiskey,$name,              $r->print(&date_interval_selector($thiskey,$name,
                       $$resourcedata{$thiskey},$readonly));                        $$resourcedata{$thiskey},$readonly));
         } elsif ($thistype =~ m/^string/) {          } elsif ($thistype =~ m/^string/) {
               if ($name eq 'availablestudent') {
                   $readonly = 1;
               }
             $r->print(&string_selector($thistype,$thiskey,              $r->print(&string_selector($thistype,$thiskey,
                       $$resourcedata{$thiskey},$name,$readonly));                        $$resourcedata{$thiskey},$name,$readonly));
         } else {          } else {

Removed from v.1.522.2.26.2.2  
changed lines
  Added in v.1.522.2.26.2.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>