<div i18n:domain="schooltool">

  <div tal:define="term view/term">
    <div tal:condition="term"
         tal:content="structure term/schooltool:content/boundaries">
    </div>
    <div i18n:translate="">Using timetable:
      <strong i18n:name="timetable"
              tal:content="structure context/timetable/schooltool:content/title" />
    </div>
  </div>


  <div class="status" tal:condition="view/status">
    <ul class="errors"
        tal:condition="view/widgets/errors"
        metal:define-macro="form-errors">
      <li tal:repeat="error view/widgets/errors">
        <tal:block condition="error/widget">
          <span tal:replace="error/widget/label" />:
        </tal:block>
        <span tal:replace="structure error/render">Error Type</span>
      </li>
    </ul>
  </div>

<form action="." method="post" enctype="multipart/form-data"
      metal:define-macro="form"
      tal:attributes="method view/method;
                      enctype view/enctype;
                      acceptCharset view/acceptCharset;
                      accept view/accept;
                      action view/action;
                      name view/name;
                      id view/id">
<fieldset>
  <legend>
    <span i18n:translate="">Schedule</span>
  </legend>
  <div metal:use-macro="macro:widget-rows" />
</fieldset>

<fieldset>
  <legend>
    <span i18n:translate="">Scheduled periods</span>
  </legend>

  <div tal:replace="structure context/timetable/periods/schooltool:content/table"></div>
</fieldset>

  <div metal:use-macro="macro:form-buttons">
  </div>

</form>

</div>
