<table class="timetable"
    xmlns:tal="http://xml.zope.org/namespaces/tal"
    xmlns:metal="http://xml.zope.org/namespaces/metal"
    tal:define="table view/makeTable">

  <tr>
    <th tal:repeat="title table/header" tal:content="title"
        tal:attributes="width table/col_width"
        colspan="2" class="day">Day N</th>
  </tr>

  <tr tal:repeat="row table/rows">
  <tal:block repeat="col row">
    <tal:block condition="col">
      <th tal:attributes="width table/th_width"
          tal:content="structure col/title"
          class="period"
          >1</th>
      <td tal:attributes="width table/td_width"
          tal:content='structure col/value'
          class="activity">
      </td>
    </tal:block>
    <tal:block tal:condition="not: col">
      <td tal:attributes="width table/col_width"
          class="activity" colspan="2"></td>
    </tal:block>
  </tal:block>
  </tr>

</table>

