Sha256: e2a9bf5551797318d6dd39ac17c74286a294a3f183e67f3de572b328a0b5f206

Contents?: true

Size: 399 Bytes

Versions: 6

Compression:

Stored size: 399 Bytes

Contents

ruby:
  raise 'Form parameter is required' if form.blank?

  attribute ||= nil  # attribute name that the editor should be attached to
  collection ||= nil
  value_method ||= nil
  text_method ||= nil

  options = {}
  html_options = {class: 'form-control bs-multiselect', multiple: "multiple"}

div
  = form.collection_select attribute, collection, value_method, text_method, options, html_options

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
biola_wcms_components-0.12.0 app/views/wcms_components/forms/_multiselect.html.slim
biola_wcms_components-0.11.0 app/views/wcms_components/forms/_multiselect.html.slim
biola_wcms_components-0.10.0 app/views/wcms_components/forms/_multiselect.html.slim
biola_wcms_components-0.9.1 app/views/wcms_components/forms/_multiselect.html.slim
biola_wcms_components-0.9.0 app/views/wcms_components/forms/_multiselect.html.slim
biola_wcms_components-0.8.0 app/views/wcms_components/forms/_multiselect.html.slim