Only select default country in config if none are selected
parent
96b9cce70c
commit
fde2c4db1e
|
@ -93,7 +93,11 @@
|
||||||
<select name="country" id="config-country">
|
<select name="country" id="config-country">
|
||||||
{% for country in countries %}
|
{% for country in countries %}
|
||||||
<option value="{{ country.value }}"
|
<option value="{{ country.value }}"
|
||||||
{% if config.country in country.value %}
|
{% if (
|
||||||
|
config.country != '' and config.country in country.value
|
||||||
|
) or (
|
||||||
|
config.country == '' and country.value == '')
|
||||||
|
%}
|
||||||
selected
|
selected
|
||||||
{% endif %}>
|
{% endif %}>
|
||||||
{{ country.name }}
|
{{ country.name }}
|
||||||
|
|
Loading…
Reference in New Issue