-
Notifications
You must be signed in to change notification settings - Fork 492
/
CommonScreens.xml
382 lines (356 loc) · 17.1 KB
/
CommonScreens.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
<!-- Included Screens -->
<screen name="states">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="states" location="${groovy:commonScreenLocations.states?commonScreenLocations.states:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="countries">
<section>
<actions>
<property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="countries" location="${groovy:commonScreenLocations.countries?commonScreenLocations.countries:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="cctypes">
<section>
<actions>
<script location="component://common/src/main/groovy/org/apache/ofbiz/common/CcTypes.groovy"/>
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="cctypes" location="${groovy:commonScreenLocations.countries?commonScreenLocations.countries:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="ccmonths">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="ccmonths" location="${groovy:commonScreenLocations.ccmonths?commonScreenLocations.ccmonths:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="ccyears">
<section>
<actions>
<set field="thisDate" from-field="nowTimestamp"/>
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="ccyears" location="${groovy:commonScreenLocations.ccyears?commonScreenLocations.ccyears:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!--
The following screen renders a generic link (implemented by an hidden form)
that can be included in other screens in the following way:
...
<section>
<actions>
<set field="genericLinkName" value="formName"/> The name of the hidden form (mandatory)
<set field="genericLinkText" value="Link message"/> The link text (mandatory)
<set field="genericLinkTarget" value="ApprovedProductRequirementsReport"/> The request name (mandatory)
<set field="genericLinkStyle" value="buttontext"/> The style of the link (optional)
<set field="genericLinkWindow" value="newWindow"/> The target window (optional): if set, a new browser window is created
<set field="excludeParameters" value="N"/> If not set to Y, the requestParameters are included in the form as hidden fields (optional, defaults to N)
</actions>
<widgets>
<include-screen name="genericLink" location="component://common/widget/CommonScreens.xml"/>
</widgets>
</section>
...
-->
<screen name="genericLink">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="genericLink" location="${groovy:commonScreenLocations.genericLink?commonScreenLocations.genericLink:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- decorator used in creating a response to an ajax request -->
<screen name="AjaxGlobalDecorator">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true" />
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="AjaxGlobalDecorator" location="${groovy:commonScreenLocations.AjaxGlobalDecorator?commonScreenLocations.AjaxGlobalDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!--
The following screen is used to generate Ajax list of options for autocomplete fields
-->
<screen name="ajaxAutocompleteOptions">
<section>
<actions>
<set field="autocompleteOptions" from-field="parameters.autocompleteOptions" />
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="ajaxAutocompleteOptions" location="${groovy:commonScreenLocations.ajaxAutocompleteOptions?commonScreenLocations.ajaxAutocompleteOptions:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- tiny screen rendering context initialization with theme and locale, intended to be included in screen decorators. Devs - please really carefull keep this simple and generic. -->
<screen name="MinimalActions">
<section>
<actions>
<script location="component://common/src/main/groovy/org/apache/ofbiz/common/InitTheme.groovy"/>
<set field="commonDecoratorLocation" from-field="layoutSettings.VT_COMMON_DECO_LOC" default-value="component://common-theme/widget/CommonScreens.xml" global="true"/>
<set field="initialLocaleComplete" type="String" value="${groovy:parameters?.userLogin?.lastLocale}" default-value="${groovy:locale.toString()}" global="true"/>
<!-- FIXME this is only temporary a more elaborate solution would be preferred, see OFBIZ-9241 -->
<set field="isEcommercePresent" value="${groovy:null != org.apache.ofbiz.base.util.UtilURL.fromOfbizHomePath('plugins/ecommerce/ofbiz-component.xml')}" type="Boolean" global="true"/>
</actions>
<widgets />
</section>
</screen>
<!-- Global screen rendering context initialization, intended to be included in screen decorators. Devs - please keep this simple and generic. you can sucharge it on the theme-->
<screen name="GlobalActions">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="GlobalActions" location="${groovy:commonScreenLocations.GlobalActions?commonScreenLocations.GlobalActions:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- Global decorator for General Screens/Pages -->
<screen name="GlobalDecorator">
<section>
<widgets>
<include-screen name="GlobalActions" />
<include-screen name="GlobalDecorator" location="${groovy:commonScreenLocations.GlobalDecorator?commonScreenLocations.GlobalDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- Global decorator for Lookup pop-up windows or layered CSS -->
<screen name="LookupDecorator">
<section>
<widgets>
<include-screen name="GlobalActions" />
<include-screen name="LookupDecorator" location="${groovy:commonScreenLocations.LookupDecorator?commonScreenLocations.LookupDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- Global decorator for Shortcut pop-up windows or layered CSS on webapp overview-->
<screen name="ShortcutDecorator">
<section>
<widgets>
<include-screen name="GlobalActions" />
<include-screen name="ShortcutDecorator" location="${groovy:commonScreenLocations.ShortcutDecorator?commonScreenLocations.ShortcutDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- Simple decorator (no application and menu bars); it can be used:
* for printer friendly html screens (no logo and no application bar, header and footer); a print button is also available at the top of the screen
* for simple PDF report (a simple header with the logo/date is rendered and a footer with page numbers)
-->
<screen name="SimpleDecorator">
<section>
<widgets>
<include-screen name="GlobalActions" />
<include-screen name="SimpleDecorator" location="${groovy:commonScreenLocations.SimpleDecorator?commonScreenLocations.SimpleDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- fo decorator for pdf documents (invoices, sales orders, purchase orders etc...). -->
<screen name="FoReportDecorator">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<include-screen name="GlobalActions" />
<include-screen name="FoReportDecorator" location="${groovy:commonScreenLocations.FoReportDecorator?commonScreenLocations.FoReportDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- Decorator for xsl-fo rendering -->
<screen name="GlobalFoDecorator">
<section>
<widgets>
<include-screen name="GlobalActions" />
<include-screen name="GlobalFoDecorator" location="${groovy:commonScreenLocations.GlobalFoDecorator?commonScreenLocations.GlobalFoDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!-- Default "error" page for XSL-FO based output. -->
<screen name="FoError">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="FoError" location="${groovy:commonScreenLocations.FoError?commonScreenLocations.FoError:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="login">
<section>
<actions>
<set field="titleProperty" value="PageTitleLogin" />
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="login" location="${groovy:commonScreenLocations.login?commonScreenLocations.login:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="impersonated">
<section>
<actions>
<set field="titleProperty" value="PageTitleImpersonated" />
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="impersonated" location="${groovy:commonScreenLocations.impersonated?commonScreenLocations.impersonated:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="ajaxNotLoggedIn">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="ajaxNotLoggedIn" location="${groovy:commonScreenLocations.ajaxNotLoggedIn?commonScreenLocations.ajaxNotLoggedIn:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="requirePasswordChange">
<section>
<actions>
<set field="userLoginId" from-field="parameters.USERNAME"/>
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="requirePasswordChange" location="${groovy:commonScreenLocations.requirePasswordChange?commonScreenLocations.requirePasswordChange:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="forgotPassword">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="forgotPassword" location="${groovy:commonScreenLocations.forgotPassword?commonScreenLocations.forgotPassword:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="GetUiLabels">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="GetUiLabels" location="${groovy:commonScreenLocations.GetUiLabels?commonScreenLocations.GetUiLabels:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="EventMessages">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="EventMessages" location="${groovy:commonScreenLocations.EventMessages?commonScreenLocations.EventMessages:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!--FindScreenDecorator: Sub Screen to display a search sub screen area.
contains sections :
* menu-bar
* search-options: option for the search
* search-results: result displayed after a search
-->
<screen name="FindScreenDecorator">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="FindScreenDecorator" location="${groovy:commonScreenLocations.FindScreenDecorator?commonScreenLocations.FindScreenDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!--DetailScreenDecorator: Sub Screen to show a sum up of
an object and its related data. Composed in six sections :
* menu-bar
* breadcrumbs: the pathway of this object
* summary: that display main data of the object
* action: action cover the object (modification, duplicate, ...)
* tab-bar: to give access to related data into detail section
* detail: area that will display related data
-->
<screen name="DetailScreenDecorator">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="DetailScreenDecorator" location="${groovy:commonScreenLocations.DetailScreenDecorator?commonScreenLocations.DetailScreenDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<!--EmbeddedDecorator: Decorator can be use as main decorator or sub screen decorator to display a sub screen area.
contains sections :
* menu-bar
* action: search filtering, history display…
* single: display element as single
* content: display element as content
* list: display element as list
-->
<screen name="EmbeddedDecorator">
<section>
<widgets>
<include-screen name="MinimalActions"/>
<include-screen name="EmbeddedDecorator" location="${groovy:commonScreenLocations.EmbeddedDecorator?commonScreenLocations.EmbeddedDecorator:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="help">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="help" location="${groovy:commonScreenLocations.help?commonScreenLocations.help:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="viewBlocked">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="viewBlocked" location="${groovy:commonScreenLocations.viewBlocked?commonScreenLocations.viewBlocked:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
<screen name="geoChart">
<section>
<widgets>
<include-screen name="MinimalActions" />
<include-screen name="geoChart" location="${groovy:commonScreenLocations.geoChart?commonScreenLocations.geoChart:commonDecoratorLocation}"/>
</widgets>
</section>
</screen>
</screens>