<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html metal:use-macro="container/page_macro/macros/master_page">

<span metal:fill-slot="main_content_slot">
 <h2 i18n:translate="">L_it_quiz_responses</h2>
 <form action="kommentaarideSalvestusLeht">
 <table>
    <tr>
       <th i18n:translate="">L_it_anc_question</th>
       <th i18n:translate="">L_it_anc_user_answer</th>
       <th i18n:translate="">L_it_anc_teacher_answer</th>
       <th i18n:translate="">L_it_anc_automatic_points</th>
       <th i18n:translate="">L_it_anc_nominal_points</th>
       <th i18n:translate="">L_it_anc_teacher_points</th>
       <th i18n:translate="">L_it_anc_teachers_comment</th>
       <th i18n:translate="">L_it_anc_point_reading</th>
    </tr>
    <tr tal:repeat="x here/ylesanded">
       <td tal:content="structure python:x.esitlusHTML(request)"></td>
       <td tal:content="structure python:x.pakutudHTML(request)"></td>
       <td tal:content="structure python:x.tegelikHTML(request)"></td>
       <td tal:content="x/automaatPunkte"></td>
       <td tal:content="x/normPunktid"></td>
       <td>
          <input type="text" tal:attributes="value python:test(x.annaOpetajaPunktid(), x.annaOpetajaPunktid(), test(x.kasPunktiArvutus(), x.automaatPunkte(), ''));
              name python:'opetajapunktid'+x.id" size="5" />
       </td>
       <td>
          <input type="text" tal:attributes="name python:'opetajakommentaar'+x.id; value python:x.annaOpetajaKommentaar()" />
       </td>
      
       <td tal:content="python: x.kasPunktiArvutus()"></td>
       <td tal:content="structure python:x.opetajaKommentaarHTML(request)"></td>
    </tr>
 </table>
 <table>
  <tr>
   <td i18n:translate="">L_it_totalpoints</td>
   <td tal:content="python:here.punktiArvutusHTML(request)"></td>
  </tr>
  <tr>
    <td i18n:translate="">L_it_an_comment</td>
    <td tal:content="python:here.koguKommentaarHTML(request)"></td>
  </tr>
  </table>

  <span tal:content="python:here.punktiArvutusHTML(request)"></span>
  <table>
     <tr>
        <td i18n:translate="">L_it_anc_comment_to_whole_answer</td>
        <td><textarea name="koguKommentaar" tal:content="here/annaKoguKommentaar"></textarea></td>
     </tr>
  </table>
  <input type="submit" value="L_it_anc_save" i18n:attributes="value"/>
  </form>
</span>
 
</html>
