~azzar1/unity/add-show-desktop-key

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">
1676 by David Coles
exercises: Show error for bad reStructuredText rather than crashing
6
      <div id="description">${description}</div>
7
    </py:if>
8
    <py:if test="error">
9
      <div class="error">${error}</div>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
10
    </py:if>
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
11
    <input id="input_resettext_${exercise.id}" type="hidden" value="${exercise.partial}" />
12
    <textarea id="textarea_${exercise.id}" class="exercisebox"
1099.1.180 by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively
13
        onkeypress="return catch_textbox_input(&quot;${exercise.id}&quot;, '${exercise.id}',
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
14
        event.keyCode)"
1099.1.180 by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively
15
        onchange="set_saved_status(&quot;${exercise.id}&quot;, '${exercise.id}',
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
16
        &quot;Save&quot;)"
1099.1.150 by Nick Chadwick
Modified worksheets to properly link attempts to worksheets and
17
        cols="80" rows="${exercise.num_rows}">${exercisesave}</textarea>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
18
    <div class="exercisebuttons">
1394.2.3 by William Grant
Only show exercise save/reset buttons if we are in a worksheet, as otherwise we can store no state.
19
      <py:if test="worksheet">
20
        <input type="button" value="Saved" disabled="disabled" id="savebutton_${exercise.id}"
21
            onclick="saveexercise(&quot;${exercise.id}&quot;, '${exercise.id}')"
22
            title="Save your solution to this exercise" />
23
        <input type="button" value="Reset" id="resetbutton_${exercise.id}"
24
            onclick="resetexercise(&quot;${exercise.id}&quot;, '${exercise.id}')"
25
            title="Reload the original partial solution for this exercise" />
26
      </py:if>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
27
      <input type="button" value="Run"
1099.1.180 by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively
28
          onclick="runexercise(&quot;${exercise.id}&quot;, '${exercise.id}')"
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
29
          title="Run this program in the console" />
30
      <input type="button" value="Submit"
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
31
              id="submitbutton_${exercise.id}"
1099.1.180 by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively
32
              onclick="submitexercise(&quot;${exercise.id}&quot;, '${exercise.id}')"
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
33
              title="Submit this solution for evaluation" />
34
    </div>
1741 by Matt Giuca
Exercise display: Shows a warning if the worksheet cutoff has passed for this subject, that it will not count towards your marks.
35
    <p class="form_error" py:if="worksheet is not None and worksheet.offering.has_worksheet_cutoff_passed(req.user)">
36
      <strong>Note:</strong> The worksheets for this subject have closed.
37
      Future submissions will not count towards your marks.</p>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
38
    <div class="testoutput">
39
    </div>
1394.2.10 by William Grant
Don't present the problem summary (completed and attempt count) when we are outside a worksheet.
40
    <div py:if="worksheet" class="problem_summary">
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
41
      <ul>
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
42
        <li id="summaryli_${exercise.id}" class="${complete_class}">
43
          <b><span id="summarycomplete_${exercise.id}">${complete}</span>.</b>
44
            Attempts: <span id="summaryattempts_${exercise.id}">${attempts}</span>.
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
45
        </li>
46
      </ul>
47
    </div>
48
    <!-- This is filled in by javascript when the page loads -->
1394.2.5 by William Grant
Don't deal with previous attempts if not running in a worksheet -- there are none.
49
    <div py:if="worksheet" class="attempthistory">
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
50
      <p>
51
        <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
52
              onclick="open_previous(&quot;${exercise.id}&quot;, '${exercise.id}')">
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
53
          View previous attempts
54
        </a>
55
      </p>
56
    <div style="display: none">
57
      <h3>Previous attempts</h3>
58
        <p>
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
59
          <a title="Close the previous attempts" onclick="close_previous(&quot;${exercise.id}&quot;)">
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
60
            Close attempts
61
          </a>
62
        </p>
1099.1.98 by Matt Giuca
Tutorial: Added a message, "no attempts have been made to this exercise",
63
        <p class="attemptslist" style="display: none">
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
64
          <select title="Select an attempt's time stamp from the list">
65
            <option></option>
66
          </select>
67
          <input type="button" value="View"
1099.1.180 by Nick Chadwick
This commit changes the tutorial service, which now almost exclusively
68
              onclick="select_attempt(&quot;${exercise.id}&quot;, '${exercise.id}')" />
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
69
        </p>
1099.1.98 by Matt Giuca
Tutorial: Added a message, "no attempts have been made to this exercise",
70
        <p class="noattempts" style="display: none">
71
          No attempts have been made for this exercise.
72
        </p>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
73
        <p>
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
74
          <textarea readonly="readonly" class="exercisebox" cols="80" rows="${exercise.num_rows}"
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
75
              title="You submitted this code on a previous attempt">
76
          </textarea>
77
        </p>
78
      </div>
79
    </div>
80
  </div>
81
</html>