(OFBIZ-7949) For improved FTL code readability. Here is the first patch for the effort. There are still files which are required to be formatted. Thanks: Vaibhav Jain for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1761135 13f79535-47bb-0310-9956-ffa450edef68
78 lines
2.4 KiB
Plaintext
78 lines
2.4 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.
|
|
-->
|
|
|
|
<h1>${uiLabelMap.AccountingGiftCardBalance}</h1>
|
|
<br/>
|
|
<div>${uiLabelMap.AccountingEnterGiftCardNumber}</div>
|
|
<br/>
|
|
|
|
<br/>
|
|
<table align="center">
|
|
<#if requestAttributes.processResult??>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div align="center">
|
|
${uiLabelMap.AccountingCurrentBalance}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div class="graybox">
|
|
<#if (requestAttributes.balance?default(0) > 0)>
|
|
${requestAttributes.balance}
|
|
<#else>
|
|
${uiLabelMap.AccountingCurrentBalanceProblem}
|
|
</#if>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"> </td>
|
|
</tr>
|
|
</#if>
|
|
<form method="post" action="<@ofbizUrl>querygcbalance</@ofbizUrl>">
|
|
<input type="hidden" name="currency" value="USD"/>
|
|
<input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}"/>
|
|
<tr>
|
|
<td>
|
|
<div class="tableheadtext">${uiLabelMap.AccountingCardNumber}</div>
|
|
</td>
|
|
<td>
|
|
<input type="text" class="inputBox" name="cardNumber" size="20" value="${(requestParameters.cardNumber)!}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="tableheadtext">${uiLabelMap.AccountingPINNumber}</div>
|
|
</td>
|
|
<td><input type="text" class="inputBox" name="pin" size="15" value="${(requestParameters.pin)!}"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="center">
|
|
<input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceCheckBalance}"/>
|
|
</td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
<br/>
|