NB: the error was caused by the wrong way in which the link with parameters (that are now rendered as forms to post the parameters in a secure way) was implemented in the content application: it was a field of a form causing a nested <form> element in html. Unfortunately this pattern is used in other screens in the content application and sooner or later we will have to fix them in a similar way. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783000 13f79535-47bb-0310-9956-ffa450edef68
287 lines
15 KiB
XML
287 lines
15 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.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
<screen name="FindLayout">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="FindLayout"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
|
<decorator-section name="menu-bar">
|
|
<container style="button-bar">
|
|
<link target="EditLayoutSubContent" text="${uiLabelMap.CommonCreateNew}" style="buttontext">
|
|
<parameter param-name="mode" value="add"/>
|
|
<parameter param-name="contentIdTo" value="TEMPLATE_MASTER"/>
|
|
</link>
|
|
</container>
|
|
</decorator-section>
|
|
<decorator-section name="search-options">
|
|
<include-form name="findLayout" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
</decorator-section>
|
|
<decorator-section name="search-results">
|
|
<include-form name="listFindLayout" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ListLayout">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="ListLayout"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
|
|
<entity-and entity-name="ContentAssocDataResourceViewFrom" list="layoutList">
|
|
<field-map field-name="caContentIdTo" value="TEMPLATE_MASTER"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleListLayout}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<container>
|
|
<link target="EditLayoutSubContent" text="${uiLabelMap.CommonCreateNew}" style="buttontext">
|
|
<parameter param-name="mode" value="add"/>
|
|
<parameter param-name="contentIdTo" value="TEMPLATE_MASTER"/>
|
|
</link>
|
|
</container>
|
|
<include-form name="listListLayout" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditLayout">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="EditLayout"/>
|
|
|
|
<set field="wrapTemplateId" value="STDWRAP001"/>
|
|
<entity-one entity-name="ContentDataResourceView" value-field="currentValue"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditLayout}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditLayout" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
<link target="cloneLayout" text="${uiLabelMap.ContentCloneLayout}" style="buttontext">
|
|
<parameter param-name="contentId" from-field="currentValue.contentId"/>
|
|
</link>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/layout/renderSubContent.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditLayoutSubContent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditLayoutSubContent"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="EditLayoutSubContent"/>
|
|
|
|
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
|
|
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditLayoutSubContent}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditLayoutSubContent" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditLayoutText">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="EditLayoutText"/>
|
|
|
|
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
|
|
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<!--
|
|
<include-form name="EditLayoutText" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
-->
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditLayoutHtml">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="EditLayoutHtml"/>
|
|
|
|
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
|
|
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<!--
|
|
<include-form name="EditLayoutHtml" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
-->
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditLayoutUrl">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="EditLayoutUrl"/>
|
|
|
|
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
|
|
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<!--
|
|
<include-form name="EditLayoutUrl" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
-->
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditLayoutImage">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="EditLayoutImage"/>
|
|
|
|
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
|
|
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<!--
|
|
<include-form name="EditLayoutImage" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
-->
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddLayout">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditLayout"/>
|
|
<set field="headerItem" value="Layout"/>
|
|
<set field="tabButtonItem" to-scope="user" value="EditLayout"/>
|
|
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditLayout}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="AddLayout" location="component://content/webapp/content/layout/LayoutForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|