Mercurial > p > roundup > code
comparison templates/classic/html/user.item.html @ 2245:c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 03 May 2004 00:28:43 +0000 |
| parents | 03bb30c5e2c3 |
| children | 9db7d2842222 |
comparison
equal
deleted
inserted
replaced
| 2244:ac4f295499a4 | 2245:c5fb778ec7e4 |
|---|---|
| 10 User<span tal:replace="context/id" /> | 10 User<span tal:replace="context/id" /> |
| 11 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x> | 11 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x> |
| 12 </span> | 12 </span> |
| 13 | 13 |
| 14 <td class="content" metal:fill-slot="content"> | 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 <form method="POST" onSubmit="return submit_once()" | 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 tal:attributes="action context/designator"> | 18 tal:attributes="action context/designator"> |
| 22 | 19 |
| 23 <table class="form"> | 20 <table class="form"> |
| 24 <tr> | 21 <tr> |
| 25 <th>Name</th> | 22 <th>Name</th> |
| 55 <th>Organisation</th> | 52 <th>Organisation</th> |
| 56 <td tal:content="structure context/organisation/field">organisation</td> | 53 <td tal:content="structure context/organisation/field">organisation</td> |
| 57 </tr> | 54 </tr> |
| 58 <tr> | 55 <tr> |
| 59 <th>Timezone</th> | 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 </tr> | 66 </tr> |
| 62 <tr> | 67 <tr> |
| 63 <th>E-mail address</th> | 68 <th>E-mail address</th> |
| 64 <td tal:content="structure context/address/field">address</td> | 69 <td tal:content="structure context/address/field">address</td> |
| 65 </tr> | 70 </tr> |
| 77 <td tal:content="structure context/submit">submit button here</td> | 82 <td tal:content="structure context/submit">submit button here</td> |
| 78 </tr> | 83 </tr> |
| 79 </table> | 84 </table> |
| 80 </form> | 85 </form> |
| 81 | 86 |
| 82 <table class="form" tal:condition="context/is_only_view_ok"> | 87 <tal:block tal:replace="structure context/history" /> |
| 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" /> | |
| 110 | 88 |
| 111 </td> | 89 </td> |
| 112 | 90 |
| 113 </tal:block> | 91 </tal:block> |
