Sha256: 0986605d2c9ccad797d475064e91e7556bb1cb2fdfb68a27267c446efc47ff35

Contents?: true

Size: 977 Bytes

Versions: 5

Compression:

Stored size: 977 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.sorted.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

5 entries across 5 versions & 2 rubygems

Version Path
spree_core-1.3.1 app/views/spree/admin/prototypes/_form.html.erb
spree_core-1.3.0 app/views/spree/admin/prototypes/_form.html.erb
spree_core-1.3.0.rc2 app/views/spree/admin/prototypes/_form.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/admin/prototypes/_form.html.erb
spree_core-1.3.0.rc1 app/views/spree/admin/prototypes/_form.html.erb