mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Just let the user type in their country.
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user