Code

more installation doc cleanups
[roundup.git] / roundup / templates / classic / html / file.item
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 <input type="hidden" name=":template" value="item">
17 <input type="hidden" name=":required" value="name,type">
19 <input type="hidden" name=":multilink"
20        tal:condition="python:request.form.has_key(':multilink')"
21        tal:attributes="value request/form/:multilink/value">
23 <table class="form">
24  <tr>
25   <th>Name</th>
26   <td tal:content="structure context/name/field"></td>
27  </tr>
28  <tr>
29   <th>Content Type</th>
30   <td tal:content="structure context/type/field"></td>
31  </tr>
33  <tr>
34   <td>&nbsp;</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>