Sha256: b857b280e034b6a4cf5d90ee5c9bb9fbbfc2dec4f23926b7503969efe4790315

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

= form.input field.method_name, collection: field.enum, label: field.label, hint: field.help, required: field.required?, 
    input_html: { data: { select: {} } }.deep_merge(field.html_attributes)
-#- unless field.multiple?
-#- else
-#  / TODO
-#  :ruby
-#    js_data = {
-#      :xhr => false,
-#      :sortable => false,
-#      :cacheAll => true,
-#      :regional => {
-#        :chooseAll => t("admin.misc.chose_all"),
-#        :chosen    => t("admin.misc.chosen", :name => config.label_plural),
-#        :clearAll  => t("admin.misc.clear_all"),
-#        :search    => t("admin.misc.search"),
-#        :up        => t("admin.misc.up"),
-#        :down      => t("admin.misc.down")
-#      }
-#    }
-#  = form.input field.method_name, :collection => field.enum , label: field.label, hint: field.help, required: field.required?, input_html: field.html_attributes, { :selected => field.value, :object => form.object }, field.html_attributes.reverse_merge({:data => { :filteringmultiselect => true, :options => js_data.to_json }, :multiple => true})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
basepack-0.0.2 app/views/forms/edit/_form_enumeration.html.haml