Author: buscob
Date: Fri Apr 30 17:34:19 2010 New Revision: 939749 URL: http://svn.apache.org/viewvc?rev=939749&view=rev Log: A patch from Blas Rodriguez Somoza OFBIZ-3734 - XHTML validation errors round 2+ (specialpurpose/ecommerce) https://issues.apache.org/jira/browse/OFBIZ-3734 Fixed attributes without values Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/blog/TextImage.ftl ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/billsettings.ftl ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/paymentinformation.ftl ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/blog/TextImage.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/blog/TextImage.ftl?rev=939749&r1=939748&r2=939749&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/blog/TextImage.ftl (original) +++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/blog/TextImage.ftl Fri Apr 30 17:34:19 2010 @@ -27,21 +27,21 @@ <#assign text_check=""/> <#assign img_check=""/> <#if (imageContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED") || drMimeTypeId?default("")?starts_with("image"))> - <#assign img_check="checked"/> + <#assign img_check="checked='checked'"/> </#if> <#if (textContent?has_content && drMimeTypeId?default("")?starts_with("text")) || (textContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED")) || !img_check?has_content> - <#assign text_check="checked"/> + <#assign text_check="checked='checked'"/> </#if> <#-- Sets one of the two templates --> <#assign topleft_check=""/> <#assign topcenter_check=""/> <#if view.drDataResourceId?has_content && view.drDataResourceId == "BLOG_TPL_TOPLEFT"> - <#assign topleft_check="checked"/> + <#assign topleft_check="checked='checked'"/> <#else> - <#assign topcenter_check="checked"/> + <#assign topcenter_check="checked='checked'"/> </#if> <#-- Fills in existing text --> Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/billsettings.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/billsettings.ftl?rev=939749&r1=939748&r2=939749&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/billsettings.ftl (original) +++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/billsettings.ftl Fri Apr 30 17:34:19 2010 @@ -90,7 +90,7 @@ function shipBillAddr() { <#if cart.getShippingContactMechId()?exists && paymentMethodType != "GC"> <tr> <td width="26%" align="right"= valign="top"> - <input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();" <#if requestParameters.useShipAddr?exists>checked</#if> /> + <input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();" <#if requestParameters.useShipAddr?exists>checked="checked"</#if> /> </td> <td colspan="2" valign="center"> <div class="tabletext">${uiLabelMap.FacilityBillingAddressSameShipping}</div> Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/paymentinformation.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/paymentinformation.ftl?rev=939749&r1=939748&r2=939749&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/paymentinformation.ftl (original) +++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/paymentinformation.ftl Fri Apr 30 17:34:19 2010 @@ -84,7 +84,7 @@ function shipBillAddr() { <#if cart.getShippingContactMechId()?exists && paymentMethodTypeId?if_exists != "GIFT_CARD"> <tr> <td width="26%" align="right" valign="top"> - <input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();" <#if useShipAddr?exists>checked</#if>/> + <input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();" <#if useShipAddr?exists>checked="checked"</#if>/> </td> <td colspan="2" valign="middle"> <div class="tabletext">${uiLabelMap.FacilityBillingAddressSameShipping}</div> Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl?rev=939749&r1=939748&r2=939749&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl (original) +++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl Fri Apr 30 17:34:19 2010 @@ -80,7 +80,7 @@ function onClickShippingMethod(e) { <td> <div class="tabletext"> <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId> - <input type="radio" onclick="return onClickShippingMethod(event)" name="shipping_method" value="${shippingMethod}" <#if shippingMethod == chosenShippingMethod?default("N@A")>checked</#if>/> + <input type="radio" onclick="return onClickShippingMethod(event)" name="shipping_method" value="${shippingMethod}" <#if shippingMethod == chosenShippingMethod?default("N@A")>checked="checked"</#if>/> <#if shoppingCart.getShippingContactMechId()?exists> <#assign shippingEst = shippingEstWpr.getShippingEstimate(carrierShipmentMethod)?default(-1)> </#if> @@ -125,8 +125,8 @@ function onClickShippingMethod(e) { <td colspan="2"> <div> <h2>${uiLabelMap.OrderIsThisGift}</h2> - <input type='radio' <#if shoppingCart.getIsGift()?default("Y") == "Y">checked</#if> name='is_gift' value='true'/><span class='tabletext'>${uiLabelMap.CommonYes}</span> - <input type='radio' <#if shoppingCart.getIsGift()?default("N") == "N">checked</#if> name='is_gift' value='false'/><span class='tabletext'>${uiLabelMap.CommonNo}</span> + <input type='radio' <#if shoppingCart.getIsGift()?default("Y") == "Y">checked="checked"</#if> name='is_gift' value='true'/><span class='tabletext'>${uiLabelMap.CommonYes}</span> + <input type='radio' <#if shoppingCart.getIsGift()?default("N") == "N">checked="checked"</#if> name='is_gift' value='false'/><span class='tabletext'>${uiLabelMap.CommonNo}</span> </div> </td> </tr> @@ -150,7 +150,7 @@ function onClickShippingMethod(e) { <tr> <td valign="top" colspan="2"> <div> - <input type='radio' <#if shoppingCart.getMaySplit()?default("N") == "N">checked</#if> name='may_split' value='false'/> + <input type='radio' <#if shoppingCart.getMaySplit()?default("N") == "N">checked="checked"</#if> name='may_split' value='false'/> <span class="tabletext">${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.</span> </div> </td> @@ -158,7 +158,7 @@ function onClickShippingMethod(e) { <tr> <td valign="top" colspan="2"> <div> - <input <#if shoppingCart.getMaySplit()?default("N") == "Y">checked</#if> type='radio' name='may_split' value='true'/> + <input <#if shoppingCart.getMaySplit()?default("N") == "Y">checked="checked"</#if> type='radio' name='may_split' value='true'/> <span class="tabletext">${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.</span> </div> </td> |
Free forum by Nabble | Edit this page |