|
1 <%inherit file="layout.tmpl" /> |
|
2 |
|
3 <div id="title">Edit Preferences</div> |
|
4 |
|
5 <form action="${urls.preferences.build(req)}" method="POST"> |
|
6 <fieldset> |
|
7 <legend>Dates / Times</legend> |
|
8 |
|
9 <p> |
|
10 <label for="timezone">Timezone:</label> |
|
11 <select name="timezone"> |
|
12 ${h.select_options(prefs.pref('timezone').OPTIONS, prefs.build('timezone'))} |
|
13 </select> |
|
14 <span class="example">(${h.tz_name(prefs['timezone'])})</span> |
|
15 </p> |
|
16 |
|
17 <p> |
|
18 <label for="date_format">Date format:</label> |
|
19 <input type="text" name="date_format" value="${prefs['date_format']}" /> |
|
20 <span class="example">(${h.fmt_date()})</span> |
|
21 </p> |
|
22 |
|
23 <p> |
|
24 <label for="time_format">Time format:</label> |
|
25 <input type="text" name="time_format" value="${prefs['time_format']}" /> |
|
26 <span class="example">(${h.fmt_time()})</span> |
|
27 </p> |
|
28 |
|
29 </fieldset> |
|
30 |
|
31 <fieldset> |
|
32 <legend>Log Output</legend> |
|
33 |
|
34 <p> |
|
35 <label for="formatter">Formatter:</label> |
|
36 <select name="formatter"> |
|
37 ${h.select_options(((fmt_name, fmt.title) for fmt_name, fmt in preferences.formatter.formatters.iteritems()), prefs['formatter'].name)} |
|
38 </select> |
|
39 </p> |
|
40 |
|
41 <p> |
|
42 <label for="count">Lines / Page:</label> |
|
43 <input type="text" name="count" value="${prefs['count']}" /> |
|
44 <!-- <span class="example">(Blank for infinite)</span> --> |
|
45 </p> |
|
46 </fieldset> |
|
47 |
|
48 <fieldset> |
|
49 <legend>Image Options</legend> |
|
50 |
|
51 <p> |
|
52 <label for="image_font">Font:</label> |
|
53 <select name="image_font"> |
|
54 ${h.select_options(((name, title) for name, (path, title) in config.FORMATTER_IMAGE_FONTS.iteritems()), prefs['image_font'][0])} |
|
55 </select> |
|
56 </p> |
|
57 |
|
58 <p> |
|
59 <label for="image_font_size">Font size:</label> |
|
60 <input type="text" name="image_font_size" value="${prefs['image_font_size']}" /> |
|
61 <span class="example">pt</span> |
|
62 </p> |
|
63 </fieldset> |
|
64 |
|
65 <input type="submit" value="Save" /> |
|
66 </form> |
|
67 |