Modification de l'import de swfheader : installé avec easy_install, il n'est pas...
[Plinn.git] / skins / content / folder_factories.pt
1 <html xmlns="http://www.w3.org/1999/xhtml"
2 metal:use-macro="here/main_template/macros/master">
3 <head>
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
5 <title>folder_factories</title>
6 <link href="zpt_stylesheet.css" rel="stylesheet" media="screen"/>
7 <link href="../content/plinn_style.css" rel="stylesheet" media="screen"/>
8 </head>
9
10 <body>
11
12 <div metal:fill-slot="main" i18n:domain="cmf_default">
13 <div tal:condition="python: not(here.portal_membership.checkPermission('Access contents information', here))">
14 <span tal:define="dummy here/unauthRedirect"></span>
15 </div>
16 <form action="." method="post" tal:attributes="action string:${here/absolute_url}/add_content">
17 <table cellspacing="0" tal:define="ucn here/getUntitledContentName" class="FolderFactories">
18 <tr>
19 <th><br /></th>
20 <th i18n:translate="">Type</th>
21 <th i18n:translate="">Name</th>
22 <th><br /></th>
23 </tr>
24 <div tal:repeat="item here/allowedContentTypes" tal:omit-tag="">
25 <tr tal:define="icon python:here.restrictedTraverse(item.getIcon())">
26 <td class="ListName">
27 <img tal:attributes="src icon/absolute_url ; alt item/Title ; height icon/height ; width icon/width" i18n:attributes="alt"/>
28 </td>
29 <td tal:content="item/Title" i18n:translate="" class="ListName">Content name</td>
30 <td tal:condition="python:not item.listActionInfos('object/create', check_visibility=0)">
31 <input type="text" name="id" size="24" tal:attributes="name string:${item/id}.id:record; value ucn" />
32 </td>
33 <td tal:condition="python:item.listActionInfos('object/create', check_visibility=0)">
34 <input type="hidden" value="1" tal:attributes="name string:${item/id}.create_form:record"/>
35 </td>
36 <td>
37 <input type="submit" value="Add" tal:attributes="name string:${item/id}.type:record" i18n:attributes="value" />
38 </td>
39 </tr>
40 <tr>
41 <td colspan="4" class="spacing"></td>
42 </tr>
43 </div>
44 </table>
45 </form>
46 </div>
47 </body>
48
49 </html>