Premiere version : mise en route du suivi.
[auf_roundup.git] / share / roundup / templates / classic / html / .svn / text-base / file.item.html.svn-base
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>
6
7 <td class="content" metal:fill-slot="content">
8
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>
12
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>
16
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">
20
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>
30
31  <tr>
32   <td>
33    &nbsp;
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>
44
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>
48
49 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
50
51 </td>
52
53 </tal:block>