Sha256: 4f7312dc2bace5bf8dba35a2d89a4d2f8e13a9562ad2b1e501bd1d3e614dc180

Contents?: true

Size: 970 Bytes

Versions: 17

Compression:

Stored size: 970 Bytes

Contents

<% unless field.multiple? %>
  <div class="row">
    <div class="col-sm-4">
      <%= form.select field.method_name, field.enum, { include_blank: true }.reverse_merge({ selected: field.form_value }), field.html_attributes.reverse_merge({ data: { enumeration: true }, placeholder: t('admin.misc.search') }) %>
    </div>
  </div>
<% else %>
  <%
    js_data = {
      xhr: false,
      sortable: false,
      cacheAll: true,
      regional: {
        add: t("admin.misc.add_new"),
        chooseAll: t("admin.misc.chose_all"),
        clearAll: t("admin.misc.clear_all"),
        down: t("admin.misc.down"),
        remove: t("admin.misc.remove"),
        search: t("admin.misc.search"),
        up: t("admin.misc.up")
      }
    }
  %>
  <%= form.select field.method_name, field.enum, { selected: field.form_value, object: form.object }, field.html_attributes.reverse_merge({data: { filteringmultiselect: true, options: js_data.to_json }, multiple: true}) %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_admin-3.2.1 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.2.0 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.2.0.rc app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.2.0.beta app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.4 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.3 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.2 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.1 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.0 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.0.rc2 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.0.rc app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.1.0.beta app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.0.0 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.0.0.rc4 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.0.0.rc3 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.0.0.rc2 app/views/rails_admin/main/_form_enumeration.html.erb
rails_admin-3.0.0.rc app/views/rails_admin/main/_form_enumeration.html.erb