Skip to content
Snippets Groups Projects
Commit 7d3ee861 authored by Tim Steiner's avatar Tim Steiner
Browse files

Disable the grad tie-in fields and add an empty activity field if no others exist.

parent cd85dfdc
No related branches found
No related tags found
No related merge requests found
......@@ -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 ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment