Sha256: 75ea308d4db795d0ed0d995707b0340ded9df98d02f64572da5ca8f4e9aa0c63

Contents?: true

Size: 568 Bytes

Versions: 31

Compression:

Stored size: 568 Bytes

Contents

<li id="zoned-prd-country">
  <%= label_tag t('country') + ": "  %>
  <% selected = ((session[:zoned] && session[:zoned][:prd_country]) || 0) # preselect item "No country selected" %>
  <%= select_tag 'sel-prd-country',
    options_for_select( # common countries have negative id
      [[t(:nocountrysel), 0]] +
      Rails.application.config.commonCountriesForSelect,
      selected,
    ),
    :data => {
	    :remote => true,
	    "prd-country" => selected,
	    :url => url_for(
	      :controller => "zoned", 
		    :action => "setcountry",
		  ),
		}
  %>
</li>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
spree_zoned-0.5.18 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.17 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.16 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.15 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.14 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.13 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.12 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.11 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.10 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.9 app/views/spree/admin/zoned/_prd_country.html.erb
spree_zoned-0.5.8 app/views/spree/admin/zoned/_prd_country.html.erb