Author: jleroux
Date: Tue Nov 30 09:01:51 2010
New Revision: 1040440
URL:
http://svn.apache.org/viewvc?rev=1040440&view=revLog:
Generalizes by using countries.ftl
Modified:
ofbiz/trunk/applications/content/template/survey/genericsurvey.ftl
Modified: ofbiz/trunk/applications/content/template/survey/genericsurvey.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/survey/genericsurvey.ftl?rev=1040440&r1=1040439&r2=1040440&view=diff==============================================================================
--- ofbiz/trunk/applications/content/template/survey/genericsurvey.ftl (original)
+++ ofbiz/trunk/applications/content/template/survey/genericsurvey.ftl Tue Nov 30 09:01:51 2010
@@ -133,10 +133,7 @@ under the License.
</select>
<#elseif surveyQuestionAndAppl.surveyQuestionTypeId == "COUNTRY"/>
<select name="${questionFieldName}">
- <#assign countries = Static["org.ofbiz.common.CommonWorkers"].getCountryList(delegator)>
- <#list countries as country>
- <option value='${country.geoId}'>${country.get("geoName",locale)?default(country.geoId)}</option>
- </#list>
+ ${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
<#else/>
<div class="tabletext">Unsupported question type : ${surveyQuestionAndAppl.surveyQuestionTypeId}</div>