Search screen now supports String fields with Selection instances as validators.

This commit is contained in:
Gaetan Delannay 2010-01-09 19:09:13 +01:00
parent c37fa93858
commit 2ecd2d7ef1
3 changed files with 27 additions and 5 deletions
gen/plone25/skin

View file

@ -23,8 +23,8 @@
<tal:comment replace="nothing">Show a multi-selection box for fields whose validator defines a list of values.</tal:comment>
<tal:selectSearch condition="appyType/isSelect">
<select tal:attributes="name widgetName" multiple="multiple" size="5">
<option tal:repeat="v appyType/validator" tal:attributes="value v"
tal:content="python: tool.truncate(tool.translate('%s_list_%s' % (appyType['label'], v)), 70)">
<option tal:repeat="v python:tool.getSelectValues(appyType)"
tal:attributes="value python:v[0]" tal:content="python: v[1]">
</option>
</select>
</tal:selectSearch><br/>