change filter country design

This commit is contained in:
vedatakd 2020-10-05 15:13:10 +03:00
parent 8acd2289e4
commit a296b225c0

View File

@ -1,11 +1,13 @@
<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">
<div class="col-12 px-0 py-1">
<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") }}</span>
<i class="fas fa-sort-down float-right"></i>
</button>
{% set countryValue = '' %} {% set countryValue = '' %}
{% if selectedCountry %} {% if selectedCountry %}
{% set countryName = getCountry(selectedCountry).name %} {% set countryName = getCountry(selectedCountry).name %}
@ -16,10 +18,13 @@
{% else %} {% else %}
{% set countryName = trans("visiosoft.module.location::field.country.name") %} {% set countryName = trans("visiosoft.module.location::field.country.name") %}
{% endif %} {% endif %}
<div class="text-muted selected-country">
<small>{{ countryName }}</small> <small>{{ countryName }}</small>
</a> </div>
<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="">