<tal:define define="dummy view/update"/>
<html metal:use-macro="view/@@standard_macros/page" i18n:domain="schooltool">
<head>
  <title metal:fill-slot="title"
         tal:content="string:${context/title} Contents">
    Contents
  </title>
</head>
<body>

<h1 metal:fill-slot="content-header"
    tal:content="string:${context/title} Sub Requirements"
    i18n:translate="">Contents</h1>

<metal:block metal:fill-slot="body"
             tal:define="batch view/batch">
  <tal:block replace="structure view/batch/render" />
  <form method="post" class="batch-search">
    <input id="batch-search-box" type="text" name="SEARCH"
      tal:attributes="value request/SEARCH|nothing"/>
    <input type="submit" name="SEARCH_BUTTON" value="Find Now"
      i18n:attributes="value"/>
    <input type="submit" name="CLEAR_SEARCH" value="Clear"
      i18n:attributes="value"/>
    <input type="checkbox" name="RECURSIVE" value="0"
      tal:attributes="value request/RECURSIVE|nothing"/>recursive?
  </form>
  <tal:if condition="batch" define="depth python:int(request.get('DEPTH', 3))">
    <div class="count" i18n:translate="">
      Showing
      <span i18n:name="count" tal:content="python:len(batch)"/>
      of
      <span i18n:name="total" tal:content="python:len(batch.list)"/>
      items
    </div>
    <form method="post">
      <b>Depth:</b>
      <input type="submit" name="DEPTH"
          tal:condition="python:depth > 1"
          tal:attributes="value python:depth-1" />
      <b tal:content="python:depth">3</b>
      <input type="submit" name="DEPTH"
          tal:attributes="value python:depth+1" />
    </form>
    <tal:block replace="structure view/subthread" />
  </tal:if>

</metal:block>
</body>
</html>
