From 0732efdc9a7806eafd4ccdfcce7ac0154422e1ea Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Wed, 10 Feb 2010 19:43:41 +0000 Subject: [PATCH] Support for ChangeACE requests. --- .../courses/controllers/EditController.php | 4 +- .../courses/views/scripts/new/found.phtml | 9 +++ .../views/scripts/view/course-info.phtml | 76 ++++++++++++++++++- 3 files changed, 86 insertions(+), 3 deletions(-) diff --git a/application/modules/courses/controllers/EditController.php b/application/modules/courses/controllers/EditController.php index 31352636..43a0c2ae 100644 --- a/application/modules/courses/controllers/EditController.php +++ b/application/modules/courses/controllers/EditController.php @@ -35,7 +35,7 @@ class Courses_EditController extends App_Controller_Action $errors = array(); - if (!in_array($request->getType(), array('RemoveCourse', 'AddACEToCourse', 'RemoveACEFromCourse'))) { + if (!in_array($request->getType(), array('RemoveCourse', 'AddACEToCourse', 'RemoveACEFromCourse', 'ChangeACE'))) { $course->setCourseCode($in->subject, $in->courseNumber, $in->courseLetter); $course->setTitle($in->title); if (Unl_Util::isArray($in->crosslistings)) { @@ -97,7 +97,7 @@ class Courses_EditController extends App_Controller_Action } } - if (in_array($request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse'))) { + if (in_array($request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse', 'ChangeACE'))) { foreach ($rawIn['ace']['outcomes'] as $name => $aceOutcome) { if ($aceOutcome['enabled']) { $course->setAceOutcome($name, $aceOutcome['justification'], $aceOutcome['studentWork'], $aceOutcome['assesmentPlan']); diff --git a/application/modules/courses/views/scripts/new/found.phtml b/application/modules/courses/views/scripts/new/found.phtml index cb9cbad3..8ba7be1b 100644 --- a/application/modules/courses/views/scripts/new/found.phtml +++ b/application/modules/courses/views/scripts/new/found.phtml @@ -59,6 +59,15 @@ </a> </li> <?php } else if ($this->isAce) { ?> + <li> + <a href="<?php echo $this->url(array('action' => 'create', + 'type' => 'ChangeACE', + 'subject' => $this->subject, + 'courseNumber' => $this->courseNumber, + 'courseLetter' => $this->courseLetter)); ?>"> + <b>Update</b> to the <b>ACE Certification</b> for this course + </a> + </li> <li> <a href="<?php echo $this->url(array('action' => 'create', 'type' => 'RemoveACEFromCourse', diff --git a/application/modules/courses/views/scripts/view/course-info.phtml b/application/modules/courses/views/scripts/view/course-info.phtml index 0d89bc80..106bfe48 100644 --- a/application/modules/courses/views/scripts/view/course-info.phtml +++ b/application/modules/courses/views/scripts/view/course-info.phtml @@ -37,7 +37,81 @@ /*****************************ACE COURSE***************************************/ - if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse'))) { + if (in_array($this->request->getType(), array('ChangeACE'))) { +?> +<div> + <h2 id="aceHeading">Previous Ace Course Proposal</h2> + + <h3>Outcome(s)</h3> + <?php foreach ($this->parentCourse->getAceOutcomes() as $aceOutcome) { ?> + <div class="sloHeading"> + <?php echo $aceOutcome['slo']; ?>: + <?php echo $aceOutcome['description']; ?> + </div> + <ol> + <li> + <div class="question"> + Describe opportunities students should have to learn the outcome.<br /> + How is the learning objective embedded in the course? + </div> + <div class="answer"> + <?php echo $aceOutcome['justification']; ?> + </div> + </li> + <li> + <div class="question"> + Describe student work that will be used to assess student achievement + of the outcome and explain how the students demonstrate the knowledge + and skills specified by the outcome. + </div> + <div class="answer"> + <?php echo $aceOutcome['studentWork']; ?> + </div> + </li> + <li> + <div class="question"> + As part of the ACE certification process, the department/unit agrees to + collect and assess a reasonable sample of students' work and provide + reflections on students' achievement of the Learning Outcomes for its + respective ACE-certified courses.<br /> + Please comment on your plans to develop a process to collect and evaluate + student work over time for the purpose of assessing student success for + this ACE outcome. + </div> + <div class="answer"> + <?php echo $aceOutcome['assesmentPlan']; ?> + </div> + </li> + </ol> + <?php } ?> + + <h3>Reinforcements</h3> + + <div id="reinforcementDescription"> + According to the ACE document approved by faculty (Structural Criteria, + item 9), "Every ACE course will reinforce at least one of the following + skills listed below as appropriate for the discipline and as identified + by the department offering the course..." Indicate skills that will be reinforced + by the course by clicking on as many as apply and describe briefly how those + skills will be reinforced.<br /><br /> + + <b>These areas are those <em>OTHER THAN</em> the one or two outcomes for + which you seek ACE certification. Students will not receive ACE credit for + the reinforced skills, and the reinforced skills do not need to be assessed + for ACE purposes.</b> + </div> + + <div id="reinforcementQuestion"> What Outcome(s) or skill(s) will be reinforced in this course?</div> + + <dl> + <?php foreach ($this->parentCourse->getAceReinforcements() as $aceReinforcement) { ?> + <dt><?php echo $aceReinforcement['longName']; ?></dt> + <dd><?php echo $aceReinforcement['description']; ?></dd> + <?php } ?> + </dl> +</div> +<?php } + if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse', 'ChangeACE'))) { ?> <div> <h2 id="aceHeading">Ace Course Proposal</h2> -- GitLab