[gen] More simpler result.pt.
This commit is contained in:
parent
e13575c506
commit
188fdc9761
|
@ -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"/>
|
||||||
|
</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'">
|
||||||
— <i><a tal:attributes="href newSearchUrl"
|
— <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"/>
|
|
||||||
</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>
|
||||||
|
|
Loading…
Reference in a new issue