ftl to form conversion
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@696922 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -241,7 +241,7 @@ under the License.
|
||||
<option key="1"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="maximumAmountUomId" title="${uiLabelMap.CommonCurrency}">
|
||||
<field name="maximumAmountUomId">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">
|
||||
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
|
||||
@@ -263,6 +263,14 @@ under the License.
|
||||
<field name="fulfillContactMechId">
|
||||
<lookup target-form-name="LookupPreferredContactMech" target-parameter="fromPartyId"/>
|
||||
</field>
|
||||
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">
|
||||
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
|
||||
<entity-order-by field-name="abbreviation"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="createdDate"><hidden/></field>
|
||||
<field name="createdByUserLogin"><hidden/></field>
|
||||
<field name="lastModifiedDate"><hidden/></field>
|
||||
@@ -447,4 +455,30 @@ under the License.
|
||||
|
||||
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<!-- request form -->
|
||||
<form name="requestInfo" type="single" title="request information" default-map-name="custRequest"
|
||||
header-row-style="header-row" default-table-style="basic-table">
|
||||
<actions>
|
||||
<service service-name="getPartyNameForDate" result-map-name="partyNameResultTo">
|
||||
<field-map field-name="partyId" env-name="custRequest.fromPartyId"/>
|
||||
<field-map field-name="compareDate" env-name="custRequest.custRequestDate"/>
|
||||
<field-map field-name="lastNameFirst" value="Y"/>
|
||||
</service>
|
||||
</actions>
|
||||
<field name="custRequestId"><hidden/></field>
|
||||
<field name="custRequestTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="CustRequestType" description="${description}"/></field>
|
||||
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" description="${description}"/></field>
|
||||
<field name="fromPartyId" title="${uiLabelMap.PartyPartyId}"><hyperlink target="/partymgr/control/viewprofile?partyId=${custRequest.fromPartyId}" target-type="inter-app" description="${partyNameResultTo.fullName} [${custRequest.fromPartyId}]"/></field>
|
||||
<field name="custRequestName" title="${uiLabelMap.CommonName}"><display/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
|
||||
<field name="productStoreId" title="${uiLabelMap.ProductProductStore}"><display-entity entity-name="ProductStore" description="${storeName}"/></field>
|
||||
<field name="internalComment" title="${uiLabelMap.CommonInternalComment}"><display/></field>
|
||||
<field name="reason" title="${uiLabelMap.CommonReason}"><display/></field>
|
||||
<field name="custRequestDate" title="${uiLabelMap.OrderRequestDate}"><display/></field>
|
||||
<field name="createdDate" title="${uiLabelMap.OrderRequestCreatedDate}"><display/></field>
|
||||
<field name="lastModifiedDate" title="${uiLabelMap.OrderRequestLastModifiedDate}"><display/></field>
|
||||
</form>
|
||||
|
||||
|
||||
</forms>
|
||||
@@ -1,125 +0,0 @@
|
||||
<#--
|
||||
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.
|
||||
-->
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-header">
|
||||
<div class="boxhead">${uiLabelMap.OrderRequest} ${custRequest.custRequestId} ${uiLabelMap.CommonInformation}</div>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<table cellspacing="0" class="basic-table">
|
||||
<#-- request header information -->
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.CommonType}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
${(custRequestType.get("description",locale))?default(custRequest.custRequestTypeId?if_exists)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<#-- request status information -->
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.CommonStatus}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
${(statusItem.get("description", locale))?default(custRequest.statusId?if_exists)}
|
||||
</td>
|
||||
</tr>
|
||||
<#-- party -->
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.PartyPartyId}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
${custRequest.fromPartyId?if_exists}
|
||||
</td>
|
||||
</tr>
|
||||
<#-- request name -->
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.CommonName}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
${custRequest.custRequestName?if_exists}
|
||||
</td>
|
||||
</tr>
|
||||
<#-- request description -->
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.CommonDescription}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
${custRequest.description?if_exists}
|
||||
</td>
|
||||
</tr>
|
||||
<#-- request currency -->
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.CommonCurrency}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
<#if currency?exists>${currency.get("description", locale)?default(custRequest.maximumAmountUomId?if_exists)}</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<#-- request currency -->
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.ProductProductStore}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
<#if store?exists>${store.storeName?default(custRequest.productStoreId?if_exists)}</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<#-- request comment -->
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.CommonInternalComment}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
${custRequest.internalComment?if_exists}
|
||||
</td>
|
||||
</tr>
|
||||
<#-- request reason -->
|
||||
<tr><td colspan="7"><hr/></td></tr>
|
||||
<tr>
|
||||
<td align="right" valign="top" width="15%" class="label">
|
||||
${uiLabelMap.CommonReason}
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
<td valign="top" width="80%">
|
||||
${custRequest.reason?if_exists}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -76,9 +76,9 @@ under the License.
|
||||
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="lefthalf">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://order/webapp/ordermgr/request/requestInfo.ftl"/></html>
|
||||
</platform-specific>
|
||||
<screenlet title="${uiLabelMap.OrderRequest} ${custRequest.custRequestId} ${uiLabelMap.CommonInformation}">
|
||||
<include-form name="requestInfo" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet title="${uiLabelMap.PageTitleRequestItems}">
|
||||
<include-form name="OverviewRequestItems" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
|
||||
</screenlet>
|
||||
@@ -86,10 +86,7 @@ under the License.
|
||||
<include-form name="ListRequestItemNotes" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
|
||||
</screenlet>
|
||||
</container>
|
||||
<container style="righthalf">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://order/webapp/ordermgr/request/requestDate.ftl"/></html>
|
||||
</platform-specific>
|
||||
<container style="righthalf">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://order/webapp/ordermgr/request/requestContactMech.ftl"/></html>
|
||||
</platform-specific>
|
||||
|
||||
@@ -104,9 +104,9 @@ under the License.
|
||||
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="lefthalf">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://order/webapp/ordermgr/request/requestInfo.ftl"/></html>
|
||||
</platform-specific>
|
||||
<screenlet title="${uiLabelMap.OrderRequest} ${custRequest.custRequestId} ${uiLabelMap.CommonInformation}">
|
||||
<include-form name="requestInfo" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet title="${uiLabelMap.PageTitleRequestItems}">
|
||||
<include-form name="OverviewRequestItems" location="component://projectmgr/widget/forms/RequestForms.xml"/>
|
||||
</screenlet>
|
||||
@@ -114,10 +114,7 @@ under the License.
|
||||
<include-form name="ListRequestItemNotes" location="component://projectmgr/widget/forms/RequestForms.xml"/>
|
||||
</screenlet>
|
||||
</container>
|
||||
<container style="righthalf">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://order/webapp/ordermgr/request/requestDate.ftl"/></html>
|
||||
</platform-specific>
|
||||
<container style="righthalf">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://order/webapp/ordermgr/request/requestContactMech.ftl"/></html>
|
||||
</platform-specific>
|
||||
|
||||
Reference in New Issue
Block a user