Mercurial > p > roundup > code
comparison templates/classic/html/user.index.html @ 3117:460eb0209a9e
Permissions improvements.
- have Permissions only test the check function if itemid is suppled
- modify index templates to check for row-level Permission
- more documentation of security mechanisms
- better unit tests for security mechanisms
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 28 Jan 2005 03:51:19 +0000 |
| parents | 3551fbf8cf29 |
| children | 021b131bd816 |
comparison
equal
deleted
inserted
replaced
| 3115:ece73371713c | 3117:460eb0209a9e |
|---|---|
| 16 <th i18n:translate="">Organisation</th> | 16 <th i18n:translate="">Organisation</th> |
| 17 <th i18n:translate="">Email address</th> | 17 <th i18n:translate="">Email address</th> |
| 18 <th i18n:translate="">Phone number</th> | 18 <th i18n:translate="">Phone number</th> |
| 19 <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th> | 19 <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th> |
| 20 </tr> | 20 </tr> |
| 21 <tr tal:repeat="user context/list" | 21 <tal:block repeat="user context/list"> |
| 22 <tr tal:condition="user/is_view_ok" | |
| 22 tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]"> | 23 tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]"> |
| 23 <td> | 24 <td> |
| 24 <a tal:attributes="href string:user${user/id}" | 25 <a tal:attributes="href string:user${user/id}" |
| 25 tal:content="user/username">username</a> | 26 tal:content="user/username">username</a> |
| 26 </td> | 27 </td> |
| 31 <td tal:condition="context/is_edit_ok"> | 32 <td tal:condition="context/is_edit_ok"> |
| 32 <a tal:attributes="href string:user${user/id}?@action=retire&@template=index" | 33 <a tal:attributes="href string:user${user/id}?@action=retire&@template=index" |
| 33 i18n:translate="">retire</a> | 34 i18n:translate="">retire</a> |
| 34 </td> | 35 </td> |
| 35 </tr> | 36 </tr> |
| 37 </tal:block> | |
| 36 </table> | 38 </table> |
| 37 </td> | 39 </td> |
| 38 | 40 |
| 39 </tal:block> | 41 </tal:block> |
