Code

- re-order sqlite imports to handle multiple installed versions (issue
[roundup.git] / share / roundup / templates / minimal / html / _generic.item.html
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>
10 <td class="content" metal:fill-slot="content">
12 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok()
13  or request.user.hasRole('Anonymous'))"
14  tal:omit-tag="python:1" i18n:translate=""
15 >You are not allowed to view this page.</span>
17 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())
18  and request.user.hasRole('Anonymous')"
19  tal:omit-tag="python:1" i18n:translate=""
20 >Please login with your username and password.</span>
22 <form method="POST" onSubmit="return submit_once()"
23       enctype="multipart/form-data" tal:condition="context/is_edit_ok"
24       tal:attributes="action context/designator">
26 <input type="hidden" name="@template" value="item">
28 <table class="form">
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>&nbsp;</td>
39  <td colspan=3 tal:content="structure context/submit">
40   submit button will go here
41  </td>
42 </tr>
43 </table>
45 </form>
47 <table class="form" tal:condition="context/is_only_view_ok">
49 <tr tal:repeat="prop python:db[context._classname].properties()">
50  <tal:block tal:condition="python:prop._name not in ('id', 'creator',
51                                   'creation', 'activity')">
52   <th tal:content="prop/_name"></th>
53   <td tal:content="structure python:context[prop._name].field()"></td>
54  </tal:block>
55 </tr>
56 </table>
59 <tal:block tal:condition="python:context.id and context.is_view_ok()">
60  <tal:block tal:replace="structure context/history" />
61 </tal:block>
63 </td>
65 </tal:block>