foreman/app/views/common/_edit_habtm.erb @ b47f3920
b47f3920 | Ohad Levy | | <% for association in associations -%>
|
|
55ed30c7 | Ohad Levy | <%= check_box_tag(
|
|
66bb73ba | Ohad Levy | "#{klass.class.to_s.downcase}[#{association.class.to_s.downcase}_ids][]",
|
|
82146751 | Ohad Levy | association.id, klass.send(association.class.table_name).to_a.include?(association))
|
|
55ed30c7 | Ohad Levy | %>
|
|
b47f3920 | Ohad Levy | <%= association %> |
|
|
66bb73ba | Ohad Levy | <%= hidden_field_tag "#{klass.class.to_s.downcase}[#{association.class.to_s.downcase}_ids][]" %>
|
|
55ed30c7 | Ohad Levy | <% end -%>
|