Sha256: 0aed05b1f4f9d802f0e19337383f3397396d8234a4f28cf0b0899b0d331c80d8

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

.form-group{ class: total_filters.to_i > 4 ? 'col-3' : 'col-md'}
  %label{ for: "filter_#{name}" }= label
  %select.form-control{ name: name, id: "filter_#{name}" }
    %option{ value: '' } -- Select One --
    - options.each do |k,v| k ||= v;  v ||= k;
      %option{ value: k, selected: (params[name].eql? k)}= v

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ditty-0.9.1 views/partials/filter_control.haml
ditty-0.9.0 views/partials/filter_control.haml