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" 48 tal:define="limit python:[10, None][request.form.has_key('show_all_history')]" 49 tal:replace="structure python:context.history(limit=limit)" /> 50 <p tal:condition="not:exists:request/form/show_all_history" i18n:translate="">Showing 10 items. 51 <a tal:attributes="href string:${context/_classname}${context/id}?show_all_history=yes">Show all history</a> 52 (warning: this could be VERY long)</p> 53 54 </div> 55 56 </td> 57 58 </tal:block>