Code

Move templates/ to share/roundup/templates/
[roundup.git] / share / roundup / templates / classic / 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 <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>
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>
20 <div tal:condition="context/is_view_ok">
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">
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 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
49 </div>
51 </td>
53 </tal:block>