editbillingaccountterms.ftl
来自「国外的一套开源CRM」· FTL 代码 · 共 120 行
FTL
120 行
<#--
* Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*@author Andy Zeneski (jaz@ofbiz.org)
*@author David E. Jones (jonesde@ofbiz.org)
*@author Olivier Heintz (olivier.heintz@nereide.biz)
*@version $Revision: 1.3 $
*@since 2.1
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<#assign locale = requestAttributes.locale>
${pages.get("/billingaccount/BillingAccountTabBar.ftl")}
<div class="head1">${uiLabelMap.PageTitleEditBillingAccountTerms} - ${uiLabelMap.AccountingAccountId}: ${billingAccount.billingAccountId}</div>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div class="tableheadtext">${uiLabelMap.PartyTerm}</div></td>
<td><div class="tableheadtext">${uiLabelMap.CommonValue}</div></td>
<td><div class="tableheadtext">${uiLabelMap.CommonUom}</div></td>
<td> </td>
</tr>
<tr><td colspan="5"><hr class="sepbar"></td></tr>
<#if !billingAccountTerms?exists || billingAccountTerms?size == 0>
<tr>
<td colspan="5"><div class="tabletext">${uiLabelMap.AccountingNoBillingAccountTerm}</div></td>
</tr>
<#else>
<#list billingAccountTerms as term>
<#assign termType = term.getRelatedOne("TermType")>
<#if term.uomId?exists>
<#assign uom = term.getRelatedOne("Uom")>
</#if>
<tr>
<td><div class="tabletext">${(termType.get("description", locale))?if_exists}</div></td>
<td><div class="tabletext">${term.termValue?if_exists}</div></td>
<td><div class="tabletext"><#if uom?has_content>${uom.description?if_exists}<#else> </#if></div></td>
<td align="right">
<a href="<@ofbizUrl>/editBillingAccountTerms?billingAccountId=${term.billingAccountId}&billingAccountTermId=${term.billingAccountTermId}</@ofbizUrl>" class="buttontext">[Edit]</a>
<a href="<@ofbizUrl>/removeBillingAccountTerm?billingAccountId=${term.billingAccountId}&billingAccountTermId=${term.billingAccountTermId}</@ofbizUrl>" class="buttontext">[Remove]</a>
</td>
</tr>
</#list>
</#if>
</table>
<br>
<#if billingAccountTerm?has_content>
<div class="head1">${uiLabelMap.PageTitleEditBillingAccountTerms}</div>
<br>
<form name="billingform" method="post" action="<@ofbizUrl>/updateBillingAccountTerm</@ofbizUrl>">
<input type="hidden" name="billingAccountTermId" value="${billingAccountTerm.billingAccountTermId}">
<#else>
<div class="head1">${uiLabelMap.AccountingCreateBillingAccountTerm}</div>
<br>
<form name="billingform" method="post" action="<@ofbizUrl>/createBillingAccountTerm</@ofbizUrl>">
</#if>
<input type="hidden" name="billingAccountId" value="${billingAccount.billingAccountId}">
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyTermType}</div></td>
<td width="5"> </td>
<td width="74%">
<select class="selectBox" name="termTypeId">
<#list termTypes as termType>
<option value="${termType.termTypeId}" <#if termData?has_content && termData.termTypeId?default("") == termType.termTypeId>SELECTED</#if>>${(termType.get("description", locale))?if_exists}</option>
</#list>
</select>
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonUom}</div></td>
<td width="5"> </td>
<td width="74%">
<select class="selectBox" name="uomId">
<option></option>
<#list uoms as uom>
<option value="${uom.uomId}" <#if termData?has_content && termData.uomId?default("") == uom.uomId>SELECTED</#if>>${uom.description?if_exists}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyTermValue}</div></td>
<td width="5"> </td>
<td width="74%">
<input type="text" class="inputBox" size="10" name="termValue" value="${termData.termValue?if_exists}">
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<input type="submit" value="${uiLabelMap.CommonSave}" class="smallSubmit">
</td>
<td width="5"> </td>
<td width="74%"> </td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?