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
|
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/" py:strip="">
<body py:strip="">
<p py:if="req.user.admin" class="form_error">
<strong>Warning:</strong> Changing the subject or semester <em>will
break</em> any existing Subversion repositories or checkouts
associated with this offering. Be very careful.
</p>
<form class="verticalform" action="" method="post">
<div>
<py:if test="req.user.admin">
<div>
<label for="subject">Subject:</label>
<select id="subject" name="subject">
<option py:for="subject in subjects" value="${subject.short_name}">${subject.name}</option>
</select>
<span py:if="'subject' in errors" class="form_error">${errors.subject}.</span>
<a class="addaction" href="/subjects/+new">Create new subject</a>
</div>
<div>
<label for="semester">Semester:</label>
<select id="semester" name="semester">
<option py:for="semester in semesters" value="${semester.year}/${semester.semester}">${semester.year} semester ${semester.semester}</option>
</select>
<span py:if="'semester' in errors" class="form_error">${errors.semester}.</span>
<a class="addaction" href="/+semesters/+new">Create new semester</a>
</div>
</py:if>
<div>
<label for="description">Description:</label>
<textarea id="description" name="description" cols="80" rows="10"></textarea>
<span py:if="'description' in errors" class="form_error">${errors.description}.</span>
</div>
<div>
<label for="url">Home page URL:</label>
<input type="text" id="url" name="url" />
<span py:if="'url' in errors" class="form_error">${errors.url}.</span>
</div>
<div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
<div class="submit">
<input type="submit" value="${submit_button_label}" />
</div>
</div>
</form>
</body>
</html>
|