1451.1.5
by William Grant
Add an OfferingEdit view, for setting the description and URL. |
1 |
<html xmlns="http://www.w3.org/1999/xhtml" |
1537
by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings. |
2 |
xmlns:py="http://genshi.edgewall.org/" py:strip=""> |
3 |
<body py:strip=""> |
|
1591
by William Grant
Add warnings about moving/renaming subjects and offerings. |
4 |
<p py:if="req.user.admin" class="form_error"> |
5 |
<strong>Warning:</strong> Changing the subject or semester <em>will |
|
6 |
break</em> any existing Subversion repositories or checkouts |
|
7 |
associated with this offering. Be very careful. |
|
8 |
</p> |
|
1451.1.6
by William Grant
Prettify the form. |
9 |
<form class="verticalform" action="" method="post"> |
1451.1.5
by William Grant
Add an OfferingEdit view, for setting the description and URL. |
10 |
<div>
|
1537
by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings. |
11 |
<py:if test="req.user.admin"> |
12 |
<div>
|
|
13 |
<label for="subject">Subject:</label> |
|
1678.1.5
by Matt Giuca
Added new offering SubjectOfferingNew (+new-offering under a subject name). This is identical to +new-offering, but it is locked to a particular subject. The 'Create new offering' button on the subject page now links to this. |
14 |
<span py:if="force_subject">${force_subject.name} <input type="hidden" name="subject" value="${force_subject.short_name}" /></span> |
15 |
<py:if test="force_subject is None"> |
|
16 |
<select id="subject" name="subject"> |
|
17 |
<option py:for="subject in subjects" value="${subject.short_name}">${subject.name}</option> |
|
18 |
</select> |
|
19 |
<span py:if="'subject' in errors" class="form_error">${errors.subject}.</span> |
|
20 |
<a class="addaction" href="/subjects/+new">Create new subject</a> |
|
21 |
</py:if> |
|
1537
by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings. |
22 |
</div> |
23 |
<div>
|
|
24 |
<label for="semester">Semester:</label> |
|
25 |
<select id="semester" name="semester"> |
|
26 |
<option py:for="semester in semesters" value="${semester.year}/${semester.semester}">${semester.year} semester ${semester.semester}</option> |
|
27 |
</select> |
|
28 |
<span py:if="'semester' in errors" class="form_error">${errors.semester}.</span> |
|
1594
by William Grant
Add semester edit UI. |
29 |
<a class="addaction" href="/+semesters/+new">Create new semester</a> |
1537
by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings. |
30 |
</div> |
31 |
</py:if> |
|
1451.1.5
by William Grant
Add an OfferingEdit view, for setting the description and URL. |
32 |
<div>
|
33 |
<label for="description">Description:</label> |
|
1451.1.6
by William Grant
Prettify the form. |
34 |
<textarea id="description" name="description" cols="80" rows="10"></textarea> |
1451.1.5
by William Grant
Add an OfferingEdit view, for setting the description and URL. |
35 |
<span py:if="'description' in errors" class="form_error">${errors.description}.</span> |
36 |
</div> |
|
37 |
<div>
|
|
38 |
<label for="url">Home page URL:</label> |
|
39 |
<input type="text" id="url" name="url" /> |
|
40 |
<span py:if="'url' in errors" class="form_error">${errors.url}.</span> |
|
41 |
</div> |
|
1537
by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings. |
42 |
<div class="submit form_error" py:if="defined('error_value')" py:content="error_value" /> |
1451.1.6
by William Grant
Prettify the form. |
43 |
<div class="submit"> |
1537
by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings. |
44 |
<input type="submit" value="${submit_button_label}" /> |
1451.1.6
by William Grant
Prettify the form. |
45 |
</div> |
1451.1.5
by William Grant
Add an OfferingEdit view, for setting the description and URL. |
46 |
</div> |
47 |
</form> |
|
48 |
</body> |
|
49 |
</html> |