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

<h1 metal:fill-slot="content-header"
    tal:content="view/index_title">Contents</h1>

<metal:block metal:fill-slot="body"
             tal:define="batch view/table/batch;
                         canModify view/canModify">
  <tal:block replace="structure batch/render" />
  <form method="post" tal:attributes="action string:${context/@@absolute_url}">
    <tal:if condition="batch">
      <div class="count" i18n:translate="">
        Showing
        <span i18n:name="count" tal:content="batch/length"/>
        of
        <span i18n:name="total" tal:content="batch/full_size"/>
        items
      </div>
        <tal:block replace="structure view/table/render" />
        <div class="controls" tal:condition="canModify">
          <input type="submit" class="button-cancel" value="Delete"
                 name="DELETE"
                 i18n:attributes="value delete-button;" />
        </div>
    </tal:if>
  </form>
  <p tal:condition="not:batch" i18n:translate="">There are none.</p>

  <form action="@@search.html" method="get">
    <input class="textType"
           id="form.fulltext"
           name="form.fulltext"
           size="20" type="text"
           value=""/>
    <input type="hidden"
           id="form.parentName"
           name="form.parentName"
           value=""/>
    <input type="hidden"
           id="form.studentId"
           name="form.studentId"
           value=""/>
    <input type="submit"
           id="form.actions.submit"
           name="form.actions.submit"
           value="Search" class="button" />
  </form>

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