1 <html xmlns="http://www.w3.org/1999/xhtml"
2 metal:use-macro="here/main_template/macros/master">
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"/>
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>
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">
20 <th i18n:translate="">Type</th>
21 <th i18n:translate="">Name</th>
24 <div tal:repeat="item here/allowedContentTypes" tal:omit-tag="">
25 <tr tal:define="icon python:here.restrictedTraverse(item.getIcon())">
27 <img tal:attributes="src icon/absolute_url ; alt item/Title ; height icon/height ; width icon/width" i18n:attributes="alt"/>
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" />
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"/>
37 <input type="submit" value="Add" tal:attributes="name string:${item/id}.type:record" i18n:attributes="value" />
41 <td colspan="4" class="spacing"></td>