Sha256: e1b4d8996c457458063ad7b4b08ff73e1fa9cd11a57bb6d8c2740cd732f63d24
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
<%= render :partial => 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:states) %> <% end %> <% content_for :page_actions do %> <li> <%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { :icon => 'plus', :id => 'new_state_link' } %> </li> <% end %> <div data-hook="country" class="field row"> <%= label_tag :country, Spree.t(:country) %> <select id="country" class='observe_field select2 fullwidth' 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="new_state" data-hook> <%= form_for [:admin, @country, Spree::State.new] do |f| %> <fieldset> <legend><%= Spree.t(:new_state) %></legend> <%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'spree/admin/shared/new_resource_links' %> </fieldset> <% end %> </div> <div id="state-list" data-hook> <%= render :partial => 'state_list'%> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_backend-1.0.0.pre | app/views/spree/admin/states/index.html.erb |