Author: sichen
Date: Thu Aug  3 16:42:16 2006
New Revision: 428568

URL: http://svn.apache.org/viewvc?rev=428568&view=rev
Log:
Improved edit contact mech page by defaulting country geo to the 
country.geo.id.default set in general.properties.

Modified:
    
incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl

Modified: 
incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl?rev=428568&r1=428567&r2=428568&view=diff
==============================================================================
--- 
incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl
 (original)
+++ 
incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl
 Thu Aug  3 16:42:16 2006
@@ -172,7 +172,12 @@
       <td width="5">&nbsp;</td>
       <td width="74%">
         <select name="countryGeoId" class="selectBox">
-          <option>${(mechMap.postalAddress.countryGeoId)?if_exists}</option>
+          <#if (mechMap.postalAddress?exists) && 
(mechMap.postalAddress.countryGeoId?exists)>
+          <option 
selected>${(mechMap.postalAddress.countryGeoId)?if_exists}</option>
+          <#else>
+           <#assign defaultCountryGeoId = 
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("general.properties",
 "country.geo.id.default")>
+           <option selected 
value="${defaultCountryGeoId}">${defaultCountryGeoId}</option>
+          </#if>
           <option></option>
           
${screens.render("component://common/widget/CommonScreens.xml#countries")}
         </select>


Reply via email to