Sha256: 79972ee5bd26fc4e2a56f4e15601af6e3fa1a7c6bad62e98a9c71fa2fb4c48af

Contents?: true

Size: 992 Bytes

Versions: 6

Compression:

Stored size: 992 Bytes

Contents

<div data-hook="admin_prototype_form_fields" class="row">
  <div class="alpha four columns">
    <%= f.field_container :name do %>
      <%= f.label :name, Spree.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, Spree.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, Spree.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

6 entries across 6 versions & 1 rubygems

Version Path
spree_backend-2.0.4 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-2.0.3 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-2.0.2 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-2.0.1 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-2.0.0 app/views/spree/admin/prototypes/_form.html.erb
spree_backend-2.0.0.rc1 app/views/spree/admin/prototypes/_form.html.erb