Code

additions
[roundup.git] / roundup / templates / classic / html / file.item
1 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
2 You are not allowed to view this page.
3 </span>
5 <form method="POST" onSubmit="return submit_once()"
6       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
8 <input type="hidden" name=":template" value="item">
9 <input type="hidden" name=":required" value="name,type">
11 <input type="hidden" name="multilink"
12        tal:condition="python:request.form.has_key(':multilink')"
13        tal:attributes="value request/form/:multilink/value">
15 <table class="form">
16  <tr>
17   <th>Name</th>
18   <td tal:content="structure context/name/field"></td>
19  </tr>
20  <tr>
21   <th>Content Type</th>
22   <td tal:content="structure context/type/field"></td>
23  </tr>
24  <tr>
25   <th>Content</th>
26   <td><input type="file" name="content" size="40"></td>
27  </tr>
29  <tr>
30   <td>&nbsp;</td>
31   <td tal:content="structure context/submit">submit button here</td>
32  </tr>
33 </table>
34 </form>
36 <a tal:condition="python:context.id and context.is_view_ok()"
37    tal:attributes="href string:file${context/id}/${context/name}">download</a>
39 <table class="form" tal:condition="context/is_only_view_ok">
40  <tr>
41   <th>Name</th>
42   <td tal:content="context/name"></td>
43  </tr>
44  <tr>
45   <th>Content Type</th>
46   <td tal:content="context/type"></td>
47  </tr>
48 </table>
50 <tal:block tal:condition="python:context.id and context.is_view_ok()"
51            tal:replace="structure context/history" />