Kunden Autocompletion in Rechnungen.
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 9 Dec 2009 12:07:03 +0000 (13:07 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 9 Dec 2009 12:07:03 +0000 (13:07 +0100)
templates/webpages/is/form_header_de.html
templates/webpages/is/form_header_master.html

index 9a1af4a..04ae713 100644 (file)
                  allow_textbox = 1,
                  onChange      = "document.getElementById('update_button').click();" -%]
             <input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
+[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
+  { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
+]
+%]
           </td>
           <input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
           <input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
index eb2be4e..13ce08d 100644 (file)
                  allow_textbox = 1,
                  onChange      = "document.getElementById('update_button').click();" -%]
             <input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% HTML.escape(vc) %]')">
+[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
+  { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
+]
+%]
           </td>
           <input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
           <input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">