<div metal:use-macro="macro:form" i18n:domain="schooltool">

  <div metal:fill-slot="main">
    <tal:block repeat="widget view/widgets/values">
      <div class="widget" tal:content="structure widget/render">
      </div>
    </tal:block>

    <fieldset tal:condition="view/addedPersons">
      <legend><span i18n:translate="">Added persons</span></legend>
      <p tal:repeat="person view/addedPersons">
        <span tal:content="person/username" />
        <a tal:replace="structure person/schooltool:content/link" />
      </p>
    </fieldset>

    <tal:block content="structure view/addform/render" />

  </div>

  <div metal:fill-slot="buttons">
    <div class="buttons">
      <tal:block condition="view/addform/actions|nothing">
        <input tal:repeat="action view/addform/actions/values"
               tal:replace="structure action/render"
               />
      </tal:block>
      <tal:block condition="view/actions|nothing">
        <input tal:repeat="action view/actions/values"
               tal:replace="structure action/render"
               />
      </tal:block>
    </div>
  </div>

</div>
