From fc82cec4e498e070b75a13d52588f7117f036588 Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Thu, 18 Sep 2008 19:16:31 +0000
Subject: [PATCH] Re-add option to create new courses with IS or ad IS to
 existing courses.

---
 .../modules/courses/views/scripts/new/create.phtml   | 12 +++++++-----
 .../modules/courses/views/scripts/new/found.phtml    | 12 +++++++-----
 .../modules/courses/views/scripts/view/index.phtml   |  6 +++---
 document_root/css/courses/view.css                   |  5 +++++
 4 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/application/modules/courses/views/scripts/new/create.phtml b/application/modules/courses/views/scripts/new/create.phtml
index aaaef49d..9002ac0b 100644
--- a/application/modules/courses/views/scripts/new/create.phtml
+++ b/application/modules/courses/views/scripts/new/create.phtml
@@ -24,13 +24,15 @@
                 Request a <b>new course</b>
             </a>
         </li>
-        <?php /* li>
-            <a href="/Request/Create/NewCourseWithIS/<?php echo $this->subject
-                                                           . '/' . $this->courseNumber
-                                                           . '/' . $this->courseLetter; ?>">
+        <li>
+            <a href="<?php echo $this->url(array('action'       => 'create',
+                                                 'type'         => 'NewCourseWithIS',
+                                                 'subject'      => $this->subject,
+                                                 'courseNumber' => $this->courseNumber,
+                                                 'courseLetter' => $this->courseLetter)); ?>">
                 Request a <b>new course</b> with <b>Integrated Studies</b> status
             </a>
-        </li */ ?>
+        </li>
         <li>
             <a href="<?php echo $this->url(array('action'       => 'create',
                                                  'type'         => 'NewCourseWithACE',
diff --git a/application/modules/courses/views/scripts/new/found.phtml b/application/modules/courses/views/scripts/new/found.phtml
index 56ace067..ed50ca9f 100644
--- a/application/modules/courses/views/scripts/new/found.phtml
+++ b/application/modules/courses/views/scripts/new/found.phtml
@@ -37,13 +37,15 @@
             Request <b>change</b> to an existing course
         </a>
     </li>
-    <?php /*li>
-        <a href="/Request/Create/AddISToCourse/<?php echo $this->subject
-                                                        . '/' . $this->courseNumber
-                                                        . '/' . $this->courseLetter; ?>">
+    <li>
+        <a href="<?php echo $this->url(array('action'       => 'create',
+                                             'type'         => 'AddISToCourse',
+                                             'subject'      => $this->subject,
+                                             'courseNumber' => $this->courseNumber,
+                                             'courseLetter' => $this->courseLetter)); ?>">
             Request <b>Integrated Studies</b> status for this course
         </a>
-    </li */ ?>
+    </li>
     <?php if (!$this->isAce) { ?>
     <li>
         <a href="<?php echo $this->url(array('action'       => 'create',
diff --git a/application/modules/courses/views/scripts/view/index.phtml b/application/modules/courses/views/scripts/view/index.phtml
index cb3c0bbd..cf22be73 100644
--- a/application/modules/courses/views/scripts/view/index.phtml
+++ b/application/modules/courses/views/scripts/view/index.phtml
@@ -12,7 +12,7 @@ $this->layout()->tagline = $tagline . ': ' . $this->course->getCourseCode() . '
 <div id="viewRequest">
     <?php
         $course = $this->course;
-        if (in_array($this->request->getType(), array('ChangeCourse', 'AddACEAndChangeCourse', 'RemoveACEAndChangeCourse'))) {
+        if (in_array($this->request->getType(), array('ChangeCourse', 'AddISToCourse', 'AddACEAndChangeCourse', 'RemoveACEAndChangeCourse'))) {
         	$parentCourse = $this->parentCourse;
 /****************************CHANGE COURSE*************************************/
     ?>
@@ -50,9 +50,9 @@ $this->layout()->tagline = $tagline . ': ' . $this->course->getCourseCode() . '
         if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse', 'RemoveACEFromCourse', 'RemoveACEAndChangeCourse'))) {
 ?>
     <div>
-        <h2>Ace Certification</h2>
+        <h2 id="aceHeading">Ace Course Proposal</h2>
 
-        <h3>Outcomes</h3>
+        <h3>Outcome(s)</h3>
         <?php foreach ($course->getAceOutcomes() as $aceOutcome) { ?>
         <div>
             <?php echo $aceOutcome['slo']; ?>:
diff --git a/document_root/css/courses/view.css b/document_root/css/courses/view.css
index 7504d813..029e39a2 100644
--- a/document_root/css/courses/view.css
+++ b/document_root/css/courses/view.css
@@ -69,6 +69,11 @@
 	color:#880000;
 	text-decoration:line-through;
 }
+
+#aceHeading {
+	font-style: italic;
+}
+
 div#comments .tabBar a {
     -moz-border-radius-bottomleft:0px;
     -moz-border-radius-bottomright:0px;
-- 
GitLab