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

« back to all changes in this revision

Viewing changes to www/apps/tutorial/exercise.html

ivle.webapp.testing: Add, with fake request and user.
ivle.webapp.base.test: Add! Test the JSONRESTView, using the new mocks.

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"
2
3
      xmlns:py="http://genshi.edgewall.org/" py:strip="">
3
4
  <div class="exercise" id="exercise${exerciseid}">
4
5
    <p><b>Exercise:</b> ${exercisename}</p>
11
12
        event.keyCode)"
12
13
        onchange="set_saved_status(&quot;exercise${exerciseid}&quot;, '${filename}',
13
14
        &quot;Save&quot;)"
14
 
        cols="80" rows="${rows}">${exercisepartial}</textarea>
 
15
        cols="80" rows="${rows}">
 
16
        ${exercisepartial}
 
17
    </textarea>
15
18
    <div class="exercisebuttons">
16
19
      <input type="button" value="Saved" disabled="disabled" id="savebutton_exercise${exerciseid}"
17
20
          onclick="saveexercise(&quot;exercise${exerciseid}&quot;, '${filename}')"
31
34
    </div>
32
35
    <div class="problem_summary">
33
36
      <ul>
34
 
        <li id="summaryli_exercise${exerciseid}" class="${complete_class}">
 
37
        <li id="summaryli_exercise${exerciseid}" class="${complete}">
35
38
          <b><span id="summarycomplete_exercise${exerciseid}">${complete}</span>.</b>
36
39
            Attempts: <span id="summaryattempts_exercise${exerciseid}">${attempts}</span>.
37
40
        </li>
52
55
            Close attempts
53
56
          </a>
54
57
        </p>
55
 
        <p class="attemptslist" style="display: none">
 
58
        <p>
56
59
          <select title="Select an attempt's time stamp from the list">
57
60
            <option></option>
58
61
          </select>
59
62
          <input type="button" value="View"
60
 
              onclick="select_attempt(&quot;exercise${exerciseid}&quot;, '${filename}')" />
61
 
        </p>
62
 
        <p class="noattempts" style="display: none">
63
 
          No attempts have been made for this exercise.
 
63
              onclick="select_attempt(&quot;exercise${exerciseid}&quot;, '${filename})'" />
64
64
        </p>
65
65
        <p>
66
66
          <textarea readonly="readonly" class="exercisebox" cols="80" rows="${rows}"