<tal:block i18n:domain="schooltool.cando"
           tal:define="items view/items">
  <h3>
    <tal:block replace="context/title" />
    <a class="modify" href="" title="Edit this Document"
       tal:attributes="href view/edit_url"
       i18n:attributes="title"
       tal:condition="view/can_edit">
      <img tal:attributes="src context/++resource++schooltool.skin.flourish/edit-icon.png"
           alt="Edit"
           i18n:attributes="alt" />
    </a>
  </h3>

  <table class="form-fields">
    <tbody>
      <tr tal:repeat="widget view/widgets/values">
        <td tal:content="widget/label" class="label"/>
        <td tal:content="structure widget/render" />
      </tr>
    </tbody>
  </table>

  <h3>
    <tal:block content="view/legend" />
  </h3>
  <table class="data" i18n:domain="schooltool">
    <thead>
      <tr>
        <th>
          <span i18n:translate="">Label</span>
        </th>
        <th>
          <span i18n:translate="">Title</span>
        </th>
      </tr>
    </thead>
    <tbody>
      <tr tal:repeat="item items">
        <td>
          <span tal:content="item/obj/label" />
        </td>
        <td>
          <a tal:attributes="href item/url"
             tal:content="item/obj/title" />
        </td>
      </tr>
    </tbody>
  </table>
  <h3 tal:condition="not: items">There are none.</h3>

  <h3>
    <a tal:attributes="href view/done_link"
       i18n:translate="">Done</a>
  </h3>
</tal:block>
