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

www lon-capa-cvs@mail.lon-capa.org
Sun, 18 Aug 2002 21:44:00 -0000


www		Sun Aug 18 17:44:00 2002 EDT

  Modified files:              
    /loncom/interface	loncreatecourse.pm 
  Log:
  Now offers more options - not all of them implemented yet.
  
  
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.10 loncom/interface/loncreatecourse.pm:1.11
--- loncom/interface/loncreatecourse.pm:1.10	Thu Aug  8 16:37:37 2002
+++ loncom/interface/loncreatecourse.pm	Sun Aug 18 17:43:59 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Create a course
 #
-# $Id: loncreatecourse.pm,v 1.10 2002/08/08 20:37:37 matthew Exp $
+# $Id: loncreatecourse.pm,v 1.11 2002/08/18 21:43:59 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -91,20 +91,37 @@
 <b>Course Title:</b>
 <input type="text" size="50" name="title">
 </p><p>
-<b>Top-level Map:</b>
+<b>Map:</b>
 <input type="text" size="50" name="topmap">
 <a href="javascript:openbrowser('ccrs','topmap')">Browse</a>
 </p><p>
+<b>Do NOT generate as standard course</b> 
+(only check if you know what you are doing):
+<input type="checkbox" name="nonstandard">
+</p><p>
 <b>Course Home Server:</b>$course_home
 </p><p>
 <b>Course ID/Number (optional)</b>
 <input type="text" size="30" name="crsid">
 </p><p>
+<b>Open all assessments: </b>
+<input type="checkbox" name="openall" checked>
+</p><p>
+<b>Set course policy feedback to Course Coordinator: </b>
+<input type="checkbox" name="setpolicy" checked>
+</p><p>
+<b>Set content feedback to Course Coordinator: </b>
+<input type="checkbox" name="setcontent" checked>
+</p>
+
 <h2>Course Coordinator</h2>
 <p>
-Username: <input type="text" size="15" name="ccuname" />
+<b>Username:</b> <input type="text" size="15" name="ccuname" />
+</p><p>
+<b>Domain:</b> $domform
 </p><p>
-Domain:   $domform
+<b>Immediately expire own role as Course Coordinator:</b>
+<input type="checkbox" name="expireown" checked>
 </p><p>
 <input type="hidden" name="phase" value="two" />
 <input type="submit" value="Open Course">
@@ -156,7 +173,8 @@
 #
     my $courseid=&Apache::lonnet::createcourse($ENV{'request.role.domain'},
                                                $cdescr,$curl,
-                                               $ENV{'form.course_home'});
+                                               $ENV{'form.course_home'},
+                                               $ENV{'form.nonstandard'});
 
     $r->print('New LON-CAPA Course ID: '.$courseid.'<br>');
 #