From 7d3ee8619dc8cdbdb9f3cc4d5eb0776a20a90bf0 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Thu, 24 Sep 2009 22:31:30 +0000 Subject: [PATCH] Disable the grad tie-in fields and add an empty activity field if no others exist. --- .../courses/views/scripts/edit/index.phtml | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/application/modules/courses/views/scripts/edit/index.phtml b/application/modules/courses/views/scripts/edit/index.phtml index 5692a93a..e2ae050b 100644 --- a/application/modules/courses/views/scripts/edit/index.phtml +++ b/application/modules/courses/views/scripts/edit/index.phtml @@ -222,6 +222,28 @@ <fieldset class="two_of_three_column" id="activities"> <h3>Activity</h3> <table> + <?php if (count($this->course->getActivities()) == 0) { ?> + <tr> + <th> Type </th> + <td> + <select name="activities[-1][type]"> + <option value="-1">--Select One--</option> + <option value="lec">Lecture</option> + <option value="lab">Lab</option> + <option value="quz">Quiz</option> + <option value="rct">Recitation</option> + <option value="stu">Studio</option> + <option value="fld">Field</option> + <option value="ind">Independent Study</option> + <option value="psi">P.S.I.</option> + </select> + </td> + <th> Hours per week </th> + <td> <input type="text" + name="activities[-1][hours]" /> </td> + <td> <a href="#" class="remove_record_button">Remove</a> </td> + </tr> + <?php } ?> <?php foreach($this->course->getActivities() as $key => $activity) { ?> <tr> <th> Type </th> @@ -616,7 +638,7 @@ - +<!-- <?php $gradTieIn = $this->course->getGradTieIn(); ?> <div class="main_section"> <h2>Graduate Tie-In</h2> @@ -639,6 +661,7 @@ </div> +--> <?php } // if not a remove course request ?> -- GitLab