1
<html xmlns="http://www.w3.org/1999/xhtml"
2
xmlns:py="http://genshi.edgewall.org/">
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}';
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>
17
<py:if test="deleted == False">
18
<py:if test="hasworksheets == False">
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"/>
28
<py:if test="hasworksheets">
30
<p>You cannot delete this exercise, as it has been associated with a worksheet.</p>