[gen] Bugfixes.

This commit is contained in:
Gaetan Delannay 2012-12-12 17:26:01 +01:00
parent ba5bc76548
commit 4db5e9d995
3 changed files with 17 additions and 13 deletions

View file

@ -39,7 +39,7 @@
<p>
<span tal:replace="searchDescr/translated"/>
(<span tal:replace="totalNumber"/>)
<tal:newSearch condition="python: searchName == '_advanced'">
<tal:newSearch condition="python: searchName == 'customSearch'">
&nbsp;&mdash;&nbsp;<i><a tal:attributes="href newSearchUrl"
tal:content="python: _('search_new')"></a></i>
</tal:newSearch>
@ -125,7 +125,7 @@
<tal:noResult condition="not: objs">
<span tal:replace="python: _('query_no_result')"/>
<tal:newSearch condition="python: searchName == '_advanced'">
<tal:newSearch condition="python: searchName == 'customSearch'">
<br/><i class="discreet"><a tal:attributes="href newSearchUrl"
tal:content="python: _('search_new')"></a></i>
</tal:newSearch>

View file

@ -38,5 +38,6 @@
<label tal:attributes="for widgetName" tal:content="python: _(widget['labelId'])"></label><br>&nbsp;&nbsp;
<input type="text" tal:define="maxChars python: test(widget['maxChars'], widget['maxChars'], '')"
tal:attributes="name python: '%s*string' % widgetName;
maxlength maxChars"/>
maxlength maxChars;
value widget/defaultForSearch"/>
</metal:search>