Sha256: 09bf3d1774baaa4a6eb7652b14b1b728d839699206ef1442147f17791c924802

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

Deface::Override.new(:virtual_path => 'spree/admin/products/_form',
  :name => 'add_maker_to_admin_product',
  :insert_top => "[data-hook='admin_product_form_additional_fields']",
  :text => "
    <%= f.field_container :add_on_makers do %>
      <%= f.label :add_on_maker_ids, t('add_on.add_on_maker') %>
      <%= f.collection_select(:add_on_maker_ids, Spree::AddOnMaker.all, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2' }) %>
      <%= f.error_message_on :add_on_makers %>
    <% end %>
  ")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_maker_search-0.1.1 app/overrides/add_maker_to_admin_product.rb