Sha256: 3c1a0f7b87a047ac55035959b0833b2d2f78faa32f5f6f4e313c0e433c9dee97

Contents?: true

Size: 787 Bytes

Versions: 4

Compression:

Stored size: 787 Bytes

Contents

<h1><%= t("States") %></h1>
<br/>
<select id="country">
  <%= options_from_collection_for_select(@countries, :id, :name, @country.id) %>
</select>
<%= observe_field :country,
                  :update => 'state-list',
                  :url => admin_states_path,
                  :before => "Element.hide('state-list');Element.show('busy_indicator')", 
                  :complete => "Element.hide('busy_indicator');Element.show('state-list')",
                  :method => :get,
                  :with => "'country_id='+encodeURIComponent(value)",
                  :update => 'state-list' %>                  
<br/>
<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %>
<div id="state-list">
  <%=render :partial => 'state_list'%>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.4.0 app/views/admin/states/index.html.erb
spree-0.4.1 app/views/admin/states/index.html.erb
spree-0.5.0 app/views/admin/states/index.html.erb
spree-0.5.1 app/views/admin/states/index.html.erb