Sha256: 96de1d53fee1b374ded4bb637071faf1da470562383843967204e19812dd70ff

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 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: '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

1 entries across 1 versions & 1 rubygems

Version Path
slash_admin-1.0.6 app/views/slash_admin/custom_fields/_select.html.erb