From 14310a546d54cb75b6fc4c56663b3b2538cf0736 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Thu, 20 Sep 2007 20:01:02 +0000 Subject: [PATCH] Disallow creating requests based on crosslisted courses. --- application/views/request/course_found.xhtml | 93 +++++++++++--------- 1 file changed, 50 insertions(+), 43 deletions(-) diff --git a/application/views/request/course_found.xhtml b/application/views/request/course_found.xhtml index 5f13122b..92c2b2b2 100644 --- a/application/views/request/course_found.xhtml +++ b/application/views/request/course_found.xhtml @@ -1,44 +1,51 @@ +<?php if($this->crosslisting) { ?> +<h2> + The course <?php echo $this->subject , ' ' + , $this->courseNumber + , $this->courseLetter; ?> + currently exists as a crosslisting of + <?php echo trim($this->homeSubject . ' ' + . $this->homeCourseNumber . ' ' + . $this->homeCourseLetter) . '.'; ?> + <br /> + Please make requests via the home listing. +<h2> +<?php } else { ?> +<h2> + The course <?php echo $this->subject , ' ' + , $this->courseNumber + , $this->courseLetter; ?> - <h2> - The course <?php echo $this->subject , ' ' - , $this->courseNumber - , $this->courseLetter; ?> - <?php if(!$this->crosslisting) { ?> - currently exists. - <?php } else { ?> - currently exists as a crosslisting of - <?php echo trim($this->homeSubject . ' ' - . $this->homeCourseNumber . ' ' - . $this->homeCourseLetter) . '.'; ?> - <?php } ?> - <br /> - You may: - </h2> - <ul> - <li> - <a href="/Request/Create/ChangeCourse/<?php echo $this->subject - . '/' . $this->courseNumber - . '/' . $this->courseLetter; ?>"> - Request a <b>change</b> to this course - </a> - </li> - <li> - <a href="/Request/Create/AddISToCourse/<?php echo $this->subject - . '/' . $this->courseNumber - . '/' . $this->courseLetter; ?>"> - Request <b>Integrated Studies</b> status for this course - </a> - </li> - <li> - <a href="/Request/Create/RemoveCourse/<?php echo $this->subject - . '/' . $this->courseNumber - . '/' . $this->courseLetter; ?>"> - Request that this course be <b>removed</b> - </a> - </li> - <li> - <a href="/Request/Search"> - Return to Search - </a> - </li> - </ul> \ No newline at end of file + currently exists.<br /> + You may: +</h2> +<ul> + <li> + <a href="/Request/Create/ChangeCourse/<?php echo $this->subject + . '/' . $this->courseNumber + . '/' . $this->courseLetter; ?>"> + Request a <b>change</b> to this course + </a> + </li> + <li> + <a href="/Request/Create/AddISToCourse/<?php echo $this->subject + . '/' . $this->courseNumber + . '/' . $this->courseLetter; ?>"> + Request <b>Integrated Studies</b> status for this course + </a> + </li> + <li> + <a href="/Request/Create/RemoveCourse/<?php echo $this->subject + . '/' . $this->courseNumber + . '/' . $this->courseLetter; ?>"> + Request that this course be <b>removed</b> + </a> + </li> + <li> + <a href="/Request/Search"> + Return to Search + </a> + </li> +</ul> + +<?php } \ No newline at end of file -- GitLab