Sha256: 304d6a736e017957b77e7b383088518c22285f74cf28344b0a3892cfd6d093d0

Contents?: true

Size: 567 Bytes

Versions: 6

Compression:

Stored size: 567 Bytes

Contents

<%= f.label a.keys.first, class: "form-control-label #{required?(f.object, a) ? 'required' : ''}" %>
<% if a[a.keys.first][:multiple].present? && a[a.keys.first][:multiple] == true %>
  <%= f.select(a.keys.first, a[a.keys.first][:choices], { include_blank: a[a.keys.first][:include_blank], required: required?(f.object, a) }, class: 'selectize-multiple', multiple: true) %>
<% else %>
  <%= f.select(a.keys.first, a[a.keys.first][:choices], { include_blank: a[a.keys.first][:include_blank], required: required?(f.object, a) }, class: 'selectize-single') %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slash_admin-1.0.5 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.0.4 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.0.3 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.0.2 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.0.1 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.0 app/views/slash_admin/custom_fields/_select.html.erb