Code

dd102b24dbf8e26704b5b8166b303bce0b617dfc
[roundup.git] / templates / classic / html / file.item.html
1 <tal:block metal:use-macro="templates/page/macros/icing">
2 <title metal:fill-slot="head_title">File display</title>
3 <td class="page-header-top" metal:fill-slot="body_title">
4  <h2>File display</h2>
5 </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 <table class="form">
17  <tr>
18   <th>Name</th>
19   <td tal:content="structure context/name/field"></td>
20  </tr>
21  <tr>
22   <th>Content Type</th>
23   <td tal:content="structure context/type/field"></td>
24  </tr>
26  <tr>
27   <td>
28    &nbsp;
29    <input type="hidden" name=":template" value="item">
30    <input type="hidden" name=":required" value="name,type">
31    <input type="hidden" name=":multilink"
32           tal:condition="python:request.form.has_key(':multilink')"
33           tal:attributes="value request/form/:multilink/value">
34   </td>
35   <td tal:content="structure context/submit">submit button here</td>
36  </tr>
37 </table>
38 </form>
40 <a tal:condition="python:context.id and context.is_view_ok()"
41    tal:attributes="href string:file${context/id}/${context/name}">download</a>
43 <table class="form" tal:condition="context/is_only_view_ok">
44  <tr>
45   <th>Name</th>
46   <td tal:content="context/name"></td>
47  </tr>
48  <tr>
49   <th>Content Type</th>
50   <td tal:content="context/type"></td>
51  </tr>
52 </table>
54 <tal:block tal:condition="python:context.id and context.is_view_ok()"
55            tal:replace="structure context/history" />
56 </td>
58 </tal:block>