spree_zone_pricing 0.1.87 → 0.1.89
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,10 @@
|
|
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] %>
|
4
3
|
<form id="country_selector" method="post">
|
5
4
|
<select id="store_country" name="store_country" onchange="$('#country_selector').submit();">
|
6
5
|
<% @zone_members.each do |zone_member| %>
|
7
6
|
<% country = Spree::Country.find(zone_member.zoneable_id) %>
|
8
|
-
<option value="<%= country.iso %>"<% if country.iso ==
|
7
|
+
<option value="<%= country.iso %>"<% if country.iso == @store_country %> selected<% end %>><%= country.name %></option>
|
9
8
|
<% end %>
|
10
9
|
</select>
|
11
10
|
</form>
|