Lines 90-106
function RemoveInstructor( cardnumber ) {
Link Here
|
90 |
<ol> |
90 |
<ol> |
91 |
<li> |
91 |
<li> |
92 |
<label class="required" for="department">Department:</label> |
92 |
<label class="required" for="department">Department:</label> |
93 |
<select id="department" name="department"> |
93 |
[% IF departments %] |
94 |
<option value="">Select A Department</option> |
94 |
<select id="department" name="department"> |
95 |
|
95 |
<option value="">Select A Department</option> |
96 |
[% FOREACH d IN departments %] |
96 |
|
97 |
[% IF d.authorised_value == department %] |
97 |
[% FOREACH d IN departments %] |
98 |
<option value="[% d.authorised_value %]" selected="selected">[% d.lib %]</option> |
98 |
[% IF d.authorised_value == department %] |
99 |
[% ELSE %] |
99 |
<option value="[% d.authorised_value %]" selected="selected">[% d.lib %]</option> |
100 |
<option value="[% d.authorised_value %]">[% d.lib %]</option> |
100 |
[% ELSE %] |
|
|
101 |
<option value="[% d.authorised_value %]">[% d.lib %]</option> |
102 |
[% END %] |
101 |
[% END %] |
103 |
[% END %] |
102 |
[% END %] |
104 |
</select> |
103 |
</select> |
105 |
[% ELSE %] |
|
|
106 |
<span id="department">No DEPT authorised values found! Please create one or more authorised values with the category DEPT.</span> |
107 |
[% END %] |
104 |
</li> |
108 |
</li> |
105 |
|
109 |
|
106 |
<li> |
110 |
<li> |
Lines 120-136
function RemoveInstructor( cardnumber ) {
Link Here
|
120 |
|
124 |
|
121 |
<li> |
125 |
<li> |
122 |
<label for="term">Term:</label> |
126 |
<label for="term">Term:</label> |
123 |
<select id="term" name="term"> |
127 |
[% IF terms %] |
124 |
<option value=""></option> |
128 |
<select id="term" name="term"> |
125 |
|
129 |
<option value=""></option> |
126 |
[% FOREACH t IN terms %] |
130 |
|
127 |
[% IF t.authorised_value == term %] |
131 |
[% FOREACH t IN terms %] |
128 |
<option value="[% t.authorised_value %]" selected="selected">[% t.lib %]</option> |
132 |
[% IF t.authorised_value == term %] |
129 |
[% ELSE %] |
133 |
<option value="[% t.authorised_value %]" selected="selected">[% t.lib %]</option> |
130 |
<option value="[% t.authorised_value %]">[% t.lib %]</option> |
134 |
[% ELSE %] |
|
|
135 |
<option value="[% t.authorised_value %]">[% t.lib %]</option> |
136 |
[% END %] |
131 |
[% END %] |
137 |
[% END %] |
132 |
[% END %] |
138 |
</select> |
133 |
</select> |
139 |
[% ELSE %] |
|
|
140 |
<span id="term">No TERM authorised values found! Please create one or more authorised values with the category TERM.</span> |
141 |
[% END %] |
134 |
</li> |
142 |
</li> |
135 |
|
143 |
|
136 |
<!-- TODO: Add Instructors --> |
144 |
<!-- TODO: Add Instructors --> |
137 |
- |
|
|