From e96545ffc2c916dc349e66f4e6c836b08d4e7d0a Mon Sep 17 00:00:00 2001 From: Bruno Busco Date: Sat, 17 Apr 2010 21:52:20 +0000 Subject: [PATCH] A patch from Blas Rodriguez Somoza OFBIZ-3690 - XHTML validation errors round 2 (accounting) https://issues.apache.org/jira/browse/OFBIZ-3690 XHTML validation errors * Unclosed tags * attributes without values (checked, selected, disabled, etc) * attribute values without " * Uppercase tags or attributes. * Unencoded ampersands in urls. Other errors: CostCenters.ftl Lines 37,51: input must be inside td. Lines 45,47: duplicated id, and invalid character "|" EditCustomTimePeriods.ftl Form must be outside table CommisionReport.ftl Line 77: invalid td outside tr and there is no open table at this point git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935260 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/accounting/ledger/CostCenters.ftl | 10 +++--- .../webapp/accounting/payment/manualCCTx.ftl | 32 +++++++++---------- .../webapp/accounting/payment/manualTx.ftl | 4 +-- .../period/EditCustomTimePeriod.ftl | 8 ++--- .../webapp/ap/invoices/CommissionReport.ftl | 2 +- .../accounting/widget/PaymentForms.xml | 2 +- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/applications/accounting/webapp/accounting/ledger/CostCenters.ftl b/applications/accounting/webapp/accounting/ledger/CostCenters.ftl index ed4ef562a8..40132a58f4 100644 --- a/applications/accounting/webapp/accounting/ledger/CostCenters.ftl +++ b/applications/accounting/webapp/accounting/ledger/CostCenters.ftl @@ -34,21 +34,21 @@ under the License. <#assign alt_row = false> <#list glAcctgAndAmountPercentageList as glAcctgAndAmountPercentage> - class="alternate-row"> - ${glAcctgAndAmountPercentage.glAccountId} + + + ${glAcctgAndAmountPercentage.glAccountId} ${glAcctgAndAmountPercentage.accountCode!} ${glAcctgAndAmountPercentage.accountName!} <#list glAccountCategories as glAccountCategory> <#if (glAcctgAndAmountPercentage[glAccountCategory.glAccountCategoryId!])??> - + <#else> - + - <#assign alt_row = !alt_row> diff --git a/applications/accounting/webapp/accounting/payment/manualCCTx.ftl b/applications/accounting/webapp/accounting/payment/manualCCTx.ftl index e071da48ce..8e456db9f3 100644 --- a/applications/accounting/webapp/accounting/payment/manualCCTx.ftl +++ b/applications/accounting/webapp/accounting/payment/manualCCTx.ftl @@ -24,7 +24,7 @@ under the License. <#assign validTx = true>
- ${uiLabelMap.AccountingReferenceNumber} + ${uiLabelMap.AccountingReferenceNumber}   @@ -32,7 +32,7 @@ under the License. - ${uiLabelMap.FormFieldTitle_orderPaymentPreferenceId} + ${uiLabelMap.FormFieldTitle_orderPaymentPreferenceId}   @@ -64,9 +64,9 @@ under the License. document.manualTxForm.action = "<@ofbizUrl>processManualCcTx"; // --> -
+
- ${uiLabelMap.PartyFirstName} + ${uiLabelMap.PartyFirstName}   @@ -74,7 +74,7 @@ under the License. - ${uiLabelMap.PartyLastName} + ${uiLabelMap.PartyLastName}   @@ -82,20 +82,20 @@ under the License. - ${uiLabelMap.PartyEmailAddress} + ${uiLabelMap.PartyEmailAddress}   ${uiLabelMap.CommonRequired} -
+
<#assign showToolTip = "true"> ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")} -
+
<#-- first / last name --> - ${uiLabelMap.PartyFirstName} + ${uiLabelMap.PartyFirstName}   disabled /> @@ -103,7 +103,7 @@ under the License. - ${uiLabelMap.PartyLastName} + ${uiLabelMap.PartyLastName}   disabled /> @@ -112,7 +112,7 @@ under the License. <#-- credit card address --> - ${uiLabelMap.AccountingBillToAddress1} + ${uiLabelMap.AccountingBillToAddress1}   disabled /> @@ -120,14 +120,14 @@ under the License. - ${uiLabelMap.AccountingBillToAddress2} + ${uiLabelMap.AccountingBillToAddress2}   disabled /> - ${uiLabelMap.CommonCity} + ${uiLabelMap.CommonCity}   disabled /> @@ -135,7 +135,7 @@ under the License. - ${uiLabelMap.CommonStateProvince} + ${uiLabelMap.CommonStateProvince}   disabled /> @@ -158,7 +158,7 @@ under the License. - ${uiLabelMap.CommonCountry} + ${uiLabelMap.CommonCountry}   diff --git a/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl b/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl index 3301769bda..cb0881564b 100644 --- a/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl +++ b/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl @@ -47,6 +47,9 @@ under the License. <#if currentCustomTimePeriod?has_content> +
+ + @@ -59,9 +62,6 @@ under the License. - - - -
${uiLabelMap.CommonId}${uiLabelMap.CommonThruDate}  
${currentCustomTimePeriod.customTimePeriodId} @@ -128,8 +128,8 @@ under the License. ${uiLabelMap.CommonDelete}
+ <#else>
${uiLabelMap.AccountingNoCurrentCustomTimePeriodSelected}
diff --git a/applications/accounting/webapp/ap/invoices/CommissionReport.ftl b/applications/accounting/webapp/ap/invoices/CommissionReport.ftl index 7f56063712..4b1f06db80 100644 --- a/applications/accounting/webapp/ap/invoices/CommissionReport.ftl +++ b/applications/accounting/webapp/ap/invoices/CommissionReport.ftl @@ -74,5 +74,5 @@ under the License. <#else> -

${uiLabelMap.CommonNoRecordFound}

+

${uiLabelMap.CommonNoRecordFound}

diff --git a/applications/accounting/widget/PaymentForms.xml b/applications/accounting/widget/PaymentForms.xml index 7e16c10d1a..dad18b75b9 100644 --- a/applications/accounting/widget/PaymentForms.xml +++ b/applications/accounting/widget/PaymentForms.xml @@ -115,7 +115,7 @@ under the License. - +