spree_zone_pricing 0.1.85 → 0.1.86
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,11 @@
|
|
1
1
|
<!-- insert_top '#search-bar' -->
|
2
2
|
<% @zone_members = Spree::ZoneMember.find_all_by_zoneable_type("Spree::Country") %>
|
3
|
+
<% country_selected = session[:store_country] %>
|
3
4
|
<form id="country_selector" method="get">
|
4
|
-
<select id="
|
5
|
+
<select id="store_country" onchange="$('#country_selector').submit();">
|
5
6
|
<% @zone_members.each do |zone_member| %>
|
6
7
|
<% country = Spree::Country.find(zone_member.zoneable_id) %>
|
7
|
-
<option value="<%= country.iso %>"
|
8
|
+
<option value="<%= country.iso %>"<% if country.iso == country_selected %> selected<% end %>><%= country.name %></option>
|
8
9
|
<% end %>
|
9
10
|
</select>
|
10
11
|
</form>
|