feat(templates) Add support for plone.formwidget.autocomplete 2.0

This commit is contained in:
Patrick Gerken 2013-05-15 17:24:27 +02:00
parent 7e476f3899
commit af35485096
2 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,8 @@ Changelog
* Do not exclude content types which are not allowed in navigation [ebrehault]
* Add support for plone.formwidget.autocomplete 2.0 [do3cc]
1.0.6 (2012-09-28)
------------------

View File

@ -1,7 +1,12 @@
<i18n:domain i18n:domain="plone.formwidget.contenttree">
<div tal:attributes="id string:${view/id}-autocomplete">
<div tal:attributes="id string:${view/id}-autocomplete;
class view/css_class_for_autocomplete_initalization">
<div tal:attributes="id string:${view/id}-input-fields" class="autocompleteInputWidget"
tal:content="structure view/renderQueryWidget" />
<span class="autocomplete_options hidden_structure"
tal:attributes="data-source view/autocomplete_url;
data-minLength view/minLength"/>
<tal:block replace="structure view/subform/render" />
</div>
<div class="contenttreeWindow"