framework/webtools/widget/LabelManagerScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="SearchLabels">
<section>
<condition>
<if-has-permission permission="LABEL_MANAGER_VIEW"/>
</condition>
<actions>
<set field="titleProperty" value="WebtoolsLabelManagerFindLabels"/>
<set field="activeSubMenuItem" value="labels"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLabelDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/SearchLabels.ftl"/></html></platform-specific>
</decorator-section>
<decorator-section name="search-results">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/ViewLabels.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
<!--
<screenlet id="ViewHardcodedLabelsPanel" title="${uiLabelMap.WebtoolsLabelManagerHardcoded}" collapsible="false">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl"/></html></platform-specific>
</screenlet>
-->
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm">${uiLabelMap.WebtoolsLabelManagerSecurityError}</label>
</fail-widgets>
</section>
</screen>
<screen name="UpdateLabel">
<section>
<condition>
<if-has-permission permission="LABEL_MANAGER_VIEW"/>
</condition>
<actions>
<set field="titleProperty" value="WebtoolsLabelManagerAddNew"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLabelDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/UpdateLabel.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm">${uiLabelMap.WebtoolsLabelManagerSecurityError}</label>
</fail-widgets>
</section>
</screen>
<screen name="ViewReferences">
<section>
<condition>
<if-has-permission permission="LABEL_MANAGER_VIEW"/>
</condition>
<actions>
<set field="titleProperty" value="WebtoolsLabelManagerViewReferences"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewReferences.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLabelDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/ViewReferences.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm">${uiLabelMap.WebtoolsLabelManagerSecurityError}</label>
</fail-widgets>
</section>
</screen>
<screen name="ViewFile">
<section>
<condition>
<if-has-permission permission="LABEL_MANAGER_VIEW"/>
</condition>
<actions>
<set field="titleProperty" value="WebtoolsLabelManagerViewFile"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLabelDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="ViewFilePanel">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/ViewFile.ftl"/></html></platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm">${uiLabelMap.WebtoolsLabelManagerSecurityError}</label>
</fail-widgets>
</section>
</screen>
<!-- SCIPIO -->
<screen name="EntityLabels">
<section>
<actions>
<set field="titleProperty" value="WebtoolsEntityLabels"/>
<set field="activeSubMenuItem" value="EntityLabels"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/labelmanager/EntityLabels.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLabelDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="LABEL_MANAGER_VIEW"/>
</condition>
<widgets>
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/EntityLabels.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm">${uiLabelMap.WebtoolsLabelManagerSecurityError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- FIXME
<screen name="SystemProperties">
<section>
<condition>
<if-has-permission permission="LABEL_MANAGER_VIEW"/>
</condition>
<actions>
<set field="titleProperty" value="WebtoolsEntityLabels"/>
<set field="activeSubMenuItem" value="SystemProperties"/>
<script lang="groovy"><![CDATA[
]]></script>
</actions>
<widgets>
<decorator-screen name="CommonLabelDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/SearchLabels.ftl"/></html></platform-specific>
</decorator-section>
<decorator-section name="search-results">
<platform-specific><html><html-template location="component://webtools/webapp/webtools/labelmanager/ViewLabels.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm">${uiLabelMap.WebtoolsLabelManagerSecurityError}</label>
</fail-widgets>
</section>
</screen>
-->
</screens>