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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/templates/exercise_delete.html

  • Committer: Nick Chadwick
  • Date: 2009-03-09 00:15:21 UTC
  • mfrom: (1099.6.4 new-dispatch)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090309001521-dffcygyuyvs2cap0
finished the exercise-ui. It is now ready to be merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html xmlns="http://www.w3.org/1999/xhtml"
 
2
      xmlns:py="http://genshi.edgewall.org/">
 
3
  <head>
 
4
    <title>Delete Exercise - ${exercise.id}</title>
 
5
    <!-- These let the javascript know which worksheet is open -->
 
6
    <script type="text/javascript">
 
7
        exercise = '${exercise.id}';
 
8
    </script>
 
9
  </head>
 
10
  <body>
 
11
    <h1>Delete Exercise - ${exercise.id}</h1>
 
12
    <div id="ivle_padding">
 
13
    <py:if test="deleted">
 
14
      <h3>Exercise Deleted</h3>
 
15
      <a href="/+exercises">Return to Exercise List</a>
 
16
    </py:if>
 
17
    <py:if test="deleted == False">
 
18
      <py:if test="hasworksheets == False">
 
19
        <h3>Identifier:</h3>
 
20
        <p>${exercise.id}</p>
 
21
        <h3>Name:</h3>
 
22
        <p>${exercise.name}</p>
 
23
        <p>Are you sure you wish to delete this exercise?</p>
 
24
        <form action="${path}" method="POST">
 
25
          <input type="submit" value="Delete"/>
 
26
        </form>
 
27
      </py:if>
 
28
      <py:if test="hasworksheets">
 
29
          <h3>Denied</h3>
 
30
          <p>You cannot delete this exercise, as it has been associated with a worksheet.</p>
 
31
      </py:if>
 
32
    </py:if>
 
33
    </div>
 
34
  </body>
 
35
</html>