<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" i18n:translate="">
  <tal:block tal:content="view/context/title"
             i18n:name="schoolyear_title">School Year Title</tal:block>
  (<tal:block tal:content="view/context/first/@@mediumDate"
              i18n:name="start_date"/>
  &mdash;
  <tal:block tal:content="view/context/last/@@mediumDate"
             i18n:name="end_date"/>)
</h1>
<metal:block metal:fill-slot="body"
             tal:define="canModify view/canModify">
  <form method="post" tal:attributes="action string:${context/@@absolute_url}">
    <div class="term" tal:repeat="term view/sorted_terms">
      <input type="checkbox"
             tal:attributes="name string:delete.${term/__name__};
                             id string:delete.${term/__name__}" />
      <tal:block i18n:translate="">
        <tal:block tal:content="structure term/@@link"
                   i18n:name="term_title">Term title</tal:block>
        (<tal:block tal:content="term/first/@@mediumDate"
                    i18n:name="start_date"/>
        &mdash;
        <tal:block tal:content="term/last/@@mediumDate" i18n:name="end_date"/>)
      </tal:block>
    </div>
    <tal:if condition="view/sorted_terms">
      <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="canModify">
    <a tal:attributes="href string:${view/context/@@absolute_url}/@@add.html"
       i18n:translate="">Add a new term</a>
  </p>
  <hr />
  <tal:block replace="structure provider:schooltool.SchoolYearMenu" />
</metal:block>
</body>
</html>
