Code

a9d2e859f4a6aa7bc905c91f97b925493560e5d9
[roundup.git] / templates / classic / html / _generic.item.html
1 <tal:block metal:use-macro="templates/page/macros/icing">
2 <title metal:fill-slot="head_title"
3        tal:content="python:context._classname.capitalize()+' editing'"></title>
4 <td class="page-header-top" metal:fill-slot="body_title">
5  <h2 tal:content="python:context._classname.capitalize()+' editing'"></h2>
6 </td>
7 <td class="content" metal:fill-slot="content">
9 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
10 You are not allowed to view this page.
11 </span>
13 <form method="POST" onSubmit="return submit_once()"
14       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
16 <input type="hidden" name=":template" value="item">
17 <input type="hidden" name=":required" value="title">
19 <table class="form">
21 <tr tal:repeat="prop python:db[context._classname].properties()">
22  <tal:block tal:condition="python:prop._name not in ('id', 'creator',
23                                   'creation', 'activity')">
24   <th tal:content="prop/_name"></th>
25   <td tal:content="structure python:context[prop._name].field()"></td>
26  </tal:block>
27 </tr>
28 <tr>
29  <td>&nbsp;</td>
30  <td colspan=3 tal:content="structure context/submit">
31   submit button will go here
32  </td>
33 </tr>
34 </table>
36 </form>
38 <table class="form" tal:condition="context/is_only_view_ok">
40 <tr tal:repeat="prop python:db[context._classname].properties()">
41  <tal:block tal:condition="python:prop._name not in ('id', 'creator',
42                                   'creation', 'activity')">
43   <th tal:content="prop/_name"></th>
44   <td tal:content="structure python:context[prop._name].field()"></td>
45  </tal:block>
46 </tr>
47 </table>
50 <tal:block tal:condition="python:context.id and context.is_view_ok()">
51  <tal:block tal:replace="structure context/history" />
52 </tal:block>
54 </td>
56 </tal:block>