[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm

raeburn raeburn at source.lon-capa.org
Mon Dec 27 22:26:44 EST 2021


raeburn		Tue Dec 28 03:26:44 2021 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Autoenroll failsafe mechanism configuration
    - Format changes for radio buttons to set failsafe condition
    - Missing double quotes in rev. 1.399 changes
    - Remove trailing white space
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.399 loncom/interface/domainprefs.pm:1.400
--- loncom/interface/domainprefs.pm:1.399	Tue Dec 28 02:04:35 2021
+++ loncom/interface/domainprefs.pm	Tue Dec 28 03:26:44 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.399 2021/12/28 02:04:35 raeburn Exp $
+# $Id: domainprefs.pm,v 1.400 2021/12/28 03:26:44 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3880,7 +3880,7 @@
         if (exists($settings->{'failsafe'})) {
             $failsafe = $settings->{'failsafe'};
             if ($failsafe eq 'zero') {
-                $failsafechecked{'zero'} = ' checked="checked"'; 
+                $failsafechecked{'zero'} = ' checked="checked"';
                 $failsafechecked{'off'} = '';
                 $failsafesty = 'inline-block';
             } elsif ($failsafe eq 'any') {
@@ -3893,7 +3893,7 @@
             if ($autofailsafe ne '') {
                 $failsafechecked{'zero'} = ' checked="checked"';
                 $failsafe = 'zero';
-                $failsafechecked{'off'} = ''; 
+                $failsafechecked{'off'} = '';
             }
         }
     } else {
@@ -3933,10 +3933,10 @@
                   $coownersoff.' value="0" />'.&mt('No').'</label></span></td>'.
                   '</tr><tr>'.
                   '<td>'.&mt('Failsafe for no drops when institutional data missing').'</td>'.
-                  '<td class="LC_right_item"><span class="LC_nobreak">'.
-                  '<span class="LC_nobreak"><label><input type="radio name="autoenroll_failsafe" value="off" onclick="toggleFailsafe(this.form)" />'.&mt('Not in use').'</label></span><br />'.
-                  '<span class="LC_nobreak"><label><input type="radio name="autoenroll_failsafe" value="zero" onclick="toggleFailsafe(this.form)" />'.&mt('Retrieved section enrollment is zero').'</label></span><br />'.
-                  '<span class="LC_nobreak"><label><input type="radio name="autoenroll_failsafe" value="any" onclick="toggleFailsafe(this.form)" />'.&mt('Retrieved section enrollment is zero or greater').'</label></span>'.
+                  '<td class="LC_left_item"><span class="LC_nobreak">'.
+                  '<span class="LC_nobreak"><label><input type="radio" name="autoenroll_failsafe" value="off" onclick="toggleFailsafe(this.form)"'.$failsafechecked{'off'}.' />'.&mt('Not in use').'</label></span>    '.
+                  '<span class="LC_nobreak"><label><input type="radio" name="autoenroll_failsafe" value="zero" onclick="toggleFailsafe(this.form)"'.$failsafechecked{'zero'}.' />'.&mt('Retrieved section enrollment is zero').'</label></span><br />'.
+                  '<span class="LC_nobreak"><label><input type="radio" name="autoenroll_failsafe" value="any" onclick="toggleFailsafe(this.form)"'.$failsafechecked{'any'}.' />'.&mt('Retrieved section enrollment is zero or greater').'</label></span>'.
                   '<div class="LC_floatleft" style="display:'.$failsafesty.';" id="autoenroll_failsafe_div">'.
                   '<span class="LC_nobreak">'.
                   &mt('Threshold for number of students in section to drop: [_1]',
@@ -16000,7 +16000,7 @@
     my $failsafe = $env{'form.autoenroll_failsafe'};
     unless (($failsafe eq 'zero') || ($failsafe eq 'any')) {
         $failsafe = 'off';
-        undef($autofailsafe);      
+        undef($autofailsafe);
     }
     my %autoenrollhash =  (
                        autoenroll => { 'run' => $env{'form.autoenroll_run'},
@@ -16008,7 +16008,7 @@
                                        'sender_domain' => $sender_domain,
                                        'co-owners' => $coowners,
                                        'autofailsafe' => $autofailsafe,
-                                       'failsafe' => $failsafe, 
+                                       'failsafe' => $failsafe,
                                 }
                      );
     my $putresult = &Apache::lonnet::put_dom('configuration',\%autoenrollhash,




More information about the LON-CAPA-cvs mailing list