#1760 [core] Listing show parameters

This commit is contained in:
Diatrex 2020-10-01 10:50:27 +03:00
parent e6eea8088d
commit 6204e1de42
3 changed files with 59 additions and 8 deletions

View File

@ -115,6 +115,14 @@
font-size: 13px;
}
.result-text h1 {
font-size: 13px;
margin: 0;
padding-right: 6px;
line-height: 1.5;
max-width: 330px;
}
.result-text span:first-child {
font-weight: 500;
}
@ -141,6 +149,18 @@
max-width: 400px;
}
.result-text .filter-tabs div:last-child a {
background-color: unset;
font-size: 10px;
padding: 4px 7px;
text-decoration: none;
color: #039;
}
.result-text .filter-tabs div:last-child a:hover {
text-decoration: underline;
}
.result-text .filter-tabs a:hover {
background-color: #e0e0e0;
}

View File

@ -305,4 +305,5 @@ return [
'photo_video' => 'Photo, Video',
'and_above' => 'and above',
'and_below' => 'and below',
'clear_all' => 'Clear All',
];

View File

@ -19,15 +19,45 @@
</div>
<div class="col-md-9">
<div class="section recommended-classified">
{% if catText %}
<div class="result-text border py-2 px-3 mb-3 d-none d-sm-block">
<p class="mb-0">
<span>"{{ catText }}"</span>
<span>{{ advs.total }} {{ trans('visiosoft.module.advs::field.ads')|lower }}</span>
{{ trans('visiosoft.module.advs::field.were_found') }}
</p>
<div class="result-text border d-none d-sm-block">
<div class="mx-3 py-2">
{% if catText %}
<h1 class="d-inline text-truncate">
"{{ catText }}"
</h1>
{% endif %}
<span style="color: #8f0100; font-weight: 500;">
{{ advs.total }} {{ trans('visiosoft.module.advs::field.ads')|lower }}
</span>
{{ trans('visiosoft.module.advs::field.were_found') }}
</div>
{% endif %}
{% if count(cFArray) %}
<div class="mx-3 border-top py-2 filter-tabs d-flex flex-wrap">
{% for customParam in cFArray %}
<div class="d-flex align-items-center">
<span class="mr-1">{{ customParam['name'] }}</span>
{% for customValue in customParam['value'] %}
<a href="{{ customValue['removalLink'] }}"
class="text-truncate d-flex align-items-center mr-1">
<span class="mr-2">{{ customValue['name'] }}</span>
<button class="border-0 d-flex align-items-center justify-content-center">
{{ img('visiosoft.module.advs::images/close.svg').data|raw }}
</button>
</a>
{% endfor %}
</div>
{% endfor %}
<div class="d-flex align-items-center">
<a href="{{ app.request.pathinfo }}"
class="text-truncate d-flex align-items-center mr-1">
{{ trans('visiosoft.module.advs::field.clear_all') }}
</a>
</div>
</div>
{% endif %}
</div>
<div class="row breadcrumb list-header">
<div class="col-md-6 my-2 d-none d-sm-block">