<div i18n:domain="schooltool" tal:define="rows view/table">
  <table tal:condition="rows">
    <thead>
      <tr>
        <th i18n:translate="">Title</th>
        <th i18n:translate="">ID</th>
        <th i18n:translate="">Type</th>
        <th i18n:translate="">Required</th>
        <th i18n:translate="">Limited</th>
        <th tal:repeat="group view/groups"
            tal:content="group" />
      </tr>
    </thead>
    <tr tal:repeat="row rows">
      <td>
        <a tal:content="row/title" tal:attributes="href row/url" />
      </td>
      <td tal:content="row/id" />
      <td tal:content="row/type" />
      <td>
        <span tal:condition="row/required" class="ui-icon ui-icon-check ui-icon-center"></span>
      </td>
      <td>
        <span tal:condition="row/limited" class="ui-icon ui-icon-check ui-icon-center"></span>
      </td>
      <td tal:repeat="group row/groups">
        <span tal:condition="group" class="ui-icon ui-icon-check ui-icon-center"></span>
      </td>
    </tr>
  </table>
  <h3 i18n:translate="" tal:condition="not:rows">There are none.</h3>
  <h3>
    <a tal:attributes="href  string:${context/schooltool:app/@@absolute_url}/manage"
       i18n:translate="">Done</a>
  </h3>
</div>

