(OFBIZ-11005)
Steps to regenerate:
Go to https://demo-trunk.ofbiz.apache.org/content/control/CMSContentFind
Find missing uiLabel for Create New, showing as CommonCreateNew.
jleroux: This is related with OFBIZ-9905, we decided to use only CommonCreate
This do that and fix others which were missing in OFBIZ-9905
Thanks: Pawan Verma for report, Suraj for comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858516 13f79535-47bb-0310-9956-ffa450edef68
131 lines
7.9 KiB
Plaintext
131 lines
7.9 KiB
Plaintext
<#--
|
|
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.
|
|
-->
|
|
|
|
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="boxoutside">
|
|
<tr>
|
|
<td width="100%">
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxbottom">
|
|
<tr>
|
|
<td>
|
|
<#-- checkoutsetupform is used for the order entry "continue" link -->
|
|
<form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="checkoutsetupform">
|
|
<input type="hidden" name="finalizeMode" value="term" />
|
|
</form>
|
|
<#if orderTerms?has_content && parameters.createNew?default('') != 'Y'>
|
|
<table class="basic-table hover-bar">
|
|
<tr class="header-row">
|
|
<td>${uiLabelMap.OrderOrderTermType}</td>
|
|
<td align="center">${uiLabelMap.OrderOrderTermValue}</td>
|
|
<td align="center">${uiLabelMap.OrderOrderTermDays}</td>
|
|
<td align="center">${uiLabelMap.OrderOrderTextValue}</td>
|
|
<td>${uiLabelMap.CommonDescription}</td>
|
|
<td> </td>
|
|
</tr>
|
|
<#list orderTerms as orderTerm>
|
|
<tr <#if orderTerm_index % 2 != 0>class="alternate-row"</#if> >
|
|
<td nowrap="nowrap">${orderTerm.getRelatedOne('TermType', false).get('description', locale)}</td>
|
|
<td align="center">${orderTerm.termValue!}</td>
|
|
<td align="center">${orderTerm.termDays!}</td>
|
|
<td nowrap="nowrap">${orderTerm.textValue!}</td>
|
|
<td nowrap="nowrap">${orderTerm.description?if_exists}</td>
|
|
<td align="right">
|
|
<a href="<@ofbizUrl>setOrderTerm?termIndex=${orderTerm_index}&createNew=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonUpdate}</a>
|
|
<a href="<@ofbizUrl>removeCartOrderTerm?termIndex=${orderTerm_index}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a>
|
|
</td>
|
|
</tr>
|
|
</#list>
|
|
<tr>
|
|
<td colspan="5">
|
|
<a href="<@ofbizUrl>setOrderTerm?createNew=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonCreate}</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<#else>
|
|
<form method="post" action="<@ofbizUrl>addOrderTerm</@ofbizUrl>" name="termform">
|
|
<input type="hidden" name="termIndex" value="${termIndex!}" />
|
|
<table class="basic-table">
|
|
<tr>
|
|
<td width="26%" align="right" valign="top">
|
|
${uiLabelMap.OrderOrderTermType}
|
|
</td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="termTypeId">
|
|
<option value=""></option>
|
|
<#list termTypes! as termType>
|
|
<option value="${termType.termTypeId}"
|
|
<#if termTypeId?default('') == termType.termTypeId>selected="selected"</#if>
|
|
>${termType.get('description', locale)}</option>
|
|
</#list>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top">
|
|
${uiLabelMap.OrderOrderTermValue}
|
|
</td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="30" maxlength="60" name="termValue" value="${termValue!}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top">
|
|
${uiLabelMap.OrderOrderTermDays}
|
|
</td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="30" maxlength="60" name="termDays" value="${termDays!}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top">
|
|
${uiLabelMap.OrderOrderTextValue}
|
|
</td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="30" maxlength="60" name="textValue" value="${textValue?if_exists}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top">
|
|
${uiLabelMap.CommonDescription}
|
|
</td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="30" maxlength="255" name="description" value="${description?if_exists}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"> </td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="submit" class="smallSubmit" value="${uiLabelMap.CommonAdd}" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|