Sha256: e1d1110da1cbe45af76a5656eedc3d0c0df93600bfce649eb282cab1e8d868a9

Contents?: true

Size: 971 Bytes

Versions: 14

Compression:

Stored size: 971 Bytes

Contents

<div id="zoned-countryselect" class="columns omega ten">
  <%  c = ((session[:zoned] && session[:zoned][:current_country]) || -214) %>
  <%= label_tag t('country') + ": "  %>
  <%= select_tag 'id',
    options_for_select( # common countries have negative id
      Rails.application.config.commonCountriesForSelect +
        [["-----------------", 0]] +
        countrylist.map { |country| [country.name, country.id] },
      c,
    ),
    :data => {
	    :remote => true,
	    :url => url_for(
	      :controller => "zoned", 
		    :action => "setcountry",
		  ),
		}
  %>
  <%= label_tag t('language') + ": "  %>
  <%= select_tag 'lgid',
    options_for_select( # common countries have negative id
      hlpAvailLangs(c.to_i),
      (session[:zoned] && session[:zoned][:current_language]) || "en", # English
    ),
    :data => {
      :remote => true,
      :url => url_for(
        :controller => "zoned", 
        :action => "setlanguage",
      ),
    }
  %>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_zoned-0.5.38 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.37 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.36 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.35 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.34 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.33 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.32 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.31 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.30 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.29 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.28 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.27 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.26 app/views/spree/zoned/_countryselect.html.erb
spree_zoned-0.5.25 app/views/spree/zoned/_countryselect.html.erb