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:choose test="method">
14
<py:when test="'POST'">
15
<py:choose test="deleted">
17
<h3>Exercise Deleted</h3>
18
<a href="/+exercises">Return to Exercise List</a>
21
<h3>Error Deleting Exercise</h3>
22
<p>The specified exercise could not be deleted. This could be because it is linked to one or more worksheets.</p>
27
<py:choose test="has_worksheets">
30
<p>You cannot delete this exercise, as it has been associated with a worksheet.</p>
36
<p>${exercise.name}</p>
37
<p>Are you sure you wish to delete this exercise?</p>
38
<form action="${path}" method="POST">
39
<input type="submit" value="Delete"/>