Skip to content

Commit

Permalink
Try to add year slider
Browse files Browse the repository at this point in the history
  • Loading branch information
momijizukamori committed Aug 4, 2023
1 parent 4bd8b3b commit 3e65eef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"qs": "^6.8.0",
"sass-svg-uri": "^1.0.0",
"simple-lightbox": "^2.1.0",
"vue-select": "^3.1.0"
"vue-select": "^3.1.0",
"bootstrap-slider": "11.0.2"
}
}
13 changes: 12 additions & 1 deletion resources/views/components/filters.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,19 @@
</div>
@endforeach
<div class="pb-2">
<label class="control-label">Year</label>
<label class="control-label" for="year-slider">Year</label>
<v-select style="width: 100%" v-model="state.years" :options="years" placeholder="Tap to filter" multiple></v-select>
<input
type="text"
name="year"
id="year-slider"
data-provide="slider"
data-slider-ticks="[1970, 2023]"
data-slider-ticks-labels='["1970", "2023"]'
data-slider-min="1970"
data-slider-max="2023"
data-slider-step="1"
>
<div class="match_type"> {{__('ui.search.match_type')}}
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-outline-secondary active btn-sm">
Expand Down

0 comments on commit 3e65eef

Please sign in to comment.