Just let the user type in their country.

This commit is contained in:
Brian Simpson
2013-09-25 01:15:03 -04:00
parent 8cf4eaea0e
commit 48623ffd2c

View File

@@ -151,17 +151,6 @@ ${unsafe(js.use('sponsored'))}
<textarea ${disabled} id="input-${field}-${prof_id}" name="${field}">
${getattr(data, field, '')}
</textarea>
%elif field == "country":
## TODO: pycountry does country name i18n
<select name="${field}" ${disabled}>
%for code, country_name in sorted(g.countries.iteritems(), key=lambda t: t[1]):
<option value="${code}"
%if getattr(data, field, 'United States') == country_name:
selected="selected"
%endif
>${country_name}</option>
%endfor
</select>
%else:
<input ${disabled}
id="input-${field}-${prof_id}" type="text" name="${field}"