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

<h1 metal:fill-slot="content-header" i18n:translate="">
  Are you sure you want to delete the selected terms?
</h1>

<metal:block metal:fill-slot="body"
             tal:define="objects view/itemsToDelete">
  <p tal:condition="not:objects" i18n:translate="">You have not
  selected any items.</p>
  <ul tal:condition="objects">
    <form method="post"
          action="delete.html">
      <li tal:repeat="obj objects/sortby:title">
        <input type="hidden" tal:attributes="name string:delete.${obj/zope:name}" />
        <a tal:content="obj/title" tal:attributes="href
        obj/@@absolute_url">Title</a>. This term is used
        by <span tal:replace="python:len(view.timetables(obj))"/>
        individual timetables.
      </li>
      <div class="controls">
        <input type="submit" class="button-cancel" name="CONFIRM" value="Confirm"
               i18n:attributes="value delete-button;" />
        <input type="submit" class="button-cancel" name="CANCEL" value="Cancel"
               i18n:attributes="value cancel-button" />
      </div>
    </form>
  </ul>

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