mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify into master
This commit is contained in:
commit
14a221af3e
@ -213,3 +213,7 @@ a.sort-by-open-dropdown:hover {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.filter-section .countries input[type=checkbox] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
@ -198,6 +198,7 @@ function SelectOnClick() {
|
|||||||
var id = $(this).attr('data-id');
|
var id = $(this).attr('data-id');
|
||||||
|
|
||||||
if ($(this).attr('data-field') == "country") {
|
if ($(this).attr('data-field') == "country") {
|
||||||
|
$('.filter-location-modal,.filter-location-back,.filter-location-modal .countries').hide();
|
||||||
$('input[name="country"]').val(id)
|
$('input[name="country"]').val(id)
|
||||||
text_html.html(input_text)
|
text_html.html(input_text)
|
||||||
$(".filter-location-body input[type='checkbox']").prop('checked', false);
|
$(".filter-location-body input[type='checkbox']").prop('checked', false);
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
<div class="row w-100 px-2 m-0">
|
<div class="row w-100 px-2 m-0">
|
||||||
<div class="col-12 px-0 py-1 px-2">
|
|
||||||
<b>
|
|
||||||
<span class="float-left">{{ trans('visiosoft.module.location::field.address.name') }}</span>
|
|
||||||
</b>
|
|
||||||
{% set defaultCountry = setting_value('visiosoft.module.location::default_country') %}
|
{% set defaultCountry = setting_value('visiosoft.module.location::default_country') %}
|
||||||
{% set selectedCountry = app.request.get('country') %}
|
{% set selectedCountry = app.request.get('country') %}
|
||||||
<a href="#" class="a-sahibinden-type selected-country filter-country-btn float-right">
|
|
||||||
{% set countryValue = '' %}
|
{% set countryValue = '' %}
|
||||||
{% if selectedCountry %}
|
{% if selectedCountry %}
|
||||||
{% set countryName = getCountry(selectedCountry).name %}
|
{% set countryName = getCountry(selectedCountry).name %}
|
||||||
@ -16,10 +12,18 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{% set countryName = trans("visiosoft.module.location::field.country.name") %}
|
{% set countryName = trans("visiosoft.module.location::field.country.name") %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<small>{{ countryName }}</small>
|
<div class="col-12 px-0 py-1">
|
||||||
</a>
|
<button type="button" class="btn btn-default border border-1 w-100 selected-country filter-country-btn"
|
||||||
|
data-toggle="modal">
|
||||||
|
<span class="float-left">
|
||||||
|
{{ trans("visiosoft.module.location::field.country.name") }}
|
||||||
|
<small class="text-muted selected-country">{{ countryName }}</small>
|
||||||
|
</span>
|
||||||
|
<i class="fas fa-sort-down float-right"></i>
|
||||||
|
</button>
|
||||||
<input name="country" value="{{ countryValue }}" type="hidden">
|
<input name="country" value="{{ countryValue }}" type="hidden">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 px-0 py-1">
|
<div class="col-12 px-0 py-1">
|
||||||
<button type="button" class="btn btn-default border border-1 w-100 filter-city-btn" data-toggle="modal"
|
<button type="button" class="btn btn-default border border-1 w-100 filter-city-btn" data-toggle="modal"
|
||||||
data-parent="">
|
data-parent="">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user