- [%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
- <input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
- [%- ELSE %]
- <select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
- [%- FOREACH row = ALL_VC %]
- <option value="[% HTML.escape(row.value) %]" [% IF the_oldvc == row.value %] selected[% END %]>[% HTML.escape(row.name) %]</option>
- [%- END %]
- </select>
- <input type="hidden" name="select[% vc %]" value="1">
- [%- END %]
- <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('[% vc %]')">
+ [% IF RO %]
+ [% P.hidden_tag(vc_id, $vc_id) %]
+ [% HTML.escape(VC_OBJ.name) %]
+ [% ELSE %]
+ [% P.customer_vendor_picker(vc_id, $vc_id, type=vc, class="fixed_width") %]
+ [% END %]
+ [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
+ [% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %]