Generalizes by using countries.ftl

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040440 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2010-11-30 09:01:51 +00:00
parent f517be11ef
commit d2d3552892
@@ -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>