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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/exercise.html

Remove Request.title.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:xi="http://www.w3.org/2001/XInclude"
3
2
      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>
 
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>
8
7
    </py:if>
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(&quot;exercise${exerciseid}&quot;, '${filename}',
 
8
    <input id="input_resettext_${exercise.id}" type="hidden" value="${exercise.partial}" />
 
9
    <textarea id="textarea_${exercise.id}" class="exercisebox"
 
10
        onkeypress="return catch_textbox_input(&quot;${exercise.id}&quot;, '${filename}',
12
11
        event.keyCode)"
13
 
        onchange="set_saved_status(&quot;exercise${exerciseid}&quot;, '${filename}',
 
12
        onchange="set_saved_status(&quot;${exercise.id}&quot;, '${filename}',
14
13
        &quot;Save&quot;)"
15
 
        cols="80" rows="${rows}">
16
 
        ${exercisepartial}
17
 
    </textarea>
 
14
        cols="80" rows="${exercise.num_rows}">${exercisesave}</textarea>
18
15
    <div class="exercisebuttons">
19
 
      <input type="button" value="Saved" disabled="disabled" id="savebutton_exercise${exerciseid}"
20
 
          onclick="saveexercise(&quot;exercise${exerciseid}&quot;, '${filename}')"
 
16
      <input type="button" value="Saved" disabled="disabled" id="savebutton_${exercise.id}"
 
17
          onclick="saveexercise(&quot;${exercise.id}&quot;, '${filename}')"
21
18
          title="Save your solution to this exercise" />
22
 
      <input type="button" value="Reset" id="resetbutton_exercise${exerciseid}"
23
 
          onclick="resetexercise(&quot;exercise${exerciseid}&quot;, '${filename}')"
 
19
      <input type="button" value="Reset" id="resetbutton_${exercise.id}"
 
20
          onclick="resetexercise(&quot;${exercise.id}&quot;, '${filename}')"
24
21
          title="Reload the original partial solution for this exercise" />
25
22
      <input type="button" value="Run"
26
 
          onclick="runexercise(&quot;exercise${exerciseid}&quot;, '${filename}')"
 
23
          onclick="runexercise(&quot;${exercise.id}&quot;, '${filename}')"
27
24
          title="Run this program in the console" />
28
25
      <input type="button" value="Submit"
29
 
              id="submitbutton_exercise${exerciseid}"
30
 
              onclick="submitexercise(&quot;exercise${exerciseid}&quot;, '${filename}')"
 
26
              id="submitbutton_${exercise.id}"
 
27
              onclick="submitexercise(&quot;${exercise.id}&quot;, '${filename}')"
31
28
              title="Submit this solution for evaluation" />
32
29
    </div>
33
30
    <div class="testoutput">
34
31
    </div>
35
32
    <div class="problem_summary">
36
33
      <ul>
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>.
 
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>.
40
37
        </li>
41
38
      </ul>
42
39
    </div>
44
41
    <div class="attempthistory">
45
42
      <p>
46
43
        <a title="Click to view previous submissions you have made for this exercise" 
47
 
              onclick="open_previous(&quot;exercise${exerciseid}&quot;, '${filename}')">
 
44
              onclick="open_previous(&quot;${exercise.id}&quot;, '${filename}')">
48
45
          View previous attempts
49
46
        </a>
50
47
      </p>
51
48
    <div style="display: none">
52
49
      <h3>Previous attempts</h3>
53
50
        <p>
54
 
          <a title="Close the previous attempts" onclick="close_previous(&quot;exercise${exerciseid}&quot;)">
 
51
          <a title="Close the previous attempts" onclick="close_previous(&quot;${exercise.id}&quot;)">
55
52
            Close attempts
56
53
          </a>
57
54
        </p>
58
 
        <p>
 
55
        <p class="attemptslist" style="display: none">
59
56
          <select title="Select an attempt's time stamp from the list">
60
57
            <option></option>
61
58
          </select>
62
59
          <input type="button" value="View"
63
 
              onclick="select_attempt(&quot;exercise${exerciseid}&quot;, '${filename})'" />
 
60
              onclick="select_attempt(&quot;${exercise.id}&quot;, '${filename}')" />
 
61
        </p>
 
62
        <p class="noattempts" style="display: none">
 
63
          No attempts have been made for this exercise.
64
64
        </p>
65
65
        <p>
66
 
          <textarea readonly="readonly" class="exercisebox" cols="80" rows="${rows}"
 
66
          <textarea readonly="readonly" class="exercisebox" cols="80" rows="${exercise.num_rows}"
67
67
              title="You submitted this code on a previous attempt">
68
68
          </textarea>
69
69
        </p>