<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
+[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
+ { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
+]
+%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
+[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
+ { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
+]
+%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
+[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
+ { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
+]
+%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
+[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
+ { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
+]
+%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>