|
Lines 36-42
Link Here
|
| 36 |
<option value="">LEAVE UNCHANGED</option> |
36 |
<option value="">LEAVE UNCHANGED</option> |
| 37 |
|
37 |
|
| 38 |
[% FOREACH it IN itypes %] |
38 |
[% FOREACH it IN itypes %] |
| 39 |
[% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %] |
39 |
[% IF course_item.itype.defined && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %] |
| 40 |
<option value="[% it.itemtype %]" selected="selected">[% it.description %]</option> |
40 |
<option value="[% it.itemtype %]" selected="selected">[% it.description %]</option> |
| 41 |
[% ELSE %] |
41 |
[% ELSE %] |
| 42 |
<option value="[% it.itemtype %]">[% it.description %]</option> |
42 |
<option value="[% it.itemtype %]">[% it.description %]</option> |
|
Lines 52-58
Link Here
|
| 52 |
<option value="">LEAVE UNCHANGED</option> |
52 |
<option value="">LEAVE UNCHANGED</option> |
| 53 |
|
53 |
|
| 54 |
[% FOREACH c IN ccodes %] |
54 |
[% FOREACH c IN ccodes %] |
| 55 |
[% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %] |
55 |
[% IF course_item.ccode.defined && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %] |
| 56 |
<option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option> |
56 |
<option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option> |
| 57 |
[% ELSE %] |
57 |
[% ELSE %] |
| 58 |
<option value="[% c.authorised_value %]">[% c.lib %]</option> |
58 |
<option value="[% c.authorised_value %]">[% c.lib %]</option> |
|
Lines 67-73
Link Here
|
| 67 |
<option value="">LEAVE UNCHANGED</option> |
67 |
<option value="">LEAVE UNCHANGED</option> |
| 68 |
|
68 |
|
| 69 |
[% FOREACH s IN locations %] |
69 |
[% FOREACH s IN locations %] |
| 70 |
[% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %] |
70 |
[% IF course_item.location.defined && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %] |
| 71 |
<option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option> |
71 |
<option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option> |
| 72 |
[% ELSE %] |
72 |
[% ELSE %] |
| 73 |
<option value="[% s.authorised_value %]">[% s.lib %]</option> |
73 |
<option value="[% s.authorised_value %]">[% s.lib %]</option> |
|
Lines 82-88
Link Here
|
| 82 |
<option value="">LEAVE UNCHANGED</option> |
82 |
<option value="">LEAVE UNCHANGED</option> |
| 83 |
|
83 |
|
| 84 |
[% FOREACH b IN branches %] |
84 |
[% FOREACH b IN branches %] |
| 85 |
[% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %] |
85 |
[% IF course_item.holdingbranch.defined && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %] |
| 86 |
<option value="[% b.value %]" selected="selected">[% b.branchname %]</option> |
86 |
<option value="[% b.value %]" selected="selected">[% b.branchname %]</option> |
| 87 |
[% ELSE %] |
87 |
[% ELSE %] |
| 88 |
<option value="[% b.value %]">[% b.branchname %]</option> |
88 |
<option value="[% b.value %]">[% b.branchname %]</option> |