<div i18n:domain="schooltool">
  <h3>
    <tal:block replace="context/title" />
    <a class="modify" title="Edit this term's information"
       tal:attributes="href string:${context/@@absolute_url}/@@edit.html"
       i18n:attributes="title"
       tal:condition="view/canModify">
      <img tal:attributes="src context/++resource++schooltool.skin.flourish/edit-icon.png"
           alt="Edit"
           i18n:attributes="alt" />
    </a>
  </h3>
  <table class="form-fields" tal:define="details nocall:view/details">
    <tbody>
      <tr tal:repeat="widget details/widgets/values">
        <td tal:content="widget/label" class="label"/>
        <td tal:content="structure widget/render" />
      </tr>
    </tbody>
  </table>
  <table class="schoolday-legend">
    <tr>
      <td class="legend" i18n:translate="">Legend:</td>
      <td class="schoolday" i18n:translate="">In Session</td>
      <td class="holiday" i18n:translate="">Not In Session</td>
      <td>&nbsp;</td>
    </tr>
  </table>

  <table class="schooldaymodel" tal:repeat="month view/calendar">
    <tr>
      <th class="month" colspan="8" i18n:translate="">
        <span tal:replace="month/month" i18n:name="month" /> <span tal:replace="month/year" i18n:name="year" />
      </th>
    </tr>
    <tr>
      <th class="day"></th>
      <th class="day" width="12%" i18n:translate="">Monday</th>
      <th class="day" width="12%" i18n:translate="">Tuesday</th>
      <th class="day" width="12%" i18n:translate="">Wednesday</th>
      <th class="day" width="12%" i18n:translate="">Thursday</th>
      <th class="day" width="12%" i18n:translate="">Friday</th>
      <th class="day" width="12%" i18n:translate="">Saturday</th>
      <th class="day" width="12%" i18n:translate="">Sunday</th>
    </tr>
    <tr tal:repeat="week month/weeks">
      <th class="week" i18n:translate="">
        Week <span tal:replace="week/number" i18n:name="week_number" />
      </th>
      <td tal:repeat="day week/days"
          tal:attributes="class day/class">
        <label tal:condition="day/number">
          <span tal:replace="day/number">N</span>
        </label>
      </td>
    </tr>
  </table>
  <h3><a tal:attributes="href string:${context/schooltool:app/@@absolute_url}/terms" i18n:translate="">Done</a></h3>
</div>
