Mercurial > p > roundup > code
comparison templates/classic/html/issue.item.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 | bca5de92aaa3 |
| children | 8fc73650925f |
comparison
equal
deleted
inserted
replaced
| 3115:ece73371713c | 3117:460eb0209a9e |
|---|---|
| 23 replace="context/id" i18n:name="id" /> Editing</span> | 23 replace="context/id" i18n:name="id" /> Editing</span> |
| 24 </tal:block> | 24 </tal:block> |
| 25 | 25 |
| 26 <td class="content" metal:fill-slot="content"> | 26 <td class="content" metal:fill-slot="content"> |
| 27 | 27 |
| 28 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()" | 28 <p tal:condition="not:context/is_view_ok" i18n:translate="">You are not |
| 29 enctype="multipart/form-data" tal:attributes="action context/designator"> | 29 allowed to view this page.</p> |
| 30 | |
| 31 <div tal:condition="context/is_view_ok"> | |
| 32 | |
| 33 <form method="POST" name="itemSynopsis" | |
| 34 onSubmit="return submit_once()" enctype="multipart/form-data" | |
| 35 tal:attributes="action context/designator"> | |
| 30 | 36 |
| 31 <table class="form"> | 37 <table class="form"> |
| 32 <tr> | 38 <tr> |
| 33 <th class="required" i18n:translate="">Title</th> | 39 <th class="required" i18n:translate="">Title</th> |
| 34 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td> | 40 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td> |
| 174 </tal:block> | 180 </tal:block> |
| 175 </table> | 181 </table> |
| 176 | 182 |
| 177 <tal:block tal:condition="context/id" tal:replace="structure context/history" /> | 183 <tal:block tal:condition="context/id" tal:replace="structure context/history" /> |
| 178 | 184 |
| 185 </div> | |
| 186 | |
| 179 </td> | 187 </td> |
| 180 | 188 |
| 181 </tal:block> | 189 </tal:block> |
