<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="master.html" />

<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title>Quizz ${quizz.name}</title>
</head>

<body>
  <div id="getting_started">
    <h2>Quizz ${quizz.name}</h2>
    <p>Vos réponses</p>
    <ol>
      <li py:for="question in quizz.questions" class="getting_started">
        <p py:content="question.name"></p>
        <ul>
          <py:choose>
            <py:when test="question.id in repondues">
              <py:for each="proposition in question.propositions">
                <py:choose>
                  <li py:when="proposition.id in reponses" style="list-style: disc;">
                    ${proposition.name}
                  </li>
                  <li py:otherwise="" style="list-style: round;">
                    ${proposition.name}
                  </li>
                </py:choose>
              </py:for>
            </py:when>
            <py:otherwise>
              <li style="list-style: none;">
                <div py:replace="tmpl_context.form(child_args=dict(choix=dict(options=propositions[question.id])), value=dict(question=question.id, test=test.id))"></div>
              </li>
            </py:otherwise>
          </py:choose>
        </ul>
      </li>
    </ol>
  </div>
  <div class="clearingdiv" />
  <div py:if="termine" class="notice">
    <p>Note standard: ${test.note_standard}</p>
    <p>Note pondérée: ${test.note_ponderee}</p>
    <p>Note positive: ${test.note_ponderee_positive}</p>
    <p>Note négative: ${test.note_ponderee_negative}</p>
  </div>
</body>
</html>
