Author: lektran
Date: Thu Nov 12 10:44:37 2009
New Revision: 835327
URL: http://svn.apache.org/viewvc?rev=835327&view=rev
Log:
Replace spans with labels for radio input descriptions, finally got tired of
playing bullseye with the radio buttons
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/entry/billsettings.ftl
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/billsettings.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/billsettings.ftl?rev=835327&r1=835326&r2=835327&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/billsettings.ftl
(original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/billsettings.ftl Thu
Nov 12 10:44:37 2009
@@ -75,19 +75,19 @@
</#if>
<tr>
<td width="1%">
- <input type="radio" name="checkOutPaymentId"
value="EXT_OFFLINE" <#if checkOutPaymentId?exists && checkOutPaymentId ==
"EXT_OFFLINE">checked="checked"</#if>/>
+ <input type="radio" id="checkOutPaymentId_EXT_OFFLINE"
name="checkOutPaymentId" value="EXT_OFFLINE" <#if checkOutPaymentId?exists &&
checkOutPaymentId == "EXT_OFFLINE">checked="checked"</#if>/>
</td>
<td colspan="2" width="50%">
- <span>${uiLabelMap.OrderPaymentOfflineCheckMoney}</span>
+ <label
for="checkOutPaymentId_EXT_OFFLINE">${uiLabelMap.OrderPaymentOfflineCheckMoney}</label>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<tr>
<td width="1%">
- <input type="radio" name="checkOutPaymentId" value="EXT_COD"
<#if checkOutPaymentId?exists && checkOutPaymentId ==
"EXT_COD">checked="checked"</#if>/>
+ <input type="radio" id="checkOutPaymentId_EXT_COD"
name="checkOutPaymentId" value="EXT_COD" <#if checkOutPaymentId?exists &&
checkOutPaymentId == "EXT_COD">checked="checked"</#if>/>
</td>
<td colspan="2" width="50%">
- <span>${uiLabelMap.OrderCOD}</span>
+ <label
for="checkOutPaymentId_EXT_COD">${uiLabelMap.OrderCOD}</label>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
@@ -97,13 +97,15 @@
<#assign creditCard =
paymentMethod.getRelatedOne("CreditCard")>
<tr>
<td width="1%">
- <input type="radio" name="checkOutPaymentId"
value="${paymentMethod.paymentMethodId}" <#if checkOutPaymentId?exists &&
paymentMethod.paymentMethodId == checkOutPaymentId>checked="checked"</#if>/>
+ <input type="radio"
id="checkOutPaymentId_CREDIT_CARD_${paymentMethod.paymentMethodId}"
name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if
checkOutPaymentId?exists && paymentMethod.paymentMethodId ==
checkOutPaymentId>checked="checked"</#if>/>
</td>
<td width="50%">
- <span>
+ <label
for="checkOutPaymentId_CREDIT_CARD_${paymentMethod.paymentMethodId}">
CC: ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
<#if
paymentMethod.description?has_content>(${paymentMethod.description})</#if>
-
${uiLabelMap.OrderCardSecurityCode} <input type="text" size="5"
maxlength="10" name="securityCode_${paymentMethod.paymentMethodId}" value=""/>
+ </label>
+ <span>
+ ${uiLabelMap.OrderCardSecurityCode} <input
type="text" size="5" maxlength="10"
name="securityCode_${paymentMethod.paymentMethodId}" value=""/>
</span>
</td>
<td align="right"><a
href="/partymgr/control/editcreditcard?party_id=${orderParty.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}"
target="_blank" class="buttontext">${uiLabelMap.CommonUpdate}</a></td>
@@ -112,13 +114,13 @@
<#assign eftAccount =
paymentMethod.getRelatedOne("EftAccount")>
<tr>
<td width="1%">
- <input type="radio" name="checkOutPaymentId"
value="${paymentMethod.paymentMethodId}" <#if checkOutPaymentId?exists &&
paymentMethod.paymentMethodId == checkOutPaymentId>checked="checked"</#if>/>
+ <input type="radio"
id="checkOutPaymentId_EFT_ACCOUNT_${paymentMethod.paymentMethodId}"
name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if
checkOutPaymentId?exists && paymentMethod.paymentMethodId ==
checkOutPaymentId>checked="checked"</#if>/>
</td>
<td width="50%">
- <span>
+ <label
for="checkOutPaymentId_EFT_ACCOUNT_${paymentMethod.paymentMethodId}">
EFT: ${eftAccount.bankName?if_exists}:
${eftAccount.accountNumber?if_exists}
<#if
paymentMethod.description?has_content>(${paymentMethod.description})</#if>
- </span>
+ </label>
</td>
<td align="right"><a
href="/partymgr/control/editeftaccount?party_id=${orderParty.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}"
target="_blank" class="buttontext">${uiLabelMap.CommonUpdate}</a></td>
</tr>