tab/app/views/datagrid/_enum_checkboxes.html.erb
2015-09-10 13:53:27 +02:00

12 lines
484 B
Plaintext

<%#
Indent in this file may cause extra space to appear.
You can add indent if whitespace doesn't matter for you
%>
<%- elements.each do |value, text, checked| -%>
<%- id = [form.object_name, filter.name, value].join('_').underscore -%>
<%= form.label filter.name, options.merge(:for => id) do -%>
<%= form.check_box(filter.name, form.datagrid_extra_checkbox_options.merge(:multiple => true, :id => id, :checked => checked), value.to_s, nil) -%>
<%= text -%>
<%- end -%>
<%- end -%>