~ubuntu-branches/ubuntu/jaunty/trac/jaunty

« back to all changes in this revision

Viewing changes to trac/admin/templates/admin_enums.html

  • Committer: Bazaar Package Importer
  • Author(s): Luis Matos
  • Date: 2008-07-13 23:46:20 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080713234620-13ynpdpkbaymfg1z
Tags: 0.11-2
* Re-added python-setup-tools to build dependences. Closes: #490320 #468705
* New upstream release Closes: 489727
* Added sugestion for other vcs support available: git bazaar mercurial 
* Added spamfilter plugin to sugests
* Moved packaging from python-support to python-central
* Added an entry to the NEWS about the cgi Closes: #490275
* Updated 10_remove_trac_suffix_from_title patch to be used in 0.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html
 
2
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml"
 
5
      xmlns:xi="http://www.w3.org/2001/XInclude"
 
6
      xmlns:py="http://genshi.edgewall.org/">
 
7
  <xi:include href="admin.html" />
 
8
  <head>
 
9
    <title>$label_plural</title>
 
10
  </head>
 
11
 
 
12
  <body>
 
13
    <h2>Manage $label_plural</h2>
 
14
 
 
15
    <py:choose test="view">
 
16
      <form py:when="'detail'" class="mod" id="modenum" method="post">
 
17
        <fieldset>
 
18
          <legend>Modify $label_singular</legend>
 
19
          <div class="field">
 
20
            <label>Name: <input type="text" name="name" value="${enum.name}" /></label>
 
21
          </div>
 
22
          <div class="buttons">
 
23
            <input type="submit" name="cancel" value="Cancel"/>
 
24
            <input type="submit" name="save" value="Save"/>
 
25
          </div>
 
26
        </fieldset>
 
27
      </form>
 
28
 
 
29
      <py:otherwise>
 
30
        <form class="addnew" id="addenum" method="post">
 
31
          <fieldset>
 
32
            <legend>Add $label_singular</legend>
 
33
            <div class="field">
 
34
              <label>Name:<input type="text" name="name" id="name"/></label>
 
35
            </div>
 
36
            <div class="buttons">
 
37
              <input type="submit" name="add" value="Add"/>
 
38
            </div>
 
39
          </fieldset>
 
40
        </form>
 
41
 
 
42
        <py:choose>
 
43
          <form py:when="enums" id="enumtable" method="POST">
 
44
            <table class="listing" id="enumlist">
 
45
              <thead>
 
46
                <tr><th class="sel">&nbsp;</th>
 
47
                  <th>Name</th><th>Default</th><th>Order</th>
 
48
                </tr>
 
49
              </thead>
 
50
              <tbody>
 
51
                <tr py:for="enum in enums">
 
52
                  <td><input type="checkbox" name="sel" value="${enum.name}" /></td>
 
53
                  <td><a href="${panel_href(enum.name)}">${enum.name}</a></td>
 
54
                  <td class="default">
 
55
                    <input type="radio" name="default" value="${enum.name}"
 
56
                           checked="${enum.name==default or None}" />
 
57
                  </td>
 
58
                  <td class="default">
 
59
                    <select name="value_${enum.value}">
 
60
                      <option py:for="other in enums"
 
61
                              selected="${other.value==enum.value or None}">${other.value}</option>
 
62
                    </select>
 
63
                  </td>
 
64
                </tr>
 
65
              </tbody>
 
66
            </table>
 
67
            <div class="buttons">
 
68
              <input type="submit" name="remove" value="Remove selected items" />
 
69
              <input type="submit" name="apply" value="Apply changes" />
 
70
            </div>
 
71
            <p class="help">
 
72
              You can remove all items from this list to completely hide this
 
73
              field from the user interface.
 
74
            </p>
 
75
          </form>
 
76
 
 
77
          <p py:otherwise="" class="help">
 
78
            As long as you don't add any items to the list, this field
 
79
            will remain completely hidden from the user interface.
 
80
          </p>
 
81
        </py:choose>
 
82
      </py:otherwise>
 
83
    </py:choose>
 
84
  </body>
 
85
 
 
86
</html>