Merge pull request #1050 from openclassify/dia

#3722 Search Keyword Filter For Ads List
This commit is contained in:
spektra2147 2021-04-21 13:49:03 +03:00 committed by GitHub
commit c2401c2aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 1 deletions

View File

@ -166,7 +166,7 @@ ul {
/* End Location */ /* End Location */
/* Price */ /* Price */
#price { #price, .range-filter {
li { li {
& + & { & + & {
margin-left: 0.5em; margin-left: 0.5em;
@ -229,6 +229,14 @@ ul {
} }
/* End Map */ /* End Map */
/* Keyword */
#keywordFilter {
input {
font-size: calc(14rem / 16);
}
}
/* End Keyword */
/* Filter submit */ /* Filter submit */
#filterSubmit { #filterSubmit {
button { button {

View File

@ -343,6 +343,7 @@ return [
'view' => 'View', 'view' => 'View',
'ads_with_map' => 'Ads With Map', 'ads_with_map' => 'Ads With Map',
'advanced_sorting' => 'Advanced Sorting', 'advanced_sorting' => 'Advanced Sorting',
'filter_by_word' => 'Filter by word',
'free' => 'Free', 'free' => 'Free',
'ad_date' => 'Ad Date', 'ad_date' => 'Ad Date',

View File

@ -130,6 +130,22 @@
<!-- Map Filter End --> <!-- Map Filter End -->
{% endif %} {% endif %}
<!-- Keyword Filter Start -->
<div id="keywordFilter" class="border rounded filter-box p-3 mb-3">
<div class="d-flex align-items-center justify-content-between px-2 border-bottom mb-3 pb-1">
<p>{{ trans("visiosoft.module.advs::field.filter_by_word") }}</p>
{{ img('visiosoft.module.advs::images/listing/filter-arrow.svg').data|raw }}
</div>
<div class="px-3 mb-1">
<div class="d-flex justify-content-around mt-3 range-input-wrapper">
<input type="text" class="border-0 shadow-sm rounded px-3 py-1" name="keyword"
value="{{ app.request.get('keyword') }}">
</div>
</div>
</div>
<!-- Keyword Filter End -->
<div id="filterSubmit" class="px-3 text-right"> <div id="filterSubmit" class="px-3 text-right">
<button type="submit" class="btn text-white btn-sm px-3"> <button type="submit" class="btn text-white btn-sm px-3">
{{ trans("visiosoft.module.advs::field.search") }} {{ trans("visiosoft.module.advs::field.search") }}