This repository has been archived by the owner on May 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 551
/
CommonScreens.xml
782 lines (753 loc) · 41.7 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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
<?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"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<!-- Included Screens -->
<screen name="states">
<section>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/states.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="countries">
<section>
<actions>
<property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/countries.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="cctypes">
<section>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/cctypes.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="ccmonths">
<section>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/ccmonths.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="ccyears">
<section>
<actions>
<set field="thisDate" from-field="nowTimestamp"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/ccyears.ftl"/></html></platform-specific>
</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>
<platform-specific><html><html-template location="component://common/webcommon/includes/genericLink.ftl"/></html></platform-specific>
</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>
<platform-specific>
<html>
<html-template location="component://common/webcommon/includes/htmlheader-for-ajax.ftl" />
</html>
</platform-specific>
<decorator-section-include name="body" />
<platform-specific>
<html>
<html-template location="component://common/webcommon/includes/htmlfooter-for-ajax.ftl" />
</html>
</platform-specific>
</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>
<decorator-screen name="AjaxGlobalDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://common/webcommon/includes/ajaxAutocompleteOptions.ftl" /></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- Global screen rendering context initialization, intended to be included in screen decorators. Devs - please keep this simple and generic. -->
<screen name="GlobalActions">
<section>
<actions>
<!-- The default (global) java scripts -->
<!-- jQuery part -->
<!-- Load available JS Language Files -->
<set field="initialLocaleComplete" type="String" value="${groovy:parameters?.userLogin?.lastLocale}" default-value="${groovy:locale.toString()}" />
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.datejs.getFilePath(initialLocaleComplete)}" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.jquery.getFilePath(initialLocaleComplete)}" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.validation.getFilePath(initialLocaleComplete)}" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.dateTime.getFilePath(initialLocaleComplete)}" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-1.0.5.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jquery.maskedinput-1.2.2.min.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jquery.upload.js" global="true"/><!--#Eam# jquery-submit-upload-file -->
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/js/jquery-ui-1.9.0.custom.min.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jeditable/jquery.jeditable.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/validate/jquery.validate.min.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/fjTimer/jquerytimer-min.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js" global="true" />
<set field="layoutSettings.javaScripts[+0]" value="/images/portlet.js" global="true"/><!--#Eam# portletWidget -->
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.8.2.min.js" global="true" />
<!-- jQuery CSSs -->
<set field="layoutSettings.styleSheets[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css" global="true" />
<set field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true" />
<set field="layoutSettings.javaScripts[]" value="/images/fieldlookup.js" global="true" />
<set field="layoutSettings.javaScripts[]" value="/images/GooglemapMarkers.js" global="true" />
<set field="layoutSettings.javaScripts[]" value="/images/getDependentDropdownValues.js" global="true" />
<set field="layoutSettings.javaScripts[]" value="/images/selectMultipleRelatedValues.js" global="true" />
<set field="visualThemeId" from-field="userPreferences.VISUAL_THEME" global="true" />
<service service-name="getVisualThemeResources">
<field-map field-name="visualThemeId" />
<field-map field-name="themeResources" from-field="layoutSettings" />
</service>
<set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true" />
</actions>
<widgets />
</section>
</screen>
<!-- Global decorator for General Screens/Pages -->
<screen name="GlobalDecorator">
<section>
<widgets>
<include-screen name="GlobalActions" />
<section>
<actions>
<set field="layoutSettings.commonHeaderImageLinkUrl" from-field="layoutSettings.commonHeaderImageLinkUrl" default-value="main" global="true" />
<set field="iconsLocation" from-field="layoutSettings.VT_ICONS_LOC[0]" default-value="/images/icons/famfamfam" global="true" />
<set field="headerTemplateLocation" from-field="layoutSettings.VT_HDR_TMPLT_LOC[0]" />
<set field="footerTemplateLocation" from-field="layoutSettings.VT_FTR_TMPLT_LOC[0]" />
<set field="appbarTemplateLocation" from-field="layoutSettings.VT_NAV_TMPLT_LOC[0]" />
<set field="appbarOpenTemplateLocation" from-field="layoutSettings.VT_NAV_OPEN_TMPLT[0]" />
<set field="appbarCloseTemplateLocation" from-field="layoutSettings.VT_NAV_CLOSE_TMPLT[0]" />
<set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]" />
<!--#Bam# icons-purpose-->
<set field="iconsPurposeProp" from-field="layoutSettings.VT_ICONS_PURP[0]" default-value="iconsPurpose"/>
<property-map resource="${iconsPurposeProp}" map-name="iconsPurpose" global="true" />
<!--#Eam# icons-purpose-->
<set field="layoutSettings.suppressTab" value="ofbizsetup"/><!-- diseable ofbiz setup by default -->
</actions>
<widgets />
</section>
<section>
<condition>
<if-empty field="parameters.ajaxUpdateEvent" />
</condition>
<widgets>
<!-- render header -->
<platform-specific>
<html>
<html-template location="${headerTemplateLocation}" />
</html>
</platform-specific>
<!-- render appbar or its opening part -->
<section name="Render-Main-Nav">
<condition>
<not>
<if-empty field="appbarOpenTemplateLocation" />
</not>
</condition>
<widgets>
<platform-specific>
<html>
<html-template location="${appbarOpenTemplateLocation}" />
</html>
</platform-specific>
</widgets>
<fail-widgets>
<platform-specific>
<html>
<html-template location="${appbarTemplateLocation}" />
</html>
</platform-specific>
</fail-widgets>
</section>
</widgets>
</section>
<section>
<condition>
<if-empty field="parameters.ajaxUpdateEvent" />
</condition>
<widgets>
<!-- render appheader: both menu widget style and ftl template style menus are supported-->
<section name="Render-App-Nav">
<condition>
<not>
<if-empty field="userLogin" />
</not>
</condition>
<widgets>
<section>
<condition>
<not>
<if-empty field="appheaderTemplate" />
</not>
</condition>
<widgets>
<platform-specific>
<html>
<html-template location="${appheaderTemplate}" />
</html>
</platform-specific>
</widgets>
<fail-widgets>
<section>
<condition>
<not>
<if-empty field="parameters.applicationTitle" />
</not>
</condition>
<widgets>
<label style="apptitle">${parameters.applicationTitle}</label>
</widgets>
</section>
<section>
<condition>
<not>
<if-empty field="applicationMenuLocation" />
</not>
</condition>
<widgets>
<include-menu name="${applicationMenuName}" location="${applicationMenuLocation}" />
</widgets>
</section>
</fail-widgets>
</section>
</widgets>
<fail-widgets>
<!-- better to just not include this, the CommonAppBarMenu doesn't show anything by default if the user isn't logged in, causing a funny empty menu: <include-menu name="CommonAppBarMenu" location="component://common/widget/CommonMenus.xml"/> -->
</fail-widgets>
</section>
</widgets>
</section>
<!-- render the appbar closing part -->
<section>
<condition>
<and>
<if-empty field="parameters.ajaxUpdateEvent" />
<not>
<if-empty field="appbarCloseTemplateLocation" />
</not>
</and>
</condition>
<widgets>
<platform-specific>
<html>
<html-template location="${appbarCloseTemplateLocation}" />
</html>
</platform-specific>
</widgets>
</section>
<!-- render messages -->
<platform-specific>
<html>
<html-template location="${messagesTemplateLocation}" />
</html>
</platform-specific>
<!-- render content area -->
<container style="contentarea">
<decorator-section-include name="pre-body" />
<container id="column-container">
<section>
<condition>
<if-empty-section section-name="left-column" />
</condition>
<widgets>
<container id="content-main-section">
<decorator-section-include name="body" />
</container>
</widgets>
<fail-widgets>
<container style="left">
<decorator-section-include name="left-column" />
</container>
<container id="content-main-section" style="leftonly">
<container style="no-clear" id="centerdiv">
<decorator-section-include name="body" />
</container>
</container>
</fail-widgets>
</section>
<container style="clear"></container>
</container>
</container>
<section>
<condition>
<if-empty field="parameters.ajaxUpdateEvent" />
</condition>
<widgets>
<!-- render footer -->
<section name="Render-Footer">
<condition>
<if-empty field="applicationFooterTemplate" />
</condition>
<widgets>
<platform-specific>
<html>
<html-template location="${footerTemplateLocation}" />
</html>
</platform-specific>
</widgets>
<fail-widgets>
<platform-specific>
<html>
<html-template location="${applicationFooterTemplate}" />
</html>
</platform-specific>
</fail-widgets>
</section>
</widgets>
</section>
</widgets>
</section>
</screen>
<!-- Global decorator for Lookup pop-up windows or layered CSS -->
<screen name="LookupDecorator">
<section>
<condition>
<not><if-compare operator="equals" value="Y" field="parameters.ajaxLookup"/></not>
</condition>
<widgets>
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="getUserPreferenceGroup" result-map="prefResult">
<field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
</service>
<set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/>
<property-map resource="general" map-name="generalProperties" global="true"/>
<set field="visualThemeId" from-field="userPreferences.VISUAL_THEME" global="true"/>
<service service-name="getVisualThemeResources">
<field-map field-name="visualThemeId"/>
<field-map field-name="themeResources" from-field="layoutSettings"/>
</service>
<set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/images/fieldlookup.js" global="true"/>
<set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/messages.ftl"/>
<!--#Bam# icons-purpose-->
<set field="iconsPurposeProp" from-field="layoutSettings.VT_ICONS_PURP[0]" default-value="iconsPurpose"/>
<property-map resource="${iconsPurposeProp}" map-name="iconsPurpose" global="true" />
<!--#Eam# icons-purpose-->
</actions>
<widgets>
<section>
<condition>
<if-compare value="layer" operator="not-equals" field="parameters.presentation"/>
</condition>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/lookup.ftl" /></html></platform-specific>
</widgets>
</section>
<platform-specific><html><html-template location="${messagesTemplateLocation}"/></html></platform-specific>
<section>
<condition>
<not><if-empty-section section-name="body"/></not>
</condition>
<widgets>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<screenlet title="${title}" id="findScreenlet" collapsible="true" padded="false">
<container id="search-options">
<decorator-section-include name="search-options"/>
</container>
</screenlet>
<screenlet>
<container id="search-results">
<decorator-section-include name="search-results"/>
</container>
</screenlet>
</fail-widgets>
</section>
<section>
<condition>
<if-compare value="layer" operator="not-equals" field="parameters.presentation"/>
</condition>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/lookupFooter.ftl"/></html></platform-specific>
</widgets>
</section>
</widgets>
</section>
</widgets>
<fail-widgets>
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="searchType" from-field="parameters.searchType" default-value="${searchType}"/>
<script location="component://common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy"/>
</actions>
<widgets>
<decorator-screen name="AjaxGlobalDecorator">
<decorator-section name="body">
<platform-specific>
<html>
<html-template location="component://common/webcommon/includes/ajaxAutocompleteOptions.ftl" />
</html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</fail-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>
<actions>
<!-- The default (global) stylesheet -->
<set field="layoutSettings.styleSheets[+0]" value="/images/maincss.css" global="true"/>
<set field="layoutSettings.rtlStyleSheets[+0]" value="/images/mainrtl.css" global="true"/>
<!-- The default (global) java scripts -->
<!-- jQuery part -->
<!-- Load available JS Language Files -->
<set field="initialLocaleComplete" type="String" value="${groovy:parameters?.userLogin?.lastLocale}" default-value="${groovy:locale.toString()}"/>
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.datejs.getFilePath(initialLocaleComplete)}" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.jquery.getFilePath(initialLocaleComplete)}" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.validation.getFilePath(initialLocaleComplete)}" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-1.0.5.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/js/jquery-ui-1.9.0.custom.min.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jeditable/jquery.jeditable.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/fjTimer/jquerytimer-min.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/validate/jquery.validate.min.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/portlet.js" global="true"/><!--#Eam# portletWidget -->
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.8.2.min.js" global="true"/>
<!-- jQuery CSSs -->
<set field="layoutSettings.styleSheets[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/images/fieldlookup.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/images/GooglemapSimple.js" global="true"/>
<!-- The default (global) shortcut icon -->
<set field="layoutSettings.shortcutIcon" value="/images/ofbiz.ico" global="true"/>
<!-- The settings below are used for xsl-fo screens -->
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="logoImageUrl" value="/images/ofbiz_logo.gif"/>
<!--#Bam# icons-purpose-->
<set field="iconsPurposeProp" from-field="layoutSettings.VT_ICONS_PURP[0]" default-value="iconsPurpose"/>
<property-map resource="${iconsPurposeProp}" map-name="iconsPurpose" global="true" />
<!--#Eam# icons-purpose-->
<!--<set field="defaultFontFamily" value="Arial"/>-->
</actions>
<widgets>
<!-- render header -->
<platform-specific>
<html><html-template location="component://common/webcommon/includes/simple.ftl"/></html>
<xsl-fo><html-template location="component://common/webcommon/includes/simple.fo.ftl"/></xsl-fo>
<xml><html-template location="component://common/webcommon/includes/minimal-decorator.ftl"/></xml>
</platform-specific>
</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"/>
<set field="logoImageUrl" value="/images/ofbiz_logo.gif"/>
<!--<set field="defaultFontFamily" value="Arial"/>-->
</actions>
<widgets>
<platform-specific><xsl-fo><html-template location="component://common/webcommon/includes/reportTemplate.fo.ftl"/></xsl-fo></platform-specific>
</widgets>
</section>
</screen>
<!-- Decorator for xsl-fo rendering -->
<screen name="GlobalFoDecorator">
<section>
<actions>
<set field="layoutSettings.commonHeaderImageUrl" value="/images/ofbiz_logo.gif"/>
</actions>
<widgets>
<platform-specific>
<xsl-fo>
<html-template location="component://common/webcommon/includes/fo/start.fo.ftl"/>
<html-template location="component://common/webcommon/includes/fo/basic-header.fo.ftl"/>
<html-template location="component://common/webcommon/includes/fo/basic-footer.fo.ftl"/>
</xsl-fo>
</platform-specific>
<decorator-section-include name="body"/>
<platform-specific><xsl-fo><html-template location="component://common/webcommon/includes/fo/end.fo.ftl"/></xsl-fo></platform-specific>
</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"/>
<set field="logoImageUrl" value="/images/ofbiz_logo.gif"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<!-- <platform-specific><xsl-fo><html-template location="component://common/webcommon/error.fo.ftl"/></xsl-fo></platform-specific> -->
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="login">
<section>
<actions>
<set field="titleProperty" value="PageTitleLogin" />
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://common/webcommon/login.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ajaxNotLoggedIn">
<section>
<widgets>
<decorator-screen name="AjaxGlobalDecorator">
<decorator-section name="body">
<label style="message" text="${uiLabelMap.CommonSessionTimeoutPleaseLogIn}"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="requirePasswordChange">
<section>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://common/webcommon/changePassword.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="forgotPassword">
<section>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://common/webcommon/forgotPassword.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EventMessages">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="FindScreenDecorator">
<section>
<widgets>
<section>
<condition>
<if-empty field="titleProperty"/>
</condition>
<widgets>
<container style="page-title"><label text="${title}"></label></container>
</widgets>
<fail-widgets>
<container style="page-title"><label text="${uiLabelMap[titleProperty]}"></label></container>
</fail-widgets>
</section>
<decorator-section-include name="menu-bar"/>
<container style="clear"/>
<screenlet id="searchOptions" name="findScreenlet" collapsible="true" title="${uiLabelMap.CommonSearchOptions}">
<container id="search-options">
<decorator-section-include name="search-options" />
</container>
</screenlet>
<screenlet padded="false">
<label style="h3" text="${uiLabelMap.CommonSearchResults}"/>
<container id="search-results">
<decorator-section-include name="search-results"/>
</container>
</screenlet>
</widgets>
</section>
</screen>
<screen name="help">
<section>
<actions>
<set field="titleProperty" value="PageTitleHelp"></set>
<property-map resource="CommonHelpUiLabels" map-name="uiLabelMap" global="true"/>
<set field="helpText" value="${uiLabelMap[parameters.topic]}" default-value="${uiLabelMap.HelpNotFound}"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator">
<decorator-section name="body">
<label style="h1">${uiLabelMap.PageTitleHelp}</label>
<label style="h3">${helpText}</label>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="viewBlocked">
<section>
<actions>
<set field="titleProperty" value="PageTitleViewBlocked"></set>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/viewBlocked.ftl"/></html></platform-specific>
<platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="geoChart">
<section>
<actions>
<set field="titleProperty" value="PageTitleCommonGeoLocation"/>
</actions>
<widgets>
<platform-specific>
<html><html-template location="component://common/webcommon/includes/geolocation.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
<!--#Bam# portletUiLabelDecorator : manage standard portlet decorator -->
<screen name="uiLabelDecorator">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true" />
<property-map resource="general" map-name="generalProperties" global="true"/>
<set field="defaultVisualThemeId" from-field="generalProperties.defaultVisualThemeId" default-value="SMOOTH_FEATHER"/>
<set field="visualThemeId" from-field="userPreferences.VISUAL_THEME" default-value="${defaultVisualThemeId}" global="true"/>
<service service-name="getVisualThemeResources">
<field-map field-name="visualThemeId"/>
<field-map field-name="themeResources" from-field="layoutSettings"/>
</service>
<set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true"/>
<set field="iconsLocation" from-field="layoutSettings.VT_ICONS_LOC[0]" default-value="/images/icons/famfamfam" global="true"/>
<set field="iconsPurposeProp" from-field="layoutSettings.VT_ICONS_PURP[0]" default-value="iconsPurpose"/>
<property-map resource="${iconsPurposeProp}" map-name="iconsPurpose" global="true" />
</actions>
<widgets>
<section>
<condition>
<if-empty field="includedInPage"/>
</condition>
<widgets>
<platform-specific>
<html>
<html-template location="component://common/webcommon/includes/messages.ftl" />
</html>
</platform-specific>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="portletUiLabelDecorator">
<section>
<widgets>
<decorator-screen name="uiLabelDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-section-include name="body" />
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- can be use for all portalPage build like exampleMgmt -->
<screen name="ShowCommonDetailPortlet">
<section>
<actions>
<set field="defaultdetailPortletId" from-field="detailCommonPortletId" from-scope="user" default-value="CommonInfo"/>
<set field="portalPortletId" from-field="parameters.portalPortletId" default-value="${defaultdetailPortletId}"/>
<set field="detailCommonPortletId" from-field="portalPortletId" to-scope="user"/>
<set field="portalPageId" from-field="parameters.portalPageId"/>
<set field="parameters.areaId" value="PP_${portalPageId}CommonDetail00001"/>
<set field="portletSeqId" from-field="parameters.portletSeqId" default-value="00001"/>
</actions>
<widgets>
<decorator-screen name="portletUiLabelDecorator">
<decorator-section name="body">
<include-portal-page id="${portalPageId}" portalPortletId="${portalPortletId}" portletSeqId="${portletSeqId}"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!--#Eam# portletUiLabelDecorator -->
</screens>