1 <tal:block metal:use-macro="templates/page/macros/icing">
2 <title metal:fill-slot="head_title" i18n:translate="">File display - <span
3 i18n:name="tracker" tal:replace="config/TRACKER_NAME" /></title>
4 <span metal:fill-slot="body_title" tal:omit-tag="python:1"
5 i18n:translate="">File display</span>
7 <td class="content" metal:fill-slot="content">
9 <p tal:condition="python:not (context.is_view_ok()
10 or request.user.hasRole('Anonymous'))" i18n:translate="">
11 You are not allowed to view this page.</p>
13 <p tal:condition="python:not context.is_view_ok()
14 and request.user.hasRole('Anonymous')" i18n:translate="">
15 Please login with your username and password.</p>
17 <form method="POST" onSubmit="return submit_once()"
18 enctype="multipart/form-data" tal:condition="context/is_view_ok"
19 tal:attributes="action context/designator">
21 <table class="form">
22 <tr>
23 <th i18n:translate="">Name</th>
24 <td tal:content="structure context/name/field"></td>
25 </tr>
26 <tr>
27 <th i18n:translate="">Content Type</th>
28 <td tal:content="structure context/type/field"></td>
29 </tr>
31 <tr>
32 <td>
33
34 <input type="hidden" name="@template" value="item">
35 <input type="hidden" name="@required" value="name,type">
36 <input type="hidden" name="@multilink"
37 tal:condition="python:request.form.has_key('@multilink')"
38 tal:attributes="value request/form/@multilink/value">
39 </td>
40 <td tal:content="structure context/submit">submit button here</td>
41 </tr>
42 </table>
43 </form>
45 <a tal:condition="python:context.id and context.is_view_ok()"
46 tal:attributes="href string:file${context/id}/${context/name}"
47 i18n:translate="">download</a>
49 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
51 </td>
53 </tal:block>