Lines 38-44
Link Here
|
38 |
<option value="">LEAVE UNCHANGED</option> |
38 |
<option value="">LEAVE UNCHANGED</option> |
39 |
|
39 |
|
40 |
[% FOREACH it IN itypes %] |
40 |
[% FOREACH it IN itypes %] |
41 |
[% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %] |
41 |
[% IF course_item.itype.defined && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %] |
42 |
<option value="[% it.itemtype %]" selected="selected">[% it.description %]</option> |
42 |
<option value="[% it.itemtype %]" selected="selected">[% it.description %]</option> |
43 |
[% ELSE %] |
43 |
[% ELSE %] |
44 |
<option value="[% it.itemtype %]">[% it.description %]</option> |
44 |
<option value="[% it.itemtype %]">[% it.description %]</option> |
Lines 54-60
Link Here
|
54 |
<option value="">LEAVE UNCHANGED</option> |
54 |
<option value="">LEAVE UNCHANGED</option> |
55 |
|
55 |
|
56 |
[% FOREACH c IN ccodes %] |
56 |
[% FOREACH c IN ccodes %] |
57 |
[% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %] |
57 |
[% IF course_item.ccode.defined && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %] |
58 |
<option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option> |
58 |
<option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option> |
59 |
[% ELSE %] |
59 |
[% ELSE %] |
60 |
<option value="[% c.authorised_value %]">[% c.lib %]</option> |
60 |
<option value="[% c.authorised_value %]">[% c.lib %]</option> |
Lines 69-75
Link Here
|
69 |
<option value="">LEAVE UNCHANGED</option> |
69 |
<option value="">LEAVE UNCHANGED</option> |
70 |
|
70 |
|
71 |
[% FOREACH s IN locations %] |
71 |
[% FOREACH s IN locations %] |
72 |
[% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %] |
72 |
[% IF course_item.location.defined && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %] |
73 |
<option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option> |
73 |
<option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option> |
74 |
[% ELSE %] |
74 |
[% ELSE %] |
75 |
<option value="[% s.authorised_value %]">[% s.lib %]</option> |
75 |
<option value="[% s.authorised_value %]">[% s.lib %]</option> |
Lines 83-89
Link Here
|
83 |
<select id="holdingbranch" name="holdingbranch"> |
83 |
<select id="holdingbranch" name="holdingbranch"> |
84 |
<option value="">LEAVE UNCHANGED</option> |
84 |
<option value="">LEAVE UNCHANGED</option> |
85 |
[% FOREACH b IN Branches.all() %] |
85 |
[% FOREACH b IN Branches.all() %] |
86 |
[% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %] |
86 |
[% IF course_item.holdingbranch.defined && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %] |
87 |
<option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option> |
87 |
<option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option> |
88 |
[% ELSE %] |
88 |
[% ELSE %] |
89 |
<option value="[% b.branchcode %]">[% b.branchname %]</option> |
89 |
<option value="[% b.branchcode %]">[% b.branchname %]</option> |