Mercurial > p > roundup > code
comparison website/issues/html/_generic.item.html @ 4024:c2d0d3e9099d website
svn repository setup
| author | Stefan Seefeld <stefan@users.sourceforge.net> |
|---|---|
| date | Fri, 06 Feb 2009 13:16:31 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 4023:86c38b5aed66 | 4024:c2d0d3e9099d |
|---|---|
| 1 <tal:block metal:use-macro="templates/page/macros/icing"> | |
| 2 <title metal:fill-slot="head_title" i18n:translate="" | |
| 3 ><span tal:replace="python:context._classname.capitalize()" | |
| 4 i18n:name="class" /> editing - <span i18n:name="tracker" | |
| 5 tal:replace="config/TRACKER_NAME" /></title> | |
| 6 <tal:block metal:fill-slot="body_title" i18n:translate="" | |
| 7 ><span tal:replace="python:context._classname.capitalize()" | |
| 8 i18n:name="class" /> editing</tal:block> | |
| 9 | |
| 10 <td class="content" metal:fill-slot="content"> | |
| 11 | |
| 12 <p tal:condition="python:not (context.is_view_ok() | |
| 13 or request.user.hasRole('Anonymous'))" i18n:translate=""> | |
| 14 You are not allowed to view this page.</p> | |
| 15 | |
| 16 <p tal:condition="python:not context.is_view_ok() | |
| 17 and request.user.hasRole('Anonymous')" i18n:translate=""> | |
| 18 Please login with your username and password.</p> | |
| 19 | |
| 20 <div tal:condition="context/is_view_ok"> | |
| 21 | |
| 22 <form method="POST" onSubmit="return submit_once()" | |
| 23 enctype="multipart/form-data" tal:condition="context/is_view_ok" | |
| 24 tal:attributes="action context/designator"> | |
| 25 | |
| 26 <input type="hidden" name="@template" value="item"> | |
| 27 | |
| 28 <table class="form"> | |
| 29 | |
| 30 <tr tal:repeat="prop python:db[context._classname].properties()"> | |
| 31 <tal:block tal:condition="python:prop._name not in ('id', | |
| 32 'creator', 'creation', 'actor', 'activity')"> | |
| 33 <th tal:content="prop/_name"></th> | |
| 34 <td tal:content="structure python:context[prop._name].field()"></td> | |
| 35 </tal:block> | |
| 36 </tr> | |
| 37 <tr> | |
| 38 <td> </td> | |
| 39 <td colspan=3 tal:content="structure context/submit"> | |
| 40 submit button will go here | |
| 41 </td> | |
| 42 </tr> | |
| 43 </table> | |
| 44 | |
| 45 </form> | |
| 46 | |
| 47 <tal:block tal:condition="context/id" tal:replace="structure context/history" /> | |
| 48 | |
| 49 </div> | |
| 50 | |
| 51 </td> | |
| 52 | |
| 53 </tal:block> |
