Sha256: 00bd9002f647373996387c410e9537a74ef3d1e0daf859feeb0f2f848c332d29

Contents?: true

Size: 568 Bytes

Versions: 8

Compression:

Stored size: 568 Bytes

Contents

:ruby
  column_type_dom_id = form.dom_id(field).sub(field.method_name.to_s, "")
  attr = column_type_dom_id.gsub("frame_variants_attributes", '').gsub(/^_/, '[').gsub(/_$/, ']')

= #TODO: Add JavaScript to limit selectors here

- options_for_klass(@object.class).each do |option|
  %h5= option.name
  - option.option_values.each do |option_value|
    %p
      = check_box_tag "frame[variants_attributes]#{attr}[option_value_ids][]", option_value.id, form.object.option_values.include?(option_value), :style => "margin:-2px 5px 0px 0px;"
      %span= option_value.name

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
piggybak_variants-0.0.9 app/views/rails_admin/main/_option_values.html.haml
piggybak_variants-0.0.8 app/views/rails_admin/main/_option_values.html.haml
piggybak_variants-0.0.7 app/views/rails_admin/main/_option_values.html.haml
piggybak_variants-0.0.6 app/views/rails_admin/main/_option_values.html.haml
piggybak_variants-0.0.5 app/views/rails_admin/main/_option_values.html.haml
piggybak_variants-0.0.4 app/views/rails_admin/main/_option_values.html.haml
piggybak_variants-0.0.2 app/views/rails_admin/main/_option_values.html.haml
piggybak_variants-0.0.1 app/views/rails_admin/main/_option_values.html.haml