]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
c3d2f1073bb53bb7852dc33d500597105e11ab86
[tmp/jakarta-migration.git] /
1 <?xml version="1.0"?>
2 <!--
3     Copyright 2009 University of California at Berkeley
4     Licensed under the Educational Community License (ECL), Version 2.0.
5     You may not use this file except in compliance with this License.
6
7     You may obtain a copy of the ECL 2.0 License at
8     https://source.collectionspace.org/collection-space/LICENSE.txt
9
10     Document   : layouts-contrib.xml
11     Created on : $LastChangedDate: $
12     Author     : $LastChangedBy: $
13     Revision   : $LastChangedRevision: $
14     Description:
15         Nuxeo webapp layout for CollectionSpace Relation doctype
16 -->
17 <component name="org.collectionspace.relation.layouts.webapp">
18
19     <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
20     point="layouts">
21
22         <layout name="relation">
23             <templates>
24                 <template mode="any">/layouts/layout_default_template.xhtml</template>
25             </templates>
26
27             <rows>
28                 <row>
29                     <widget>relationtype</widget>
30                 </row>
31             </rows>
32
33             <widget name="relationtype" type="template">
34                 <fields>
35                     <field>relation:relationtype</field>
36                 </fields>
37                 <properties mode="any">
38                     <property name="template">
39             /widgets/complex_widget_template.xhtml
40                     </property>
41                 </properties>
42
43                 <subWidgets>
44
45                     <widget name="document-id-1" type="text">
46                         <labels>
47                             <label mode="any">Document ID: 1</label>
48                         </labels>
49                         <translated>true</translated>
50                         <fields>
51                             <field schema="relation">relation:document-id-1</field>
52                         </fields>
53                         <properties widgetMode="edit">
54                             <property name="javax.faces.Character">javax.faces.convert.CharacterConverter</property>
55                             <property name="styleClass">dataInputText</property>
56                         </properties>
57                     </widget>
58
59                     <widget name="document-type-1" type="text">
60                         <labels>
61                             <label mode="any">Document Type: 1</label>
62                         </labels>
63                         <translated>true</translated>
64                         <fields>
65                             <field schema="relation">relation:document-type-1</field>
66                         </fields>
67                         <properties widgetMode="edit">
68                             <property name="styleClass">dataInputText</property>
69                         </properties>
70                     </widget>
71
72                     <widget name="document-id-2" type="text">
73                         <labels>
74                             <label mode="any">Document ID: 2</label>
75                         </labels>
76                         <translated>true</translated>
77                         <fields>
78                             <field schema="relation">relation:document-id-2</field>
79                         </fields>
80                         <properties widgetMode="edit">
81                             <property name="styleClass">dataInputText</property>
82                         </properties>
83                     </widget>
84
85                     <widget name="document-type-2" type="text">
86                         <labels>
87                             <label mode="any">Document Type: 2</label>
88                         </labels>
89                         <translated>true</translated>
90                         <fields>
91                             <field schema="relation">relation:document-type-2</field>
92                         </fields>
93                         <properties widgetMode="edit">
94                             <property name="styleClass">dataInputText</property>
95                         </properties>
96                     </widget>
97
98                 </subWidgets>
99             </widget>
100
101         </layout>
102     </extension>
103 </component>
104