Sha256: 89fa447abe91e4b07470596db7977c05e9e1a45bc429627ff3fdbe07b1990ad6

Contents?: true

Size: 1.43 KB

Versions: 12

Compression:

Stored size: 1.43 KB

Contents

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

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

  <div class="four columns">
    <div id="option_types" data-hook>
      <%= f.field_container :option_type_ids do %>
        <%= f.label :option_type_ids, plural_resource_name(Spree::OptionType) %><br>
        <%= f.select :option_type_ids, Spree::OptionType.all.map { |ot| ["#{ot.presentation} (#{ot.name})", ot.id] }, {}, { multiple: true, class: "select2 fullwidth" } %>
      <% end %>
    </div>
  </div>

  <div class="four columns omega">
    <div id='taxons' data-hook>
      <%= f.field_container :taxon_ids do %>
        <%= f.label :taxon_ids, plural_resource_name(Spree::Taxon) %><br>
        <%= f.select :taxon_ids, Spree::Taxon.all.map { |t| [t.name, t.id] }, {}, { multiple: true, class: "select2 fullwidth" } %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
solidus_backend-2.0.3 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-1.4.2 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-2.0.2 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-1.4.1 app/views/spree/admin/prototypes/_form.html.erb
solidus_prototypes-1.0.0 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-2.0.1 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-2.0.0 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-1.4.0 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/prototypes/_form.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/prototypes/_form.html.erb