<tal:tag condition="view/update" />
<html metal:use-macro="context/@@standard_macros/page"
      i18n:domain="schooltool">
<head>
  <title metal:fill-slot="title" i18n:translate="">
    Gradebook
  </title>
</head>
<body>
<div metal:fill-slot="body">

  <h3 i18n:translate="">
    Grade <span tal:replace="view/student/title" i18n:name="name" />
  </h3>
  <br />

  <div class="message"
       tal:condition="view/message"
       tal:content="view/message">
    Message
  </div>

  <form tal:attributes="action request/URL"
        method="post" enctype="multipart/form-data">

    <input type="hidden" name="student" value=""
           tal:attributes="value request/student" />

    <table class="schooltool_gradebook">
      <tr>
       <th class="cell header" i18n:translate="">Activity</th>
       <th class="cell header" tal:repeat="activity view/activities">
         <label for=""
                tal:attributes="for activity/hash"
                tal:content="activity/title">
           HW 1
         </label>
         <div tal:content="activity/max" />
       </th>
     </tr>
     <tr>
       <td class="cell odd">Grade</td>
       <td class="cell odd" tal:repeat="grade view/grades">
         <input class="data" type="text" name="" value="" size="4"
             tal:attributes="name grade/activity;
                             id grade/activity;
                             value grade/value" />
       </td>
     </tr>
    </table>

    <div class="controls">
      <tal:block metal:use-macro="view/@@standard_macros/update-button" />
      <tal:block metal:use-macro="view/@@standard_macros/cancel-button" />
    </div>

  </form>

</div>
</body>
</html>
