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

1594 by William Grant
Add semester edit UI.
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
      xmlns:py="http://genshi.edgewall.org/"
3
      py:strip="">
4
  <body py:strip="">
5
      <p class="form_error">
1822.1.1 by William Grant
Replace semester.semester with semester.{code,url_name,display_name}.
6
        <strong>Warning:</strong> Changing the year or URL name here
7
        <em>will break</em> any existing Subversion repositories or checkouts
1594 by William Grant
Add semester edit UI.
8
        associated with this semester's offerings. Be very careful.
9
      </p>
1822.1.1 by William Grant
Replace semester.semester with semester.{code,url_name,display_name}.
10
      <form class="verticalform" method="post" action="">
1594 by William Grant
Add semester edit UI.
11
        <div>
12
          <label for="field_year">Year:</label>
13
          <input type="text" id="field_year" name="year" />
14
          <span py:if="'year' in errors" class="form_error">${errors.year}</span>
15
        </div>
16
        <div>
1822.1.1 by William Grant
Replace semester.semester with semester.{code,url_name,display_name}.
17
          <label for="field_code">Code:</label>
18
          <input type="text" id="field_code" name="code" />
19
          <span py:if="'code' in errors" class="form_error">${errors.code}</span>
20
        </div>
21
        <div>
22
          <label for="field_url_name">URL name:</label>
23
          <input type="text" id="field_url_name" name="url_name" />
24
          <span py:if="'url_name' in errors" class="form_error">${errors.url_name}</span>
25
        </div>
26
        <div>
27
          <label for="field_display_name">Display name:</label>
28
          <input type="text" id="field_display_name" name="display_name" />
29
          <span py:if="'display_name' in errors" class="form_error">${errors.display_name}</span>
1594 by William Grant
Add semester edit UI.
30
        </div>
31
        <div>
32
          <label for="field_state">State:</label>
33
          <select id="field_state" name="state">
34
            <option value="past">Past</option>
35
            <option value="current" selected="selected">Current</option>
36
            <option value="future">Future</option>
37
          </select>
38
          <span py:if="'state' in errors" class="form_error">${errors.state}</span>
39
        </div>
40
        <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
41
        <div class="submit">
42
          <input type="submit" value="${submit_button_label}" />
43
        </div>
44
      </form>
45
  </body>
46
</html>