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

Reorder of course admin page

parent 6f95213e
No related branches found
No related tags found
No related merge requests found
...@@ -7,24 +7,6 @@ ...@@ -7,24 +7,6 @@
<h2>Main Details</h2> <h2>Main Details</h2>
<fieldset> <fieldset>
<fieldset class="three_column">
<label>
Title<br />
<input type="text" id="title" name="title" value="<?php echo htmlentities($this->course->title); ?>" />
</label>
<label>
Integrated Studies
<input type="hidden" name="integratedStudies" value="no" />
<input type="checkbox"
name="integratedStudies"
value="yes"
<?php if($this->course->integratedStudies == 'yes') { ?>
checked="checked"
<?php } ?>
/>
</label>
</fieldset>
<fieldset class="three_column"> <fieldset class="three_column">
<label> <label>
Subject<br /> Subject<br />
...@@ -39,9 +21,8 @@ ...@@ -39,9 +21,8 @@
<input type="text" id="courseLetter" name="courseLetter" value="<?php echo htmlentities($this->course->courseLetter); ?>" /> <input type="text" id="courseLetter" name="courseLetter" value="<?php echo htmlentities($this->course->courseLetter); ?>" />
</label> </label>
</fieldset> </fieldset>
</fieldset>
<h2>Grading</h2> <h3>Grading</h3>
<fieldset class="three_column"> <fieldset class="three_column">
<label> <label>
Unrestricted Unrestricted
...@@ -79,17 +60,118 @@ ...@@ -79,17 +60,118 @@
</label> </label>
</fieldset> </fieldset>
<h2>Prerequisite</h2> <h3>Delivery Method(s)</h3>
<fieldset> <fieldset class="three_column">
<textarea id="prerequisite" name="prerequisite"><?php echo htmlentities($this->course->prerequisite); ?></textarea> <label>
Classroom
<input type="checkbox"
name="deliveryMethods[]"
value="Classroom"
<?php if(in_array('Classroom', $this->course->deliveryMethods)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Web
<input type="checkbox"
name="deliveryMethods[]"
value="Web"
<?php if(in_array('Web', $this->course->deliveryMethods)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Correspondence
<input type="checkbox"
name="deliveryMethods[]"
value="Correspondence"
<?php if(in_array('Correspondence', $this->course->deliveryMethods)) { ?>
checked="checked"
<?php } ?>
/>
</label>
</fieldset> </fieldset>
<h2>Notes</h2>
<fieldset> <fieldset class="three_column">
<textarea id="notes" name="notes"><?php echo htmlentities($this->course->notes); ?></textarea> <label>
Title<br />
<input type="text" id="title" name="title" value="<?php echo htmlentities($this->course->title); ?>" />
</label>
<label>
Integrated Studies
<input type="hidden" name="integratedStudies" value="no" />
<input type="checkbox"
name="integratedStudies"
value="yes"
<?php if($this->course->integratedStudies == 'yes') { ?>
checked="checked"
<?php } ?>
/>
</label>
</fieldset> </fieldset>
<h2>Description</h2> </fieldset>
<fieldset>
<textarea id="description" name="description"><?php echo htmlentities($this->course->description); ?></textarea> <h2>Crosslistings</h2>
<fieldset class="three_column">
<table>
<tr>
<th>Subject</th>
<th>Course Number</th>
<th>Course Letter</th>
<th>Remove</th>
</tr>
<?php $hasTieIn = false;
foreach($this->course->crosslistings as $key => $crosslist) {
if($crosslist->type == 'grad tie-in') { $hasTieIn = true; }
if($crosslist->type != 'home listing') { ?>
<tr <?php if($crosslist->type == 'grad tie-in') { ?>class="grad_tie_in_row"<?php } ?>>
<td> <input type="text"
name="crosslistings[<?php echo $key; ?>][subject]"
value="<?php echo $crosslist->subject; ?>"
<?php if($crosslist->type == 'grad tie-in') { ?>readonly=""<?php } ?>/> </td>
<td> <input type="text"
name="crosslistings[<?php echo $key; ?>][courseNumber]"
value="<?php echo $crosslist->courseNumber; ?>"
<?php if($crosslist->type == 'grad tie-in') { ?>readonly=""<?php } ?> /> </td>
<td> <input type="text"
name="crosslistings[<?php echo $key; ?>][courseLetter]"
value="<?php echo $crosslist->courseLetter; ?>"
<?php if($crosslist->type == 'grad tie-in') { ?>readonly=""<?php } ?> /> </td>
<td class="hidden">
<input type="hidden"
name="crosslistings[<?php echo $key; ?>][type]"
value="<?php echo $crosslist->type; ?>" />
</td>
<td> <input type="checkbox"
name="crosslistings[<?php echo $key; ?>][delete]"
value="yes" /> </td>
</tr>
<?php } } ?>
<tr class="hidden_new_record">
<td> <input disabled="disabled" type="text" name="crosslistings[__key__][subject]" /> </td>
<td> <input disabled="disabled" type="text" name="crosslistings[__key__][courseNumber]" /> </td>
<td> <input disabled="disabled" type="text" name="crosslistings[__key__][courseLetter]" /> </td>
<td class="hidden"> <input disabled="disabled" type="hidden" name="crosslistings[__key__][type]" value="crosslisting" /> </td>
<td> <a href="#" class="remove_record_button">-</a> </td>
</tr>
<tr>
<td colspan="4">
<a href="#" class="add_record_button">Add Crosslisting</a>
<?php if(!$hasTieIn) { ?>
<a href="#"
class="add_record_button"
id="add_tie_in_button_<?php echo $this->course->subject
. '_' . $this->course->courseNumber
. '_' . $this->course->courseLetter; ?>"
>
Add Graduate Tie-In
</a>
<?php } ?>
</td>
</tr>
</table>
</fieldset> </fieldset>
<h2>Credit (leave blank if not defined)</h2> <h2>Credit (leave blank if not defined)</h2>
...@@ -130,6 +212,40 @@ ...@@ -130,6 +212,40 @@
</div> </div>
</fieldset> </fieldset>
<h2>Terms Offered (Remove terms never taught)</h2>
<fieldset class="three_column">
<label>
Fall
<input type="checkbox"
name="termsOffered[]"
value="Fall"
<?php if(in_array('Fall', $this->course->termsOffered)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Spring
<input type="checkbox"
name="termsOffered[]"
value="Spring"
<?php if(in_array('Spring', $this->course->termsOffered)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Summer
<input type="checkbox"
name="termsOffered[]"
value="Summer"
<?php if(in_array('Summer', $this->course->termsOffered)) { ?>
checked="checked"
<?php } ?>
/>
</label>
</fieldset>
<h2>Activity</h2> <h2>Activity</h2>
<fieldset class="two_of_three_column"> <fieldset class="two_of_three_column">
<table> <table>
...@@ -202,6 +318,19 @@ ...@@ -202,6 +318,19 @@
</table> </table>
</fieldset> </fieldset>
<h2>Prerequisite</h2>
<fieldset>
<textarea id="prerequisite" name="prerequisite"><?php echo htmlentities($this->course->prerequisite); ?></textarea>
</fieldset>
<h2>Notes</h2>
<fieldset>
<textarea id="notes" name="notes"><?php echo htmlentities($this->course->notes); ?></textarea>
</fieldset>
<h2>Description</h2>
<fieldset>
<textarea id="description" name="description"><?php echo htmlentities($this->course->description); ?></textarea>
</fieldset>
<h2>Campus(es)</h2> <h2>Campus(es)</h2>
<fieldset class="three_column"> <fieldset class="three_column">
<label> <label>
...@@ -246,67 +375,6 @@ ...@@ -246,67 +375,6 @@
</label> </label>
</fieldset> </fieldset>
<h2>Crosslistings</h2>
<fieldset class="three_column">
<table>
<tr>
<th>Subject</th>
<th>Course Number</th>
<th>Course Letter</th>
<th>Remove</th>
</tr>
<?php $hasTieIn = false;
foreach($this->course->crosslistings as $key => $crosslist) {
if($crosslist->type == 'grad tie-in') { $hasTieIn = true; }
if($crosslist->type != 'home listing') { ?>
<tr <?php if($crosslist->type == 'grad tie-in') { ?>class="grad_tie_in_row"<?php } ?>>
<td> <input type="text"
name="crosslistings[<?php echo $key; ?>][subject]"
value="<?php echo $crosslist->subject; ?>"
<?php if($crosslist->type == 'grad tie-in') { ?>readonly=""<?php } ?>/> </td>
<td> <input type="text"
name="crosslistings[<?php echo $key; ?>][courseNumber]"
value="<?php echo $crosslist->courseNumber; ?>"
<?php if($crosslist->type == 'grad tie-in') { ?>readonly=""<?php } ?> /> </td>
<td> <input type="text"
name="crosslistings[<?php echo $key; ?>][courseLetter]"
value="<?php echo $crosslist->courseLetter; ?>"
<?php if($crosslist->type == 'grad tie-in') { ?>readonly=""<?php } ?> /> </td>
<td class="hidden">
<input type="hidden"
name="crosslistings[<?php echo $key; ?>][type]"
value="<?php echo $crosslist->type; ?>" />
</td>
<td> <input type="checkbox"
name="crosslistings[<?php echo $key; ?>][delete]"
value="yes" /> </td>
</tr>
<?php } } ?>
<tr class="hidden_new_record">
<td> <input disabled="disabled" type="text" name="crosslistings[__key__][subject]" /> </td>
<td> <input disabled="disabled" type="text" name="crosslistings[__key__][courseNumber]" /> </td>
<td> <input disabled="disabled" type="text" name="crosslistings[__key__][courseLetter]" /> </td>
<td class="hidden"> <input disabled="disabled" type="hidden" name="crosslistings[__key__][type]" value="crosslisting" /> </td>
<td> <a href="#" class="remove_record_button">-</a> </td>
</tr>
<tr>
<td colspan="4">
<a href="#" class="add_record_button">Add Crosslisting</a>
<?php if(!$hasTieIn) { ?>
<a href="#"
class="add_record_button"
id="add_tie_in_button_<?php echo $this->course->subject
. '_' . $this->course->courseNumber
. '_' . $this->course->courseLetter; ?>"
>
Add Graduate Tie-In
</a>
<?php } ?>
</td>
</tr>
</table>
</fieldset>
<h2>Graduate Tie-In</h2> <h2>Graduate Tie-In</h2>
<fieldset> <fieldset>
<label> <label>
...@@ -323,40 +391,6 @@ ...@@ -323,40 +391,6 @@
</label> </label>
</fieldset> </fieldset>
<h2>Delivery Method(s)</h2>
<fieldset class="three_column">
<label>
Classroom
<input type="checkbox"
name="deliveryMethods[]"
value="Classroom"
<?php if(in_array('Classroom', $this->course->deliveryMethods)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Web
<input type="checkbox"
name="deliveryMethods[]"
value="Web"
<?php if(in_array('Web', $this->course->deliveryMethods)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Correspondence
<input type="checkbox"
name="deliveryMethods[]"
value="Correspondence"
<?php if(in_array('Correspondence', $this->course->deliveryMethods)) { ?>
checked="checked"
<?php } ?>
/>
</label>
</fieldset>
<?php /* <?php /*
<h2>DF Removals (not implemented)</h2> <h2>DF Removals (not implemented)</h2>
<table> <table>
...@@ -414,40 +448,6 @@ ...@@ -414,40 +448,6 @@
<?php } ?> <?php } ?>
</table> */ ?> </table> */ ?>
<h2>Terms Offered (Remove terms never taught)</h2>
<fieldset class="three_column">
<label>
Fall
<input type="checkbox"
name="termsOffered[]"
value="Fall"
<?php if(in_array('Fall', $this->course->termsOffered)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Spring
<input type="checkbox"
name="termsOffered[]"
value="Spring"
<?php if(in_array('Spring', $this->course->termsOffered)) { ?>
checked="checked"
<?php } ?>
/>
</label>
<label>
Summer
<input type="checkbox"
name="termsOffered[]"
value="Summer"
<?php if(in_array('Summer', $this->course->termsOffered)) { ?>
checked="checked"
<?php } ?>
/>
</label>
</fieldset>
<input type="submit" /> <input type="submit" />
</form> </form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment