<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>

<span metal:fill-slot="zonki">
  <img src="zonki.png" alt="SchoolTool" i18n:attributes="alt"
    tal:attributes="src context/++resource++zonki-reading.png" />
</span>

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

  <tal:block define="active_year context/getActiveSchoolYear"
             condition="python: active_year is not None">
    <p i18n:translate="">
      The active school year is
      <strong tal:content="active_year/@@title" i18n:name="year" />
      (<tal:block content="view/first/@@mediumDate"
                  i18n:name="start_date"/> -
       <tal:block content="view/last/@@mediumDate"
                  i18n:name="end_date"/>)
    </p>
  </tal:block>


  <div tal:condition="view/error"
       class="error"
       tal:content="view/error" />
  <tal:block replace="structure view/table/batch/render" />
  <form method="post" tal:attributes="action string:${context/@@absolute_url}">
    <tal:if condition="view/table/batch">
      <div class="count" i18n:translate="">
        Showing
        <span i18n:name="count" tal:content="view/table/batch/length"/>
        of
        <span i18n:name="total" tal:content="view/table/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;" />
          <tal:block condition="canModify">
            <input type="submit" class="button-ok"
                   value="Activate selected school year"
                   name="ACTIVATE_NEXT_SCHOOLYEAR"
                   i18n:attributes="value" />
          </tal:block>
        </div>

    </tal:if>
  </form>
  <p tal:condition="not:view/table/batch" i18n:translate="">There are none.</p>
</metal:block>
</body>
</html>
