Sha256: 8de0b74b5ce8b2248866dc2e15ba1dce454b7fef8ffc5289f3c8a5aae057f205
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
- tag_method = field_type == :check ? :check_box_tag : :radio_button_tag .filter-list._filter-list{ class: "filter-#{field_type}-list _filter-#{field}-field"} - options.each_with_index do |(label, value), index| - id = "filter-#{input_name.to_name.key}-#{value.to_name.key}" - value ||= label .form-check{ class: ("_more-filter-option" if index > 10) } %label.form-check-label{ for: id }< = label = send tag_method, input_name, value, value.in?(default), id: id, class: "form-check-input _submit-on-change" - if options.size > 10 ._show-more-filter-options.show-more-filter-options %a{ href: "#" } show more
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-mod-filter-0.3 | set/abstract/0_filter/filter_input_fields/check_filter.haml |
card-mod-filter-0.2 | set/abstract/0_filter/filter_input_fields/check_filter.haml |