This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
tabellio.quiz/tabellio/quiz/form_templates/view_effectivequiz.pt

22 lines
1.0 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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:tal="http://xml.zope.org/namespaces/tal">
<body>
<div tal:condition="view/was_submitted" id="quiz-result">
<p tal:condition="view/is_correct" id="bravo">
Bravo, vous connaissez tout de nous !
</p>
<p tal:condition="not: view/is_correct" tal:define="score view/get_score">
Votre score :
<span tal:condition="python: score == 0">Aucune bonne réponse.</span>
<span tal:condition="python: score == 1">Une bonne réponse.</span>
<span tal:condition="python: score > 1"><span tal:replace="score"/> bonnes réponses.</span>
</p>
</div>
<form method="post" action="." tal:attributes="action context/absolute_url">
<metal:use use-macro="context/@@ploneform-macros/fields" />
<metal:use use-macro="context/@@ploneform-macros/actions" />
</form>
</body>
</html>