source: iniadminplugin/0.11/iniadmin/templates/iniadmin.html @ 13607

Last change on this file since 13607 was 13607, checked in by Jun Omae, 10 years ago

iniadmin: show dropdown for ChoiceOption since Trac 0.12 (fixed #11001)

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
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>[${iniadmin.section}]</title>
10    <script>
11     //<![CDATA[
12        jQuery(document).ready(function(){
13            $('form').attr('autocomplete','off');
14        });
15     //]]>
16    </script>
17  </head>
18  <body>
19    <h2>[${iniadmin.section}]</h2>
20
21    <div class="ini">
22      <form method="post">
23        <ul>
24          <li py:for="idx, option in enumerate(iniadmin.options)" class="align${idx % 3}">
25            <fieldset class="col${idx % 2}">
26              <legend>${option.name}</legend>
27              <py:choose>
28                <div class="select" py:when="option.type in ('extension', 'choice')">
29                  <select name="${option.name}">
30                    <option py:for="val in option.options"
31                            value="$val"
32                            selected="${option.value == val or None}">$val</option>
33                  </select>
34                </div>
35                <div class="bool" py:when="option.type == 'bool'">
36                  <label py:for="val in ('true', 'false')">
37                    <input type="radio" name="${option.name}" value="$val"
38                           checked="${option.value == val or None}" />
39                    $val
40                  </label>
41                </div>
42                <div class="text" py:when="option.type == 'password'">
43                  <input type="password" name="${option.name}" value="${option.value}" />
44                </div>
45                <div class="text" py:otherwise="">
46                  <input type="text" name="${option.name}" value="${option.value}" />
47                </div>
48              </py:choose>
49              <div class="help" xml:space="preserve">
50                ${wiki_to_html(context, option.doc)}
51              </div>
52            </fieldset>
53          </li>
54        </ul>
55        <div class="ini buttons">
56          <input type="submit" value="Apply changes" />
57        </div>
58      </form>
59    </div>
60  </body>
61</html>
Note: See TracBrowser for help on using the repository browser.