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