Sha256: df788df1946902acaffff6f9d8a08b37debd227ad7c29cfcb2583c2839a6dcfb

Contents?: true

Size: 739 Bytes

Versions: 33

Compression:

Stored size: 739 Bytes

Contents

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::State) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { :class => "btn-success", :icon => 'add', :id => 'new_state_link' } %>
<% end if can? :create, Spree::State %>

<div data-hook="country" class="form-group">
  <%= label_tag :country, Spree.t(:country) %>
  <select id="country" class='observe_field select2' data-base-url="<%=admin_states_path(:format => :js) %>?country_id=" data-update="#state-list">
    <%= options_from_collection_for_select(@countries, :id, :name, @country.id) %>
  </select>
</div>

<div id="state-list" data-hook>
  <%= render :partial => 'state_list'%>
</div>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.13 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.12 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.11 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.10 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.9 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.8 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.7 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.6 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.5 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.4 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.3 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.2 app/views/spree/admin/states/index.html.erb
spree_backend-3.0.10 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.1 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.0 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/states/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/states/index.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/states/index.html.erb