Sha256: ef07815465bddc717be78f1cc49fc9aac5b0707447035afe05868d4532b47d54

Contents?: true

Size: 638 Bytes

Versions: 6

Compression:

Stored size: 638 Bytes

Contents

<%= f.label a.keys.first, class: "form-control-label #{required?(f.object, a) ? 'required' : ''}" %>
<%= render 'slash_admin/shared/tooltip', a: a %>
<% 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: 'form-control select2-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: 'form-control select2-single') %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slash_admin-1.3.1 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.3.0 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.2.2 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.2.1 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.2.0 app/views/slash_admin/custom_fields/_select.html.erb
slash_admin-1.1.0 app/views/slash_admin/custom_fields/_select.html.erb