|
8 | 8 | =form_tag jobs_path, method: :get do
|
9 | 9 | = text_field_tag :q, params[:q], placeholder: 'Search great jobs by Location, Title, or Company', class: 'field col-6'
|
10 | 10 | .col-1.inline.ml1
|
11 |
| - = check_box_tag :show_fulltime, true, params[:show_fulltime] |
| 11 | + = hidden_field_tag :show_fulltime, false, id: nil |
| 12 | + = check_box_tag :show_fulltime, true, params[:show_fulltime] == 'true' |
12 | 13 | = label_tag :show_fulltime, 'Full Time'
|
13 |
| - = check_box_tag :show_contract, true, params[:show_contract] |
| 14 | + |
| 15 | + = hidden_field_tag :show_parttime, false, id: nil |
| 16 | + = check_box_tag :show_parttime, true, params[:show_parttime] == 'true' |
| 17 | + = label_tag :show_parttime, 'Part Time' |
| 18 | + |
| 19 | + = hidden_field_tag :show_contract, false, id: nil |
| 20 | + = check_box_tag :show_contract, true, params[:show_contract] == 'true' |
14 | 21 | = label_tag :show_contract, 'Contracting'
|
15 |
| - = check_box_tag :show_remote, true, params[:show_remote] |
16 |
| - = label_tag :show_remote, 'Remote' |
| 22 | + |
| 23 | + = hidden_field_tag :show_remote, false, id: nil |
| 24 | + = check_box_tag :show_remote, true, params[:show_remote] == 'true' |
| 25 | + = label_tag :show_remote, 'Remote Only' |
17 | 26 | .col-1.inline.ml1
|
18 | 27 | %button.btn.bg-purple.white.rounded{type: 'submit'}= icon('search')
|
19 | 28 | .col.sm-col-1
|
|
0 commit comments