[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

raeburn raeburn at source.lon-capa.org
Sun Mar 16 12:54:40 EDT 2025


raeburn		Sun Mar 16 16:54:40 2025 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - Satisfy w3c xhtml validation 
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.366 loncom/homework/inputtags.pm:1.367
--- loncom/homework/inputtags.pm:1.366	Sun Mar  2 05:22:43 2025
+++ loncom/homework/inputtags.pm	Sun Mar 16 16:54:40 2025
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.366 2025/03/02 05:22:43 raeburn Exp $
+# $Id: inputtags.pm,v 1.367 2025/03/16 16:54:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -712,10 +712,11 @@
                 $showsymb = $symb;
             }
         }
-	$result.=$extratext.'<label><div><a href='."'".'javascript:void(window.open("/adm/portfolio?mode=selectfile&fieldname='.$env{'form.request.prefix'}.'HWPORT'.$jspart.'_'.$id.'&symb='.$showsymb.'","cat","height=600,width=800,scrollbars=1,resizable=1,menubar=2,location=1"))'."'".'>'.
-	    &mt('Select Portfolio Files: (one or more files per submission)').'</a></div>'.
-	    '<div><input type="text" size="50" name="HWPORT'.$jspart.'_'.$id.'" value="" />'.
-	    '</label></div>';
+	$result.=$extratext.'<div><a href='."'".'javascript:void(window.open("/adm/portfolio?mode=selectfile&fieldname='.$env{'form.request.prefix'}.'HWPORT'.$jspart.'_'.$id.'&symb='.$showsymb.'","cat","height=600,width=800,scrollbars=1,resizable=1,menubar=2,location=1"))'."'".'>'.
+	    '<label for="HWPORT'.$jspart.'_'.$id.'">'.
+            &mt('Select Portfolio Files: (one or more files per submission)').'</label></a></div>'.
+	    '<div><input type="text" size="50" name="HWPORT'.$jspart.'_'.$id.'" id="HWPORT'.$jspart.'_'.$id.'" value="" />'.
+	    '</div>';
     }
     $result.=&Apache::lonhtmlcommon::row_closure(1);
     return $result;




More information about the LON-CAPA-cvs mailing list