Mercurial > p > roundup > code
comparison templates/minimal/html/page.html @ 1591:21312a7564fd
moving templates around
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 17 Apr 2003 03:38:00 +0000 |
| parents | |
| children | 5f25bf57efb8 |
comparison
equal
deleted
inserted
replaced
| 1590:198dbefc1d5a | 1591:21312a7564fd |
|---|---|
| 1 <html metal:define-macro="icing"> | |
| 2 <head> | |
| 3 <title metal:define-slot="head_title">title goes here</title> | |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8;"> | |
| 5 | |
| 6 <link rel="stylesheet" type="text/css" href="_file/style.css"> | |
| 7 | |
| 8 <script tal:replace="structure request/base_javascript"> | |
| 9 </script> | |
| 10 | |
| 11 </head> | |
| 12 <body class="body" marginwidth="0" marginheight="0"> | |
| 13 | |
| 14 <table class="body"> | |
| 15 | |
| 16 <tr> | |
| 17 <td class="page-header-left"> </td> | |
| 18 <td class="page-header-top" metal:define-slot="body_title"><h2>name</h2></td> | |
| 19 </tr> | |
| 20 | |
| 21 <tr> | |
| 22 <td rowspan="2" valign="top" nowrap class="sidebar"> | |
| 23 <p class="userblock" tal:condition="python:request.user.username=='anonymous'"> | |
| 24 <form method="POST" action=""> | |
| 25 <input size="10" name="__login_name"><br> | |
| 26 <input size="10" type="password" name="__login_password"><br> | |
| 27 <input type="submit" name=":action" value="login"> | |
| 28 <span tal:replace="structure request/indexargs_form" /> | |
| 29 </form> | |
| 30 <a href="user?:template=register">Register</a> | |
| 31 </p> | |
| 32 | |
| 33 <p class="userblock" tal:condition="python:request.user.username != 'anonymous'"> | |
| 34 <b>Hello,</b><br><b tal:content="request/user/username">username</b><br> | |
| 35 <a tal:attributes="href string:user${request/user/id}">My Details</a><br> | |
| 36 <a tal:attributes="href python:request.indexargs_href('', | |
| 37 {':action':'logout'})">Logout</a> | |
| 38 </p> | |
| 39 | |
| 40 <p class="classblock" | |
| 41 tal:condition="python:request.user.username != 'anonymous'"> | |
| 42 <b>Administration</b><br> | |
| 43 <a tal:condition="python:request.user.hasPermission('Edit', None)" | |
| 44 href="home?:template=classlist">Class List</a><br> | |
| 45 <a tal:condition="python:request.user.hasPermission('View', 'user') | |
| 46 or request.user.hasPermission('Edit', 'user')" | |
| 47 href="user" >User List</a><br> | |
| 48 <a tal:condition="python:request.user.hasPermission('Edit', 'user')" | |
| 49 href="user?:template=item">Add User</a> | |
| 50 </p> | |
| 51 </td> | |
| 52 <td> | |
| 53 <p tal:condition="options/error_message | nothing" class="error-message" | |
| 54 tal:repeat="m options/error_message" tal:content="structure m">error</p> | |
| 55 <p tal:condition="options/ok_message | nothing" class="ok-message" | |
| 56 tal:repeat="m options/ok_message" tal:content="structure m">error</p> | |
| 57 </td> | |
| 58 </tr> | |
| 59 <tr> | |
| 60 <td class="content" metal:define-slot="content">Page content goes here</td> | |
| 61 </tr> | |
| 62 | |
| 63 </table> | |
| 64 | |
| 65 <pre tal:condition="request/form/debug | nothing" tal:content="request"> | |
| 66 </pre> | |
| 67 | |
| 68 </body> | |
| 69 </html> |
