Author: jleroux
Date: Sat Dec 22 19:18:49 2018 New Revision: 1849567 URL: http://svn.apache.org/viewvc?rev=1849567&view=rev Log: Fixed: Dependent dropdowns should be used in createPostalAddress and Set Billing screens of ordermgr. (OFBIZ-10681) If you create an EFT account from the quick finalyse page, at ordermgr/control/createPostalAddress the US states which are proposed by default are not the US states but all states. You still can pick one US state, but it's counter intuitive. Thanks: Aman Mishra for the fix and finding of Set Billing screen Modified: ofbiz/ofbiz-framework/trunk/applications/order/template/entry/BillSettings.ftl ofbiz/ofbiz-framework/trunk/applications/order/template/entry/EditShipAddress.ftl ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml Modified: ofbiz/ofbiz-framework/trunk/applications/order/template/entry/BillSettings.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/template/entry/BillSettings.ftl?rev=1849567&r1=1849566&r2=1849567&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/order/template/entry/BillSettings.ftl (original) +++ ofbiz/ofbiz-framework/trunk/applications/order/template/entry/BillSettings.ftl Sat Dec 22 19:18:49 2018 @@ -228,7 +228,7 @@ function makeExpDate() { <td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonStateProvince}</div></td> <td width="5"> </td> <td width="74%"> - <select name="stateProvinceGeoId" <#if requestParameters.useShipAddr??>disabled="disabled"</#if>> + <select id="checkoutsetupform_stateProvinceGeoId" name="stateProvinceGeoId" <#if requestParameters.useShipAddr??>disabled="disabled"</#if>> <#if postalFields.stateProvinceGeoId??> <option>${postalFields.stateProvinceGeoId}</option> <option value="${postalFields.stateProvinceGeoId}">---</option> @@ -249,7 +249,7 @@ function makeExpDate() { <td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonCountry}</div></td> <td width="5"> </td> <td width="74%"> - <select name="countryGeoId" <#if requestParameters.useShipAddr??>disabled="disabled"</#if>> + <select id="checkoutsetupform_countryGeoId" name="countryGeoId" <#if requestParameters.useShipAddr??>disabled="disabled"</#if>> <#if postalFields.countryGeoId??> <option>${postalFields.countryGeoId}</option> <option value="${postalFields.countryGeoId}">---</option> Modified: ofbiz/ofbiz-framework/trunk/applications/order/template/entry/EditShipAddress.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/template/entry/EditShipAddress.ftl?rev=1849567&r1=1849566&r2=1849567&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/order/template/entry/EditShipAddress.ftl (original) +++ ofbiz/ofbiz-framework/trunk/applications/order/template/entry/EditShipAddress.ftl Sat Dec 22 19:18:49 2018 @@ -24,10 +24,10 @@ under the License. <tr> <td> <#if postalAddress?has_content> - <form method="post" action="<@ofbizUrl>updatePostalAddressOrderEntry</@ofbizUrl>" name="checkoutsetupform"> + <form method="post" action="<@ofbizUrl>updatePostalAddressOrderEntry</@ofbizUrl>" id="checkoutsetupform" name="checkoutsetupform"> <input type="hidden" name="contactMechId" value="${shipContactMechId!}"/> <#else> - <form method="post" action="<@ofbizUrl>createPostalAddress</@ofbizUrl>" name="checkoutsetupform"> + <form method="post" action="<@ofbizUrl>createPostalAddress</@ofbizUrl>" id="checkoutsetupform" name="checkoutsetupform"> <input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS"/> <input type="hidden" name="contactMechPurposeTypeId" value="SHIPPING_LOCATION"/> </#if> @@ -85,7 +85,7 @@ under the License. <td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonStateProvince}</div></td> <td width="5"> </td> <td width="74%"> - <select name="stateProvinceGeoId"> + <select id="checkoutsetupform_stateProvinceGeoId" name="stateProvinceGeoId"> <option value=""></option> ${screens.render("component://common/widget/CommonScreens.xml#states")} </select> @@ -102,7 +102,7 @@ under the License. <td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonCountry}</div></td> <td width="5"> </td> <td width="74%"> - <select name="countryGeoId"> + <select id="checkoutsetupform_countryGeoId" name="countryGeoId"> ${screens.render("component://common/widget/CommonScreens.xml#countries")} </select> *</td> Modified: ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml?rev=1849567&r1=1849566&r2=1849567&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml (original) +++ ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml Sat Dec 22 19:18:49 2018 @@ -106,6 +106,15 @@ under the License. <screen name="EditShipAddress"> <section> <actions> + <set field="dependentForm" value="checkoutsetupform"/> + <set field="mainId" value="countryGeoId"/> + <set field="paramKey" value="countryGeoId"/> + <set field="dependentId" value="stateProvinceGeoId"/> + <set field="requestName" value="getAssociatedStateList"/> + <set field="responseName" value="stateList"/> + <set field="dependentKeyName" value="geoId"/> + <set field="descName" value="geoName"/> + <set field="selectedDependentOption" default-value="_none_"/> <set field="stepTitleId" value="OrderOrderEntryShipToSettings"/> <set field="stepLabelId" value="FacilityShipping"/> <script location="component://order/groovyScripts/entry/ShipSettings.groovy"/> @@ -113,6 +122,7 @@ under the License. <widgets> <decorator-screen name="CommonOrderCheckoutDecorator"> <decorator-section name="body"> + <platform-specific><html><html-template location="component://common-theme/template/includes/SetDependentDropdownValuesJs.ftl"/></html></platform-specific> <platform-specific> <html><html-template location="component://order/template/entry/EditShipAddress.ftl"/></html> </platform-specific> @@ -161,6 +171,15 @@ under the License. <screen name="BillSettings"> <section> <actions> + <set field="dependentForm" value="checkoutsetupform"/> + <set field="mainId" value="countryGeoId"/> + <set field="paramKey" value="countryGeoId"/> + <set field="dependentId" value="stateProvinceGeoId"/> + <set field="requestName" value="getAssociatedStateList"/> + <set field="responseName" value="stateList"/> + <set field="dependentKeyName" value="geoId"/> + <set field="descName" value="geoName"/> + <set field="selectedDependentOption" default-value="_none_"/> <set field="stepTitleId" value="OrderOrderEntryPaymentSettings"/> <set field="stepLabelId" value="AccountingPayment"/> <script location="component://order/groovyScripts/entry/BillSettings.groovy"/> @@ -169,6 +188,7 @@ under the License. <widgets> <decorator-screen name="CommonOrderCheckoutDecorator"> <decorator-section name="body"> + <platform-specific><html><html-template location="component://common-theme/template/includes/SetDependentDropdownValuesJs.ftl"/></html></platform-specific> <platform-specific> <html><html-template location="component://order/template/entry/BillSettings.ftl"/></html> </platform-specific> |
Free forum by Nabble | Edit this page |