blob: d07e782222a12483f4b20fb57c1175f4563e1ead [file] [log] [blame]
<#--
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>&nbsp;</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}&amp;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.CommonCreateNew}</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="submit" class="smallSubmit" value="${uiLabelMap.CommonAdd}" />
</td>
</tr>
</table>
</form>
</#if>
</td>
</tr>
</table>
</td>
</tr>
</table>