1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
1 |
<html xmlns="http://www.w3.org/1999/xhtml" |
2 |
xmlns:py="http://genshi.edgewall.org/" py:strip=""> |
|
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
3 |
<div class="exercise" id="${exercise.id}"> |
4 |
<p><b>Exercise:</b> ${exercise.name}</p> |
|
5 |
<py:if test="description is not None"> |
|
6 |
<div>${description}</div> |
|
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
7 |
</py:if> |
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
8 |
<input id="input_resettext_${exercise.id}" type="hidden" value="${exercise.partial}" /> |
9 |
<textarea id="textarea_${exercise.id}" class="exercisebox" |
|
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
10 |
onkeypress="return catch_textbox_input("${exercise.id}", '${exercise.id}', |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
11 |
event.keyCode)"
|
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
12 |
onchange="set_saved_status("${exercise.id}", '${exercise.id}', |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
13 |
"Save")"
|
1099.1.150
by Nick Chadwick
Modified worksheets to properly link attempts to worksheets and |
14 |
cols="80" rows="${exercise.num_rows}">${exercisesave}</textarea> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
15 |
<div class="exercisebuttons"> |
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
16 |
<input type="button" value="Saved" disabled="disabled" id="savebutton_${exercise.id}" |
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
17 |
onclick="saveexercise("${exercise.id}", '${exercise.id}')" |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
18 |
title="Save your solution to this exercise" /> |
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
19 |
<input type="button" value="Reset" id="resetbutton_${exercise.id}" |
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
20 |
onclick="resetexercise("${exercise.id}", '${exercise.id}')" |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
21 |
title="Reload the original partial solution for this exercise" /> |
22 |
<input type="button" value="Run" |
|
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
23 |
onclick="runexercise("${exercise.id}", '${exercise.id}')" |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
24 |
title="Run this program in the console" /> |
25 |
<input type="button" value="Submit" |
|
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
26 |
id="submitbutton_${exercise.id}" |
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
27 |
onclick="submitexercise("${exercise.id}", '${exercise.id}')" |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
28 |
title="Submit this solution for evaluation" /> |
29 |
</div> |
|
30 |
<div class="testoutput"> |
|
31 |
</div> |
|
32 |
<div class="problem_summary"> |
|
33 |
<ul>
|
|
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
34 |
<li id="summaryli_${exercise.id}" class="${complete_class}"> |
35 |
<b><span id="summarycomplete_${exercise.id}">${complete}</span>.</b> |
|
36 |
Attempts: <span id="summaryattempts_${exercise.id}">${attempts}</span>. |
|
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
37 |
</li> |
38 |
</ul> |
|
39 |
</div> |
|
40 |
<!-- This is filled in by javascript when the page loads -->
|
|
41 |
<div class="attempthistory"> |
|
42 |
<p>
|
|
43 |
<a title="Click to view previous submissions you have made for this exercise" |
|
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
44 |
onclick="open_previous("${exercise.id}", '${exercise.id}')"> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
45 |
View previous attempts |
46 |
</a> |
|
47 |
</p> |
|
48 |
<div style="display: none"> |
|
49 |
<h3>Previous attempts</h3> |
|
50 |
<p>
|
|
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
51 |
<a title="Close the previous attempts" onclick="close_previous("${exercise.id}")"> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
52 |
Close attempts |
53 |
</a> |
|
54 |
</p> |
|
1099.1.98
by Matt Giuca
Tutorial: Added a message, "no attempts have been made to this exercise", |
55 |
<p class="attemptslist" style="display: none"> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
56 |
<select title="Select an attempt's time stamp from the list"> |
57 |
<option></option> |
|
58 |
</select> |
|
59 |
<input type="button" value="View" |
|
1099.1.180
by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively |
60 |
onclick="select_attempt("${exercise.id}", '${exercise.id}')" /> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
61 |
</p> |
1099.1.98
by Matt Giuca
Tutorial: Added a message, "no attempts have been made to this exercise", |
62 |
<p class="noattempts" style="display: none"> |
63 |
No attempts have been made for this exercise. |
|
64 |
</p> |
|
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
65 |
<p>
|
1099.1.141
by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file. |
66 |
<textarea readonly="readonly" class="exercisebox" cols="80" rows="${exercise.num_rows}" |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
67 |
title="You submitted this code on a previous attempt"> |
68 |
</textarea> |
|
69 |
</p> |
|
70 |
</div> |
|
71 |
</div> |
|
72 |
</div> |
|
73 |
</html> |