[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"> <tal:result condition="objs">
<fieldset> <tal:comment replace="nothing">Display here POD templates if required.</tal:comment>
<legend> <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="structure python: test(searchName, searchLabel, test(severalTypes, _(tool.getAppName()), _('%s_plural' % className)))"/>
(<span tal:replace="totalNumber"/>) (<span tal:replace="totalNumber"/>)
<tal:newSearch condition="python: searchName == '_advanced'"> <tal:newSearch condition="python: searchName == '_advanced'">
&nbsp;&mdash;&nbsp;<i><a tal:attributes="href newSearchUrl" &nbsp;&mdash;&nbsp;<i><a tal:attributes="href newSearchUrl"
tal:content="python: _('search_new')"></a></i> tal:content="python: _('search_new')"></a></i>
</tal:newSearch> </tal:newSearch>
</legend> </p>
<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>
<table width="100%"> <table width="100%">
<tr> <tr>
<tal:descr condition="searchName"> <tal:descr condition="searchName">
<td tal:define="descr python: _('%s_descr' % labelId)" <td tal:define="descr python: _('%s_descr' % labelId)"
tal:condition="descr/strip"> tal:condition="descr/strip">
<span class="discreet" tal:content="descr"></span><br/><br/> <span class="discreet" tal:content="descr"></span><br/>
</td> </td>
</tal:descr> </tal:descr>
<td align="right" width="25%"> <td align="right" width="25%">
@ -145,7 +145,6 @@
<tal:comment replace="nothing">Appy (bottom) navigation</tal:comment> <tal:comment replace="nothing">Appy (bottom) navigation</tal:comment>
<metal:nav use-macro="here/ui/navigate/macros/appyNavigate"/> <metal:nav use-macro="here/ui/navigate/macros/appyNavigate"/>
</fieldset>
</tal:result> </tal:result>
<tal:noResult condition="not: objs"> <tal:noResult condition="not: objs">
@ -155,5 +154,4 @@
tal:content="python: _('search_new')"></a></i> tal:content="python: _('search_new')"></a></i>
</tal:newSearch> </tal:newSearch>
</tal:noResult> </tal:noResult>
</metal:queryResults> </metal:queryResults>