Sha256: 1a45106bee9a7c81465f2844bbf1f5222c45966f7a82c3122dadc44041467692

Contents?: true

Size: 862 Bytes

Versions: 6

Compression:

Stored size: 862 Bytes

Contents

:ruby
  js_data = {
    filteringselect: true,
    options: {
      create_search_choice: true,
      minimum_input_length: 1,
      multiple:true,
      strip_spaces: true,
      placeholder: I18n.t('admin.misc.search'),
      remote_source: polymorphic_path([:taggings, field.form.resource_class])
    }.to_json
  }

= form.input field.method_name, label: "<i class='icon-tags'></i> #{field.label}", hint: field.help, required: field.required? do
  - bulk_edit = form.simple_form.object.respond_to?(:bulk_edit) ? form.simple_form.object.bulk_edit : OpenStruct.new
  = form.simple_form.fields_for :bulk_edit, bulk_edit do |ff|
    = ff.input_field field.method_name,
        include_blank: false,
        collection: Basepack::Settings.bulk_edit.field_action_select,
        class: 'span2'
  = form.input_field field.method_name, { type: 'text', data: js_data}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
basepack-1.0.1 app/views/forms/bulk_edit/_tag_list_with_suggestions.html.haml
basepack-1.0.0 app/views/forms/bulk_edit/_tag_list_with_suggestions.html.haml
basepack-1.0.0.pre.0 app/views/forms/bulk_edit/_tag_list_with_suggestions.html.haml
basepack-0.2.0 app/views/forms/bulk_edit/_tag_list_with_suggestions.html.haml
basepack-0.1.0 app/views/forms/bulk_edit/_tag_list_with_suggestions.html.haml
basepack-0.0.2 app/views/forms/bulk_edit/_tag_list_with_suggestions.html.haml