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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/">
  <head>
    <title>Delete Exercise - ${exercise.id}</title>
    <!-- These let the javascript know which worksheet is open -->
    <script type="text/javascript">
        exercise = '${exercise.id}';
    </script>
  </head>
  <body>
    <h1>Delete Exercise - ${exercise.id}</h1>
    <div id="ivle_padding">
    <py:choose test="method">
      <py:when test="'POST'">
        <py:choose test="deleted">
          <py:when test="True">
            <h3>Exercise Deleted</h3>
            <a href="/+exercises">Return to Exercise List</a>
          </py:when>
          <py:otherwise>
            <h3>Error Deleting Exercise</h3>
            <p>The specified exercise could not be deleted. This could be because it is linked to one or more worksheets.</p>
          </py:otherwise>
        </py:choose>
      </py:when>
      <py:otherwise>
        <py:choose test="has_worksheets">
          <py:when test="True">
            <h3>Denied</h3>
            <p>You cannot delete this exercise, as it has been associated with a worksheet.</p>
          </py:when>
          <py:otherwise>
            <h3>Identifier:</h3>
            <p>${exercise.id}</p>
            <h3>Name:</h3>
            <p>${exercise.name}</p>
            <p>Are you sure you wish to delete this exercise?</p>
            <form action="${path}" method="POST">
              <input type="submit" value="Delete"/>
            </form>
          </py:otherwise>
        </py:choose>
      </py:otherwise>
    </py:choose>
    </div>
  </body>
</html>