Mercurial > p > roundup > code
comparison templates/classic/html/file.item.html @ 2393:c2908812624a
i18n markup
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 06 Jun 2004 12:59:15 +0000 |
| parents | 3a4abf6d48c2 |
| children | 3551fbf8cf29 |
comparison
equal
deleted
inserted
replaced
| 2392:b0778b9e933c | 2393:c2908812624a |
|---|---|
| 1 <tal:block metal:use-macro="templates/page/macros/icing"> | 1 <tal:block metal:use-macro="templates/page/macros/icing"> |
| 2 <title metal:fill-slot="head_title">File display</title> | 2 <title metal:fill-slot="head_title" i18n:translate="">File display</title> |
| 3 <span metal:fill-slot="body_title" tal:omit-tag="python:1">File display</span> | 3 <span metal:fill-slot="body_title" tal:omit-tag="python:1" |
| 4 i18n:translate="">File display</span> | |
| 4 | 5 |
| 5 <td class="content" metal:fill-slot="content"> | 6 <td class="content" metal:fill-slot="content"> |
| 6 | 7 |
| 7 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())"> | 8 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())" |
| 8 You are not allowed to view this page. | 9 tal:omit-tag="python:1" i18n:translate="" |
| 9 </span> | 10 >You are not allowed to view this page.</span> |
| 10 | 11 |
| 11 <form method="POST" onSubmit="return submit_once()" | 12 <form method="POST" onSubmit="return submit_once()" |
| 12 enctype="multipart/form-data" tal:condition="context/is_edit_ok" | 13 enctype="multipart/form-data" tal:condition="context/is_edit_ok" |
| 13 tal:attributes="action context/designator"> | 14 tal:attributes="action context/designator"> |
| 14 | 15 |
| 15 <table class="form"> | 16 <table class="form"> |
| 16 <tr> | 17 <tr> |
| 17 <th>Name</th> | 18 <th i18n:translate="">Name</th> |
| 18 <td tal:content="structure context/name/field"></td> | 19 <td tal:content="structure context/name/field"></td> |
| 19 </tr> | 20 </tr> |
| 20 <tr> | 21 <tr> |
| 21 <th>Content Type</th> | 22 <th i18n:translate="">Content Type</th> |
| 22 <td tal:content="structure context/type/field"></td> | 23 <td tal:content="structure context/type/field"></td> |
| 23 </tr> | 24 </tr> |
| 24 | 25 |
| 25 <tr> | 26 <tr> |
| 26 <td> | 27 <td> |
| 35 </tr> | 36 </tr> |
| 36 </table> | 37 </table> |
| 37 </form> | 38 </form> |
| 38 | 39 |
| 39 <a tal:condition="python:context.id and context.is_view_ok()" | 40 <a tal:condition="python:context.id and context.is_view_ok()" |
| 40 tal:attributes="href string:file${context/id}/${context/name}">download</a> | 41 tal:attributes="href string:file${context/id}/${context/name}" |
| 42 i18n:translate="">download</a> | |
| 41 | 43 |
| 42 <table class="form" tal:condition="context/is_only_view_ok"> | 44 <table class="form" tal:condition="context/is_only_view_ok"> |
| 43 <tr> | 45 <tr> |
| 44 <th>Name</th> | 46 <th i18n:translate="">Name</th> |
| 45 <td tal:content="context/name"></td> | 47 <td tal:content="context/name"></td> |
| 46 </tr> | 48 </tr> |
| 47 <tr> | 49 <tr> |
| 48 <th>Content Type</th> | 50 <th i18n:translate="">Content Type</th> |
| 49 <td tal:content="context/type"></td> | 51 <td tal:content="context/type"></td> |
| 50 </tr> | 52 </tr> |
| 51 </table> | 53 </table> |
| 52 | 54 |
| 53 <tal:block tal:condition="python:context.id and context.is_view_ok()" | 55 <tal:block tal:condition="python:context.id and context.is_view_ok()" |
