Sha256: 19229bc65ce1ab4ac53f294cc71b96f23c78770e820fb9a37c230e25d1f144ad

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 Bytes

Contents

<%= (f.label field.underscored_name, field.label) %><%= (field.required ? content_tag('span', ' *', :class => 'required') : '') %>
<% field_options = field.options.split(',').collect{|o| o.strip!;[o,o]} %>
<%= f.select field.underscored_name, options_for_select(field_options, form_response.send(field.underscored_name)), {}, { :class => 'multi', :multiple => true, :size => [field_options.size, 10].min } %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
noodall-form-builder-0.5.4 app/views/noodall/form_responses/fields/_multiselect.html.erb
noodall-form-builder-0.5.3 app/views/noodall/form_responses/fields/_multiselect.html.erb
noodall-form-builder-0.5.2 app/views/noodall/form_responses/fields/_multiselect.html.erb