Sha256: 7894e457eee2fd746d5559978da3bc7ba736f9cfd7335a647d625b8526f002df

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

= hidden_field_tag "#{resource_name}[#{field.name.to_s.singularize}_ids][]",""
- field.association_values.call.each do |value|
  - editors = resource.send(:"#{field.name.to_s.singularize}_ids")
  .habtm-container
    = label_tag "#{resource_name}_#{field.name}_#{value.last}",value.first, :class => "habtm-label"
    = check_box_tag "#{resource_name}[#{field.name.to_s.singularize}_ids][]", value.last, resource.send(field.name).include?(value.last), :id => "#{resource_name}_#{field.name}_#{value.last}", :class => "habtm-checkbox"
.clear

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lolita-3.1.16 app/views/components/lolita/configuration/field/array/habtm/_display.html.haml
lolita-3.1.15 app/views/components/lolita/configuration/field/array/habtm/_display.html.haml
lolita-3.1.14 app/views/components/lolita/configuration/field/array/habtm/_display.html.haml
lolita-3.1.13 app/views/components/lolita/configuration/field/array/habtm/_display.html.haml