Mercurial > p > roundup > code
comparison templates/classic/html/file.item.html @ 1591:21312a7564fd
moving templates around
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 17 Apr 2003 03:38:00 +0000 |
| parents | |
| children | 4e4afbe3cd30 |
comparison
equal
deleted
inserted
replaced
| 1590:198dbefc1d5a | 1591:21312a7564fd |
|---|---|
| 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> | |
| 6 | |
| 7 <td class="content" metal:fill-slot="content"> | |
| 8 | |
| 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> | |
| 12 | |
| 13 <form method="POST" onSubmit="return submit_once()" | |
| 14 enctype="multipart/form-data" tal:condition="context/is_edit_ok"> | |
| 15 | |
| 16 <input type="hidden" name=":template" value="item"> | |
| 17 <input type="hidden" name=":required" value="name,type"> | |
| 18 | |
| 19 <input type="hidden" name=":multilink" | |
| 20 tal:condition="python:request.form.has_key(':multilink')" | |
| 21 tal:attributes="value request/form/:multilink/value"> | |
| 22 | |
| 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> | |
| 32 | |
| 33 <tr> | |
| 34 <td> </td> | |
| 35 <td tal:content="structure context/submit">submit button here</td> | |
| 36 </tr> | |
| 37 </table> | |
| 38 </form> | |
| 39 | |
| 40 <a tal:condition="python:context.id and context.is_view_ok()" | |
| 41 tal:attributes="href string:file${context/id}/${context/name}">download</a> | |
| 42 | |
| 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> | |
| 53 | |
| 54 <tal:block tal:condition="python:context.id and context.is_view_ok()" | |
| 55 tal:replace="structure context/history" /> | |
| 56 </td> | |
| 57 | |
| 58 </tal:block> |
