|
12 | 12 | </span> |
13 | 13 |
|
14 | 14 | <td class="content" metal:fill-slot="content"> |
15 | | -<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())"> |
16 | | -You are not allowed to view this page. |
17 | | -</span> |
18 | 15 |
|
19 | 16 | <form method="POST" onSubmit="return submit_once()" |
20 | | - enctype="multipart/form-data" tal:condition="context/is_edit_ok" |
| 17 | + enctype="multipart/form-data" |
21 | 18 | tal:attributes="action context/designator"> |
22 | 19 |
|
23 | 20 | <table class="form"> |
|
57 | 54 | </tr> |
58 | 55 | <tr> |
59 | 56 | <th>Timezone</th> |
60 | | - <td tal:content="structure context/timezone/field">timezone</td> |
| 57 | + <td tal:define="timezone request/form/timezone/value | python:''; |
| 58 | + timezone python:timezone |
| 59 | + or db._db.user.get(request.user.id, 'timezone') |
| 60 | + or config.DEFAULT_TIMEZONE"> |
| 61 | + <input tal:condition="context/is_edit_ok" name="timezone" |
| 62 | + tal:attributes="value timezone"> |
| 63 | + <span tal:condition="context/is_only_view_ok" tal:content="timezone" /> |
| 64 | + (this is a numeric hour offset) |
| 65 | + </td> |
61 | 66 | </tr> |
62 | 67 | <tr> |
63 | 68 | <th>E-mail address</th> |
|
79 | 84 | </table> |
80 | 85 | </form> |
81 | 86 |
|
82 | | -<table class="form" tal:condition="context/is_only_view_ok"> |
83 | | - <tr> |
84 | | - <th colspan=2 class="header" tal:content="context/realname">realname</th> |
85 | | - </tr> |
86 | | - <tr> |
87 | | - <th>Login Name</th> |
88 | | - <td tal:content="context/username">username</td> |
89 | | - </tr> |
90 | | - <tr> |
91 | | - <th>Phone</th> |
92 | | - <td tal:content="context/phone">phone</td> |
93 | | - </tr> |
94 | | - <tr> |
95 | | - <th>Organisation</th> |
96 | | - <td tal:content="context/organisation">organisation</td> |
97 | | - </tr> |
98 | | - <tr> |
99 | | - <th>Timezone</th> |
100 | | - <td tal:content="context/timezone">timezone</td> |
101 | | - </tr> |
102 | | - <tr> |
103 | | - <th>E-mail address</th> |
104 | | - <td tal:content="context/address/email">address</td> |
105 | | - </tr> |
106 | | -</table> |
107 | | - |
108 | | -<tal:block tal:condition="python:context.id and context.is_view_ok()" |
109 | | - tal:replace="structure context/history" /> |
| 87 | +<tal:block tal:replace="structure context/history" /> |
110 | 88 |
|
111 | 89 | </td> |
112 | 90 |
|
|
0 commit comments