Files
ofbiz-framework/themes/common/widget/Theme.xml
T
Nicolas Malin 6293b943da Fixed: javascript problem detected on date (OFBIZ-9666, OFBIZ-9667, OFBIZ-9668) and lookup field (OFBIZ-9657) after the common-theme migration (OFBIZ-9138 Create a common theme)
Two fixes, remove duplication load of jquery/ui/js/jquery-ui-1.10.3.min.js and move moment-timezone-with-data.min.js, moment-with-locales.min.js and setUserLocale.js in screen action definition to escape js unresvolve variable.
Reorganize import like before the common-theme migration
Thanks to Rohit Rai, Jacques and Deepak for their help to find and resolve theses issues

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806792 13f79535-47bb-0310-9956-ffa450edef68
2017-08-31 13:52:26 +00:00

161 lines
11 KiB
XML

<?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.
-->
<theme name="common"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://ofbiz.apache.org/Widget-Theme" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Theme http://ofbiz.apache.org/dtds/widget-theme.xsd">
<visual-themes><!--List of visual theme contains to this theme components-->
<visual-theme id="COMMON" display-name="Common Theme">
<description>${util:label('CommonThemeUiLabels', 'CommonThemeVisualThemeDescription', locale)}</description>
<screenshot location="/images/spinner.gif"/>
</visual-theme>
</visual-themes>
<widget-properties><!--Transversal properties relative to ofbiz widget component-->
<default-view-size value="20"/>
<autocompleter
default-view-size="10"
default-min-lenght="2"
default-delay="300"
display-return-field="true"/>
<lookup
position="top-left"
width="640"
height="500"
show-description="Y"/>
<layered-modal
width="800"
height="600"/>
</widget-properties>
<theme-properties> <!--specific properties dedicate to this theme -->
<property name="jgrowlPosition" value="center" type="String"/><!--possible value: top-left, top-right, bottom-left, bottom-right, center-->
<property name="jgrowlWidth" value="800" type="Integer"/>
<property name="jgrowlHeight" value="" type="Integer"/>
<property name="jgrowlSpeed" value="100" type="Integer"/>
<!--template location-->
<property name="VT_SHORTCUT_ICON" value="/images/ofbiz.ico"/>
<property name="VT_HDR_TMPLT_LOC" value="component://flatgrey/template/Header.ftl"/><!--use flatgrey to wait the new design-->
<property name="VT_FTR_TMPLT_LOC" value="component://flatgrey/template/Footer.ftl"/>
<property name="VT_NAV_TMPLT_LOC" value="component://flatgrey/template/AppBar.ftl"/>
<property name="VT_MSG_TMPLT_LOC" value="component://common-theme/template/includes/Messages.ftl"/>
<!--javascript lib-->
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/jquery-1.11.0.min.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/jquery-migrate-1.2.1.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/ui/js/jquery-ui-1.10.3.min.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon.min-1.4.3.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/plugins/fjTimer/jquerytimer-min.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/plugins/jquery.maskedinput-1.3.1.min.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/plugins/jeditable/jquery.jeditable.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/plugins/validate/jquery.validate.min.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/OpenLayers-2.13.1.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/OfbizUtil.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/fieldlookup.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/date/date.format-1.2.3-min.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/date/date.timezone-min.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/miscAjaxFunctions.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/selectMultipleRelatedValues.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/util.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/plugins/jsTree/jquery.jstree.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/jquery/ui/js/jquery.cookie-1.4.0.js"/>
<property name="VT_HDR_JAVASCRIPT['add']" value="/images/date/FromThruDateCheck.js"/>
<!--Css style-->
</theme-properties>
<templates><!-- Freemarker template use by this theme to render widget model-->
<template name="screen" type="html" content-type="UTF-8" encoding="none" encoder="html" compress="false">
<template-file widget="screen" location="component://common-theme/template/macro/HtmlScreenMacroLibrary.ftl"/>
<template-file widget="form" location="component://common-theme/template/macro/HtmlFormMacroLibrary.ftl"/>
<template-file widget="tree" location="component://common-theme/template/macro/HtmlTreeMacroLibrary.ftl"/>
<template-file widget="menu" location="component://common-theme/template/macro/HtmlMenuMacroLibrary.ftl"/>
</template>
<template name="screenxml" type="xml" content-type="UTF-8" encoding="none" encoder="xml">
<template-file widget="screen" location="component://common-theme/template/macro/XmlScreenMacroLibrary.ftl"/>
<template-file widget="form" location="component://common-theme/template/macro/XmlFormMacroLibrary.ftl"/>
<template-file widget="tree" location="component://common-theme/template/macro/XmlTreeMacroLibrary.ftl"/>
</template>
<template name="screenxls" type="xls" content-type="application/vnd.ms-excel" encoding="none" encoder="html">
<template-file widget="screen" location="component://common-theme/template/macro/XlsScreenMacroLibrary.ftl"/>
<template-file widget="form" location="component://common-theme/template/macro/XlsFormMacroLibrary.ftl"/>
<template-file widget="tree" location="component://common-theme/template/macro/XlsTreeMacroLibrary.ftl"/>
</template>
<template name="screenfop" type="xsl-fo" content-type="application/pdf" encoding="none">
<template-file widget="screen" location="component://common-theme/template/macro/FoScreenMacroLibrary.ftl"/>
<template-file widget="form" location="component://common-theme/template/macro/FoFormMacroLibrary.ftl"/>
<template-file widget="tree" location="component://common-theme/template/macro/FoTreeMacroLibrary.ftl"/>
</template>
<template name="screentext" type="text" content-type="UTF-8" encoding="none">
<template-file widget="screen" location="component://common-theme/template/macro/TextScreenMacroLibrary.ftl"/>
<template-file widget="form" location="component://common-theme/template/macro/TextFormMacroLibrary.ftl"/>
<template-file widget="tree" location="component://common-theme/template/macro/TextTreeMacroLibrary.ftl"/>
</template>
<template name="screencsv" type="csv" content-type="UTF-8" encoding="none" encoder="xml">
<template-file widget="screen" location="component://common-theme/template/macro/CsvScreenMacroLibrary.ftl"/>
<template-file widget="form" location="component://common-theme/template/macro/CsvFormMacroLibrary.ftl"/>
<template-file widget="tree" location="component://common-theme/template/macro/CsvTreeMacroLibrary.ftl"/>
</template>
</templates>
<common-screens><!--list all common screen and decorator global to each application that each theme can be surcharge or not and use the screen present on common theme-->
<root-decorator default-location="component://common-theme/widget/CommonScreens.xml">
<screen name="AjaxGlobalDecorator"/>
<screen name="ajaxAutocompleteOptions"/>
<screen name="GlobalActions"/>
<screen name="GlobalDecorator"/>
<screen name="LookupDecorator"/>
<screen name="SimpleDecorator"/>
<screen name="FoReportDecorator"/>
<screen name="GlobalFoDecorator"/>
<screen name="LookupHelpDecorator" location="component://common-theme/widget/HelpScreens.xml"/>
</root-decorator>
<subtype-decorator default-location="component://common-theme/widget/CommonScreens.xml">
<screen name="FindScreenDecorator"/>
</subtype-decorator>
<generic-screen default-location="component://common-theme/widget/CommonScreens.xml">
<screen name="geoChart"/>
<screen name="EventMessages"/>
<screen name="countries"/>
<screen name="states"/>
<screen name="cctypes"/>
<screen name="ccmonths"/>
<screen name="ccyears"/>
<screen name="genericLink"/>
<screen name="ajaxAutocompleteOptions"/>
<screen name="FoError"/>
<screen name="login"/>
<screen name="ajaxNotLoggedIn"/>
<screen name="requirePasswordChange"/>
<screen name="forgotPassword_step1"/>
<screen name="forgotPassword_step2"/>
<screen name="forgotPassword"/>
<screen name="help"/>
<screen name="viewBlocked"/>
<screen name="TimeDuration" location="component://common-theme/widget/LookupScreens.xml"/>
<screen name="ListVisualThemes" location="component://common-theme/widget/LookupScreens.xml"/>
<screen name="ListSetCompanies" location="component://common-theme/widget/LookupScreens.xml"/>
<screen name="ListLocales" location="component://common-theme/widget/LookupScreens.xml"/>
<screen name="ListTimezones" location="component://common-theme/widget/LookupScreens.xml"/>
<screen name="showDocumentHelp" location="component://common-theme/widget/HelpScreens.xml"/>
<screen name="navigateHelp" location="component://common-theme/widget/HelpScreens.xml"/>
<screen name="ShowHelp" location="component://common-theme/widget/HelpScreens.xml"/>
</generic-screen>
</common-screens>
</theme>