#2647 emlak24 yapılacaklar

This commit is contained in:
Diatrex 2020-11-12 15:33:39 +03:00
parent 051a4551d5
commit 4ae49141f4
5 changed files with 22 additions and 3 deletions

View File

@ -28,9 +28,15 @@ return [
'estimated_pending_time',
'default_published_time',
'default_GET',
'listing_page_image',
],
],
'create_ad' => [
'title' => 'visiosoft.module.advs::section.create_ad',
'fields' => [
'hide_standard_price_field',
'hide_options_field',
'listing_page_image',
'hide_village_field',
'show_breadcrumb_when_creating_ad',
],
],

View File

@ -125,6 +125,13 @@ return [
'mode' => 'checkbox'
]
],
'hide_village_field' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => false,
'mode' => 'checkbox'
]
],
'enabled_currencies' => [
'bind' => 'streams::currencies.enabled',
'env' => 'ADV_ENABLED_CURRENCIES',

View File

@ -41,6 +41,7 @@ return [
'ads' => 'Ads',
'user' => 'User',
'filter' => 'Filter',
'create_ad' => 'Create Ad',
'options' => [
'title' => 'Options',
],

View File

@ -100,6 +100,9 @@ return [
'hide_options_field' => [
'name' => 'Hide Options Field',
],
'hide_village_field' => [
'name' => 'Hide Village Field',
],
'enabled_currencies' => [
'name' => 'Enabled Currencies',
],

View File

@ -27,8 +27,10 @@
class="location-field district-data">{{ form.fields.district|raw }}</li>
<li class="neighborhood-data" data-content="{{ adv['neighborhood'] }}"
class="location-field neighborhood-data">{{ form.fields.neighborhood|raw }}</li>
<li class="village-data" data-content="{{ adv['village'] }}"
class="location-field">{{ form.fields.village|raw }}</li>
{% if not setting_value('visiosoft.module.advs::hide_village_field') %}
<li class="village-data" data-content="{{ adv['village'] }}"
class="location-field">{{ form.fields.village|raw }}</li>
{% endif %}
</ul>
</div>
<div class="col-sm-8">