[gen] More simpler result.pt.

This commit is contained in:
Gaetan Delannay 2012-06-13 09:59:19 +02:00
parent e13575c506
commit 188fdc9761

View file

@ -26,33 +26,33 @@
<tal:result condition="objs">
<fieldset>
<legend>
<tal:comment replace="nothing">Display here POD templates if required.</tal:comment>
<table align="right"
tal:define="widgets python: tool.getResultPodFields(className);
layoutType python:'view'"
tal:condition="python: objs and widgets">
<tr>
<td tal:define="contextObj python: objs[0]" tal:repeat="widget widgets">
<metal:pod use-macro="context/ui/widgets/show/macros/field"/>&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
<tal:comment replace="nothing">The title of the search.</tal:comment>
<p>
<span tal:replace="structure python: test(searchName, searchLabel, test(severalTypes, _(tool.getAppName()), _('%s_plural' % className)))"/>
(<span tal:replace="totalNumber"/>)
<tal:newSearch condition="python: searchName == '_advanced'">
&nbsp;&mdash;&nbsp;<i><a tal:attributes="href newSearchUrl"
tal:content="python: _('search_new')"></a></i>
</tal:newSearch>
</legend>
<tal:comment replace="nothing">Display here POD templates if required.</tal:comment>
<table align="right"
tal:define="widgets python: tool.getResultPodFields(className);
layoutType python:'view'"
tal:condition="python: objs and widgets">
<tr><td tal:define="contextObj python: objs[0]"
tal:repeat="widget widgets">
<metal:pod use-macro="context/ui/widgets/show/macros/field"/>&nbsp;&nbsp;&nbsp;
</td></tr>
</table>
</p>
<table width="100%">
<tr>
<tal:descr condition="searchName">
<td tal:define="descr python: _('%s_descr' % labelId)"
tal:condition="descr/strip">
<span class="discreet" tal:content="descr"></span><br/><br/>
<span class="discreet" tal:content="descr"></span><br/>
</td>
</tal:descr>
<td align="right" width="25%">
@ -145,7 +145,6 @@
<tal:comment replace="nothing">Appy (bottom) navigation</tal:comment>
<metal:nav use-macro="here/ui/navigate/macros/appyNavigate"/>
</fieldset>
</tal:result>
<tal:noResult condition="not: objs">
@ -155,5 +154,4 @@
tal:content="python: _('search_new')"></a></i>
</tal:newSearch>
</tal:noResult>
</metal:queryResults>