]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Autoconpletion für Kunden in Lieferscheinen.
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 9 Dec 2009 15:54:18 +0000 (16:54 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 10 Dec 2009 10:10:17 +0000 (11:10 +0100)
templates/webpages/do/form_header_de.html
templates/webpages/do/form_header_master.html
templates/webpages/do/search_de.html
templates/webpages/do/search_master.html

index 493547b1f229b192c09c55777925557021dbee51..289f57b22cdc84768c032b11ab1a244153805faf 100644 (file)
         <td>
          [%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
          <input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
         <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 %]
          [%- ELSE %]
          <select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
           [%- FOREACH row = ALL_VC %]
index 444f8793e9bdda39cd22ebad20607fe58ad41464..617a22553e6b2f3a49fb60d2988e1eb90c65f239 100644 (file)
         <td>
          [%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
          <input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
         <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 %]
          [%- ELSE %]
          <select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
           [%- FOREACH row = ALL_VC %]
index 0ad75a0beae18f24de094f5d4aa4232be383b5ca..95930478d41528b758d3aa99e488bc6b62ed3526 100644 (file)
      <td colspan="3">
       [%- UNLESS SHOW_VC_DROP_DOWN %]
       <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
      <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>
       [%- ELSE %]
       <select name="[% vc %]" class="fixed_width">
        <option></option>
index 18759111a5a4a5a028d9a926bdc575da616df05e..832b71aaa3b53ee33602ebef70d5df32e446a2ee 100644 (file)
      <td colspan="3">
       [%- UNLESS SHOW_VC_DROP_DOWN %]
       <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
      <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>
       [%- ELSE %]
       <select name="[% vc %]" class="fixed_width">
        <option></option>