<% content_for :page_actions do %> <%= button_link_to Spree.t(:back_to_resource_list, resource: plural_resource_name(Spree::TaxonGroup)), spree.admin_taxon_groups_path, icon: 'arrow-left', class: 'btn-primary' %> <% end %> <%= form_for [:admin, resource] do |f| %>
<%= f.label :name, Spree.t(:name) %> * <%= f.text_field :name, class: 'form-control' %> <%= f.error_message_on :name %>
<%= f.label :key, Spree.t(:key) %> * <%= f.text_field :key, class: 'form-control' %> <%= f.error_message_on :key %>
<% @taxons.each do |taxon| %> <% end %> <% if @taxons.empty? %> <% end %>
<%= Spree.t(:taxon_name) %> <%= Spree.t(:path) %>
<%= check_box_tag('taxon_group[taxon_ids][]', taxon.id, taxon.id.in?(resource.taxons.pluck(:id))) %> <%= taxon.name %> <%= taxon_path taxon %>
<%= Spree.t(:none) %>.
<%= render "spree/admin/shared/#{resource.new_record? ? 'new' : 'edit'}_resource_links" %> <% end %>