Sha256: ad07d28f9bf34cc8c1902704340b172708006f9354b16f03d1687152154ad97f

Contents?: true

Size: 1.25 KB

Versions: 136

Compression:

Stored size: 1.25 KB

Contents

<div data-hook="admin_prototype_form_fields">
  <%= f.field_container :name, class: ['form-group'] 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, class: ['form-group'] 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, class: ['form-group'] 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, class: ['form-group'] do %>
      <%= f.label :taxon_ids, Spree.t(:taxons) %><br>
      <%= f.select :taxon_ids, Spree::Taxon.all.map { |t| [t.name, t.id] }, {}, { multiple: true, class: "select2" } %>
    <% end %>
  </div>
</div>

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.1.15 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.1.14 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.0.8 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-3.7.14.1 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.1.13.1 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.0.7.1 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.0.7 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-3.7.14 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.2.0.rc4 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.2.0.rc3 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.1.13 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.0.6 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.2.0.rc2 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-3.7.13 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.0.5 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.1.12 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-3.7.12 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.2.0.rc1 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-4.0.4 app/views/spree/admin/prototypes/_form.html.erb