~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="">
1451.1.6 by William Grant
Prettify the form.
4
      <form class="verticalform" action="" method="post">
1451.1.5 by William Grant
Add an OfferingEdit view, for setting the description and URL.
5
        <div>
1537 by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings.
6
          <py:if test="req.user.admin">
7
          <div>
8
            <label for="subject">Subject:</label>
9
            <select id="subject" name="subject">
10
              <option py:for="subject in subjects" value="${subject.short_name}">${subject.name}</option>
11
            </select>
12
            <span py:if="'subject' in errors" class="form_error">${errors.subject}.</span>
13
          </div>
14
          <div>
15
            <label for="semester">Semester:</label>
16
            <select id="semester" name="semester">
17
              <option py:for="semester in semesters" value="${semester.year}/${semester.semester}">${semester.year} semester ${semester.semester}</option>
18
            </select>
19
            <span py:if="'semester' in errors" class="form_error">${errors.semester}.</span>
1543 by William Grant
Semester creation UI.
20
            <a class="addaction" href="/subjects/+new-semester">Create new semester</a>
1537 by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings.
21
          </div>
22
          </py:if>
1451.1.5 by William Grant
Add an OfferingEdit view, for setting the description and URL.
23
          <div>
24
            <label for="description">Description:</label>
1451.1.6 by William Grant
Prettify the form.
25
            <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.
26
            <span py:if="'description' in errors" class="form_error">${errors.description}.</span>
27
          </div>
28
          <div>
29
            <label for="url">Home page URL:</label>
30
            <input type="text" id="url" name="url" />
31
            <span py:if="'url' in errors" class="form_error">${errors.url}.</span>
32
          </div>
1537 by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings.
33
          <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
1451.1.6 by William Grant
Prettify the form.
34
          <div class="submit">
1537 by William Grant
Add offering creation UI, and allow admins to change the subject or semester of existing offerings.
35
            <input type="submit" value="${submit_button_label}" />
1451.1.6 by William Grant
Prettify the form.
36
          </div>
1451.1.5 by William Grant
Add an OfferingEdit view, for setting the description and URL.
37
        </div>
38
      </form>
39
  </body>
40
</html>