Sha256: a47262bde331efeb5310d88dd39f05f19e733da2899d582c2b97533d5d9b1857
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
<div data-hook="admin_prototype_form_fields"> <%= f.field_container :name do %> <%= f.label :name, Spree.t(:name) %> <span class="required">*</span><br> <%= f.text_field :name, class: 'form-control' %> <%= f.error_message_on :name %> <% end %> <div id='properties' data-hook> <%= f.field_container :property_ids do %> <%= f.label :property_ids, Spree.t(:properties) %><br> <%= f.select :property_ids, Spree::Property.all.map { |p| ["#{p.presentation} (#{p.name})", p.id] }, {}, { multiple: true, class: "select2" } %> <% end %> </div> <div id="option_types" data-hook> <%= f.field_container :option_type_ids do %> <%= f.label :option_type_ids, Spree.t(:option_types) %><br> <%= f.select :option_type_ids, Spree::OptionType.all.map { |ot| ["#{ot.presentation} (#{ot.name})", ot.id] }, {}, { multiple: true, class: "select2" } %> <% end %> </div> <div id='taxons' data-hook> <%= f.field_container :taxon_ids do %> <%= f.label :taxon_ids, Spree.t(:taxons) %><br> <%= f.select :taxon_ids, current_store.taxons.pluck(:name, :id), {}, { multiple: true, class: "select2" } %> <% end %> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems