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

raeburn raeburn at source.lon-capa.org
Fri May 22 15:35:08 EDT 2020


raeburn		Fri May 22 19:35:08 2020 EDT

  Modified files:              
    /loncom/interface	loncreatecourse.pm 
  Log:
  - Add missing closing span tags
  - Satify w3c validation
  
  
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.173 loncom/interface/loncreatecourse.pm:1.174
--- loncom/interface/loncreatecourse.pm:1.173	Fri May 22 15:05:30 2020
+++ loncom/interface/loncreatecourse.pm	Fri May 22 19:35:08 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Create a course
 #
-# $Id: loncreatecourse.pm,v 1.173 2020/05/22 15:05:30 raeburn Exp $
+# $Id: loncreatecourse.pm,v 1.174 2020/05/22 19:35:08 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -105,7 +105,7 @@
     foreach my $server (sort(keys(%host_servers))) {
         $course_home .= qq{<option value="$server"};
         if ($server eq $Apache::lonnet::perlvar{'lonHostID'}) {
-            $course_home .= " selected ";
+            $course_home .= ' selected="selected"';
         }
         $course_home .= qq{>$server $host_servers{$server}</option>};
     }
@@ -272,6 +272,8 @@
     }
     my $js = <<END;
 <script type="text/javascript">
+// <![CDATA[
+
 var editbrowser = null;
 function openbrowser(formname,elementname) {
     var url = '/res/?';
@@ -290,6 +292,8 @@
     editbrowser.focus();
 }
 $javascript_validations
+
+// ]]>
 </script>
 $coursebrowserjs
 END
@@ -309,7 +313,7 @@
 					    'Create_Courses');
     $r->print($start_page.$crumbs);
 
-    $r->print('<form action="/adm/createcourse" method="post" name="ccrs" action=""><div class="LC_createcourse">'
+    $r->print('<form action="/adm/createcourse" method="post" name="ccrs"><div class="LC_createcourse">'
              .&Apache::lonhtmlcommon::start_pick_box()
 
              .&Apache::lonhtmlcommon::row_headline()
@@ -379,6 +383,7 @@
                      .'<span class="LC_nobreak">'
                      .'<input type="radio" name="uniquecode" value="1" />'.&mt('Yes').(' 'x2)
                      .'<input type="radio" name="uniquecode" value="0" checked="checked" />'.&mt('No')
+                     .'</span>'
                      .&Apache::lonhtmlcommon::row_closure()
                  );
     }
@@ -429,7 +434,7 @@
                  .&Apache::lonhtmlcommon::row_closure(1)
                  .&Apache::lonhtmlcommon::end_pick_box()
 
-                 .'<td> </td>'
+                 .'</td><td> </td>'
 
                  # Clone Course:
                  .'<td>'
@@ -482,7 +487,7 @@
                  .'<span class="LC_nobreak">'
                  .'<label><input type="radio" name="openall" value="0" checked="checked" />'.$lt{'no'}.'</label>'.(' 'x2)
                  .'<label><input type="radio" name="openall" value="1" />'.$lt{'yes'}.'</label>'.', '
-                 .$lt{'sta'}.' '.$openallfrom
+                 .$lt{'sta'}.' '.$openallfrom.'</span>'
                  .&Apache::lonhtmlcommon::row_closure()
 
                  .&Apache::lonhtmlcommon::row_headline()
@@ -596,7 +601,8 @@
 <p>
 <input type="hidden" name="prevphase" value="courseone" />
 <input type="hidden" name="phase" value="coursetwo" />
-<input type="button" onclick="verify_message(this.form)" value="'.$lt{'opco'}.'" />'
+<input type="button" onclick="verify_message(this.form)" value="'.$lt{'opco'}.'" />
+</p>'
         );
     } elsif ($crstype eq 'Community') {
         $r->print('




More information about the LON-CAPA-cvs mailing list