<metal:block i18n:domain="schooltool"
             tal:define="batch view/available_table/batch;
                         items view/getSelectedItems">
  <h2 tal:content="view/current_title" />
  <form method="post" tal:attributes="action request/URL">

    <tal:if condition="view/selected_table/batch">
      <tal:block replace="structure view/selected_table/batch/render" />
    </tal:if>

    <tal:block replace="structure view/selected_table/render"
               tal:condition="items"/>
    <h3 tal:condition="not:items" i18n:translate="">
      There are none.
    </h3>
    <input type="hidden" id="nexturl" name="nexturl"
           tal:attributes="value view/nextURL" />
  </form>
  <h3>
    <a tal:attributes="href view/nextURL"
       i18n:translate="">Done</a>
  </h3>
  <h2 tal:content="view/available_title" />
  <form method="post" tal:attributes="action request/URL">
    <tal:if condition="batch">
      <div class="count" i18n:translate="">
        Showing
        <span i18n:name="count" tal:content="view/available_table/batch/length"/>
        of
        <span i18n:name="total" tal:content="view/available_table/batch/full_size"/>
        items
      </div>
    </tal:if>
    <tal:block replace="structure view/available_table/filter_widget/render|nothing" />
    <tal:block replace="structure view/available_table/batch/render" />
    <tal:block replace="structure view/available_table/render"
               tal:condition="batch"/>
    <h3 tal:condition="not:batch" i18n:translate="">
      There are none to add.
    </h3>
    <input type="hidden" id="nexturl" name="nexturl"
           tal:attributes="value view/nextURL" />
  </form>
</metal:block>
