templates/display_question.html
changeset 28 456b7b9e3d13
parent 27 6233cf13fc12
child 29 ea1c0110e989
equal deleted inserted replaced
27:6233cf13fc12 28:456b7b9e3d13
    17         }
    17         }
    18 		setTimeout("dec_counter()", 1000);
    18 		setTimeout("dec_counter()", 1000);
    19     </script>
    19     </script>
    20 {% endblock %}
    20 {% endblock %}
    21 {% block content %}
    21 {% block content %}
       
    22 {{question.description}}	<br />
       
    23 {% if question.code %}
       
    24 <fieldset><legend>Code</legend>
       
    25 <pre>{{question.code}}</pre></fieldset>
       
    26 {% endif %}
       
    27 
    22 <form action="" method="post" id="queform">
    28 <form action="" method="post" id="queform">
    23 		{{question.description}}	<br />
       
    24 		<textarea name="answer"></textarea><br />
    29 		<textarea name="answer"></textarea><br />
    25 		<input type="button" value="Time left: {{question.time_limit}} secs" id="time_left">
    30 		<input type="button" value="Time left: {{question.time_limit}} secs" id="time_left">
    26 </form>
    31 </form>
    27 {% endblock %}
    32 {% endblock %}