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

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>
14
            <select id="subject" name="subject">
15
              <option py:for="subject in subjects" value="${subject.short_name}">${subject.name}</option>
16
            </select>
17
            <span py:if="'subject' in errors" class="form_error">${errors.subject}.</span>
1597 by William Grant
Add a 'Create new subject' link to the offering add/edit form.
18
            <a class="addaction" href="/subjects/+new">Create new subject</a>
1537 by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings.
19
          </div>
20
          <div>
21
            <label for="semester">Semester:</label>
22
            <select id="semester" name="semester">
23
              <option py:for="semester in semesters" value="${semester.year}/${semester.semester}">${semester.year} semester ${semester.semester}</option>
24
            </select>
25
            <span py:if="'semester' in errors" class="form_error">${errors.semester}.</span>
1594 by William Grant
Add semester edit UI.
26
            <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.
27
          </div>
28
          </py:if>
1451.1.5 by William Grant
Add an OfferingEdit view, for setting the description and URL.
29
          <div>
30
            <label for="description">Description:</label>
1451.1.6 by William Grant
Prettify the form.
31
            <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.
32
            <span py:if="'description' in errors" class="form_error">${errors.description}.</span>
33
          </div>
34
          <div>
35
            <label for="url">Home page URL:</label>
36
            <input type="text" id="url" name="url" />
37
            <span py:if="'url' in errors" class="form_error">${errors.url}.</span>
38
          </div>
1537 by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings.
39
          <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
1451.1.6 by William Grant
Prettify the form.
40
          <div class="submit">
1537 by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings.
41
            <input type="submit" value="${submit_button_label}" />
1451.1.6 by William Grant
Prettify the form.
42
          </div>
1451.1.5 by William Grant
Add an OfferingEdit view, for setting the description and URL.
43
        </div>
44
      </form>
45
  </body>
46
</html>