1
<html xmlns="http://www.w3.org/1999/xhtml"
2
xmlns:xi="http://www.w3.org/2001/XInclude"
3
xmlns:py="http://genshi.edgewall.org/" py:strip="">
4
<div class="exercise" id="exercise${exerciseid}">
5
<p><b>Exercise:</b> ${exercisename}</p>
6
<py:if test="exercisedesc is not None">
7
<div>${exercisedesc}</div>
9
<input id="input_resettext_exercise${exerciseid}" type="hidden" value="${exercisepartial_backup}" />
10
<textarea id="textarea_exercise${exerciseid}" class="exercisebox"
11
onkeypress="return catch_textbox_input("exercise${exerciseid}", '${filename}',
13
onchange="set_saved_status("exercise${exerciseid}", '${filename}',
15
cols="80" rows="${rows}">
18
<div class="exercisebuttons">
19
<input type="button" value="Saved" disabled="disabled" id="savebutton_exercise${exerciseid}"
20
onclick="saveexercise("exercise${exerciseid}", '${filename}')"
21
title="Save your solution to this exercise" />
22
<input type="button" value="Reset" id="resetbutton_exercise${exerciseid}"
23
onclick="resetexercise("exercise${exerciseid}", '${filename}')"
24
title="Reload the original partial solution for this exercise" />
25
<input type="button" value="Run"
26
onclick="runexercise("exercise${exerciseid}", '${filename}')"
27
title="Run this program in the console" />
28
<input type="button" value="Submit"
29
id="submitbutton_exercise${exerciseid}"
30
onclick="submitexercise("exercise${exerciseid}", '${filename}')"
31
title="Submit this solution for evaluation" />
33
<div class="testoutput">
35
<div class="problem_summary">
37
<li id="summaryli_exercise${exerciseid}" class="${complete}">
38
<b><span id="summarycomplete_exercise${exerciseid}">${complete}</span>.</b>
39
Attempts: <span id="summaryattempts_exercise${exerciseid}">${attempts}</span>.
43
<!-- This is filled in by javascript when the page loads -->
44
<div class="attempthistory">
46
<a title="Click to view previous submissions you have made for this exercise"
47
onclick="open_previous("exercise${exerciseid}", '${filename}')">
48
View previous attempts
51
<div style="display: none">
52
<h3>Previous attempts</h3>
54
<a title="Close the previous attempts" onclick="close_previous("exercise${exerciseid}")">
59
<select title="Select an attempt's time stamp from the list">
62
<input type="button" value="View"
63
onclick="select_attempt("exercise${exerciseid}", '${filename})'" />
66
<textarea readonly="readonly" class="exercisebox" cols="80" rows="${rows}"
67
title="You submitted this code on a previous attempt">