<span
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:notal="http://www.infrae.com/silva/notal"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  i18n:domain="silva_news"

  tal:define="view here;
              model view/REQUEST/model;
              results python:model.search_items(view.REQUEST['query']);
              silva_root view/silva_root;
              mangle modules/Products/Silva/mangle;"
>

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
  <div class="margins">
    <h2><span class="folder-title" i18n:translate="">Search News</span></h2>
  </div>
</td>
</tr>
</table>

<tal:comment condition="nothing">Begin PublicationTable</tal:comment>

<table width="100%" cellspacing="0" cellpadding="3" border="2" class="plain">

<tr class="topcontrols" valign="bottom">
<td align="right" colspan="2">
<form tal:attributes="action string:." method="post">
  <input type="text" name="query" />&nbsp;
  <input class="button" type="submit" value="Search" title="Do a full text search: alt-s" accesskey="s"
   i18n:attributes="value;title" />
</form>
</td>
</tr>

<span tal:replace="nothing"> ______________ listing iteration ______________ </span>
<toc_entry tal:omit-tag=""
  tal:repeat="obj results">
<tal:block tal:define="obj obj/getObject">

<tr class="focus">

<span tal:replace="nothing"> _______ title cell _______ </span>
<td valign="top" align="left">
<h2 tal:content="obj/get_title">title</h2>
</td>
</tr>

<tr class="focus-cycle">
<td align="left" valign="top">
<tal:block content="structure obj/get_intro">Lead</tal:block><br /><br />
<span i18n:translate="">Startdate/time:</span>
<span tal:replace="structure python: '<br />%s<br /><br />' % mangle.DateTime(obj.start_datetime()).toStrOptionalTime()" tal:condition="obj/start_datetime | nothing">DateTime</span>
<a href="#" tal:attributes="href python: obj.object().absolute_url()" i18n:translate="">view article</a>
</td>
</tr>

</tal:block>
</toc_entry>

<span tal:replace="nothing"> ______________ if no records ______________ </span>
<check tal:condition="python:len(results) == 0">
<tr class="divider">
<td><img tal:attributes="src string:${silva_root}/globals/pixel.gif" width="1" height="1" /></td>
</tr>
<tr class="focus-light">
<td i18n:translate="" colspan="2">
There are no articles corresponding to your query.
</td>
</tr>
<tr class="divider">
<td><img tal:attributes="src string:${silva_root}/globals/pixel.gif" width="1" height="1" /></td>
</tr>
</check>
<!-- /iteration -->

</table>

</span>
