Annotation of kupu/plone/resource_types.pt, revision 1.1.1.1
1.1 dwinter 1: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2: lang="en"
3: metal:use-macro="here/kupu_config/macros/master"
4: i18n:domain="plone">
5:
6: <body>
7:
8: <div class="documentContent" metal:fill-slot="kupu_content">
9: <h3>Kupu Configuration</h3>
10: <form action="" method="post" tal:attributes="action here/absolute_url">
11: <p>While libraries provide abstract locations for objects of any type,
12: Kupu distinguishes objects by resource type. For example, a user might
13: request a library showing objects to link to or a library showing
14: objects to be inserted into a document. The abstract location
15: (library) might be the same, but the former library would contain
16: documents, the latter images.</p>
17:
18: <p>This management screen allows you to define resource types using a
19: list of portal types. A special resource type, <code>collection</code>,
20: identifies portal types that are to be treated as collections.</p>
21:
22: <fieldset>
23: <legend>Map resource types</legend>
24:
25: <table>
26:
27: <tr>
28: <td></td>
29: <th>Resource type</th>
30: <th>Portal types</th>
31: </tr>
32:
33: <tr tal:repeat="type_tuple here/zmi_get_type_mapping">
34: <tal:with define="resource_type python:type_tuple[0];
35: portal_types python:type_tuple[1]">
36: <td valign="top">
37: <input type="checkbox" name="resource_types:list"
38: tal:attributes="value resource_type" />
39: <input type="hidden" name="type_info.old_type:records"
40: tal:attributes="value resource_type" />
41: </td>
42:
43: <td valign="top">
44: <input type="text" name="type_info.resource_type:records"
45: tal:attributes="value resource_type" />
46: </td>
47:
48: <td valign="top">
49: <textarea name="type_info.portal_types:lines:records"
50: rows="5" cols="50"
51: style="width:40em;"
52: tal:content="python:'\n'.join(portal_types)">
53: </textarea>
54: </td>
55: </tal:with>
56: </tr>
57: <tr>
58: <td colspan="3">
59: <input class="context" type="submit" name="zmi_update_resource_types:method" value="Save" />
60: <input class="context" type="submit" name="zmi_delete_resource_types:method" value="Delete" />
61: </td>
62: </tr>
63:
64: </table>
65: </fieldset>
66:
67: <fieldset>
68: <legend>Add new resource type</legend>
69: <table>
70: <tr>
71: <th>Resource type</th>
72: <th>Portal types</th>
73: </tr>
74: <tr>
75: <td valign="top"><input type="text" name="resource_type" /></td>
76: <td valign="top">
77: <textarea name="portal_types:lines" rows="5" cols="30"></textarea>
78: </td>
79: </tr>
80: <tr>
81: <td colspan="2"><input class="context" type="submit" name="zmi_add_resource_type:method" value="Add" /></td>
82: </tr>
83: </table>
84: </fieldset>
85: </form>
86:
87: </div>
88: </body>
89: </html>
90:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>