<div i18n:domain="schooltool">
  <h2>
    <metal:block i18n:translate="">Access Rights</metal:block>
    <a class="modify" href="" title="Edit the access rights"
       tal:attributes="href string:${context/@@absolute_url}/access_control.html"
       i18n:attributes="title">
      <img tal:attributes="src context/++resource++schooltool.skin.flourish/edit-icon.png"
           alt="Edit"
           i18n:attributes="alt" />
    </a>
  </h2>
  <table>
    <tbody>
      <tr tal:repeat="item view/groups">
        <td>
          <a tal:attributes="href string:#group_${item/group/__name__}"
             tal:content="item/group/title" />
        </td>
      </tr>
    </tbody>
  </table>
  <tal:block repeat="item view/groups">
    <div class="info-block">
      <h2>
        <a tal:attributes="name string:group_${item/group/__name__}"
           tal:content="item/group/title" />
      </h2>
      <p tal:content="item/group/description"
         tal:condition="item/group/description"/>
      <tal:block repeat="action item/actions">
        <h3 tal:content="action/action/title" />
        <p tal:content="action/action/description"
           tal:condition="action/action/description" />
        <ul>
          <tal:block repeat="snippets action/crowds">
            <li tal:repeat="description snippets"
                tal:content="structure description"
                class="item" />
          </tal:block>
        </ul>
      </tal:block>
      <p>
        <a href="#">Back to top</a>
      </p>
    </div>
  </tal:block>
  <div class="info-block">
    <h2 i18n:translate="">Legend</h2>
    <tal:block repeat="legend view/legends">
      <a tal:attributes="name legend/href">
        <h3>
          [<tal:block content="legend/idx" />]
          <tal:block content="legend/description" />
        </h3>
      </a>
      <ul>
        <li tal:repeat="description legend/snippets"
            tal:content="structure description"
            class="item" />
      </ul>
    </tal:block>
  </div>
  <p>
    <a href="#">Back to top</a>
  </p>
  <h3>
    <a tal:attributes="href view/done_link" i18n:translate="">
      Done
    </a>
  </h3>
</div>
