Sha256: 73e2effa268e06bfe9b418af8e18099467162422aaf7c7cd01518c17994d18a9

Contents?: true

Size: 974 Bytes

Versions: 4

Compression:

Stored size: 974 Bytes

Contents

<div data-hook="admin_prototype_form_fields" class="row">
  <div class="alpha four columns">
    <%= f.field_container :name do %>
      <%= f.label :name, t(:name) %>
      <%= f.text_field :name, :class => 'fullwidth' %>
      <%= f.error_message_on :name %>
    <% end %>
  </div>

  <div class="six columns">
    <div id='properties' data-hook>
      <%= f.field_container :property_ids do %>
        <%= f.label :property_ids, t(:properties) %><br>
        <%= f.select :property_ids, Spree::Property.all.map { |p| [p.presentation, p.id] }, {}, { :multiple => true, :class => "select2 fullwidth" } %>
      <% end %>
    </div>
  </div>

  <div class="six columns omega">
    <%= f.field_container :option_type_ids do %>
      <%= f.label :option_type_ids, t(:option_types) %><br>
      <%= f.select :option_type_ids, Spree::OptionType.all.map { |ot| [ot.presentation, ot.id] }, {}, { :multiple => true, :class => "select2 fullwidth" } %>
    <% end %>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-1.3.5 app/views/spree/admin/prototypes/_form.html.erb
spree_core-1.3.4 app/views/spree/admin/prototypes/_form.html.erb
spree_core-1.3.3 app/views/spree/admin/prototypes/_form.html.erb
spree_core-1.3.2 app/views/spree/admin/prototypes/_form.html.erb