26
|
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:py="http://genshi.edgewall.org/"
|
|
6 xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
7
|
|
8 <head>
|
|
9 <title>preferences - ${user}</title>
|
|
10
|
|
11 <py:for each="index, (href, sheet) in enumerate(stylesheets)">
|
|
12 <link href="${href}"
|
|
13 type="text/css"
|
|
14 rel="${index and 'alternate stylesheet' or 'stylesheet'}"
|
|
15 title="${sheet}"/>
|
|
16 </py:for>
|
|
17
|
|
18 </head>
|
|
19
|
|
20 <body>
|
|
21
|
|
22 <xi:include href="navigation.html" />
|
|
23
|
|
24 <div py:if="message">
|
|
25 <strong>${message}</strong>
|
|
26 </div>
|
|
27
|
|
28 <form method="post" enctype="multipart/form-data">
|
|
29 <table>
|
|
30 <tr>
|
|
31 <td>
|
|
32 <span title="how to display dates in your blog post subject"><strong>Date format:</strong></span>
|
|
33 </td>
|
|
34 <td>
|
|
35 <input type="text" name="Date format" value="${now}" size="22"/>
|
|
36 </td>
|
28
|
37 <td class="error" py:if="'Date format' in errors">
|
|
38 ${errors['Date format']}
|
|
39 </td>
|
26
|
40 </tr>
|
|
41
|
|
42 <tr>
|
|
43 <td>
|
|
44 <span title="how to display the subject line of your blog post"><strong>Subject:</strong></span>
|
|
45 </td>
|
|
46 <td><input type="text" name="Subject-0" value="${subject[0]}" size="${len(subject[0])}"/>
|
|
47 ${now}
|
|
48 <input type="text" name="Subject-2" value="${subject[1]}" size="${len(subject[1])}"/>
|
|
49 </td>
|
|
50 </tr>
|
|
51
|
|
52 <tr>
|
|
53 <td>
|
|
54 <span title="which CSS file should be the default"><strong>Stylesheet:</strong></span>
|
|
55 </td>
|
|
56 <td>
|
|
57 <select name="Stylesheet">
|
|
58 <option py:for="css_file in css_files">${css_file}</option>
|
|
59 </select>
|
|
60 </td>
|
|
61 </tr>
|
|
62
|
|
63 <tr>
|
|
64 <td><span title="upload a CSS file to theme your webpage"><strong>CSS file:</strong></span></td>
|
|
65 <td><input type="file" name="CSS file"/></td>
|
28
|
66 <td class="error" py:if="'CSS file' in errors">
|
|
67 ${errors['CSS file']}
|
|
68 </td>
|
26
|
69 </tr>
|
|
70
|
|
71 <tr py:if="users">
|
|
72 <td><span title="friends can see your secret posts"><strong>Friends:</strong></span></td>
|
|
73 <td>
|
|
74 <py:for each="_user in users">
|
|
75 <input type="checkbox" name="Friends" value="${_user}"/>${_user}<br/>
|
|
76 </py:for>
|
|
77 </td>
|
|
78 </tr>
|
|
79 </table>
|
|
80
|
|
81 <input type="submit" name="submit" value="Submit"/>
|
|
82
|
|
83 </form>
|
|
84 </body>
|
|
85 </html>
|