X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fwebpages%2Fgeneric%2Fautocomplete.html;fp=templates%2Fwebpages%2Fgeneric%2Fautocomplete.html;h=0000000000000000000000000000000000000000;hp=5bd35c0b23ab56c6e1aa0270bf88b9838d0b4606;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/templates/webpages/generic/autocomplete.html b/templates/webpages/generic/autocomplete.html deleted file mode 100644 index 5bd35c0b2..000000000 --- a/templates/webpages/generic/autocomplete.html +++ /dev/null @@ -1,58 +0,0 @@ -[%#- - Autocompletion - - This template enables auto completion for input fields. - Calling Syntax is: - - INCLUDE 'generic/autocomplete', [ - { SPEC_1 }, - { SPEC_2 }, - ... - ] - - where SPEC is a hash containing the following keys: - - script : the script that is called for autocompletion, defaults to the invoking script - action : action in the ajax script, defaults to 'ajax_autocomplete' - selector : a jquery selector, specifying the input fields - column : specifies the column that is represented by the bound field. typically description or name. - params : additional params that should be included in the request, like customer/vendor information. expects a hash. - - TODO FIELDS: - - addition fields like type, vc etc. - - additional dependencies, see jquery.autocomplete documentation - - hook function on select, again see jquery documentation - - limit: maximum number of results shown. - - a simple SPEC would look like this: - - { selector => '#description', column => 'description' } - # field with id="description" should be autocompleted with descriptions - - { script => 'ic.pl', selector => '[name^="partnumber_"]', column => 'partnumber' } - # let ic.pl autocomplete by partnumbers, bind this to all fields where the name begins with "partnumber_" - - - - The Backend Side - - The called function will recieve the queried string as hashkey "q" in form, as well as every other param specified here. - It should generate a generic ajax header (see form), followed by newline separated list of possible completion values. - -%] -