mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
Merge pull request #792 from openclassify/dia
#2647 emlak24 yapılacaklar
This commit is contained in:
commit
77adb11c45
@ -23,14 +23,23 @@ return [
|
||||
'latest-limit',
|
||||
'popular_ads_limit',
|
||||
'default_view_type',
|
||||
'hide_listing_standard_price',
|
||||
'hide_zero_price',
|
||||
'auto_approve',
|
||||
'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',
|
||||
'hide_configurations',
|
||||
'make_map_required',
|
||||
'show_breadcrumb_when_creating_ad',
|
||||
],
|
||||
],
|
||||
|
||||
@ -125,6 +125,34 @@ return [
|
||||
'mode' => 'checkbox'
|
||||
]
|
||||
],
|
||||
'hide_village_field' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
'mode' => 'checkbox'
|
||||
]
|
||||
],
|
||||
'hide_configurations' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
'mode' => 'checkbox'
|
||||
]
|
||||
],
|
||||
'make_map_required' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
'mode' => 'checkbox'
|
||||
]
|
||||
],
|
||||
'hide_listing_standard_price' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
'mode' => 'checkbox'
|
||||
]
|
||||
],
|
||||
'enabled_currencies' => [
|
||||
'bind' => 'streams::currencies.enabled',
|
||||
'env' => 'ADV_ENABLED_CURRENCIES',
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
$('#createEditAdvForm').submit(function () {
|
||||
if ($('input[name=map_Val]').val().length === 0) {
|
||||
alert(selectLocationAlert)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
@ -25,4 +25,5 @@ return [
|
||||
'no_add_found' => 'No Ad Found!',
|
||||
'replicated_success' => 'The ad has been replicated successfully!',
|
||||
'ad_doesnt_exist' => "This ad doesn't exist!",
|
||||
'select_location_error' => "Please select a location on the map!",
|
||||
];
|
||||
|
||||
@ -41,6 +41,7 @@ return [
|
||||
'ads' => 'Ads',
|
||||
'user' => 'User',
|
||||
'filter' => 'Filter',
|
||||
'create_ad' => 'Create Ad',
|
||||
'options' => [
|
||||
'title' => 'Options',
|
||||
],
|
||||
|
||||
@ -100,6 +100,20 @@ return [
|
||||
'hide_options_field' => [
|
||||
'name' => 'Hide Options Field',
|
||||
],
|
||||
'hide_village_field' => [
|
||||
'name' => 'Hide Village Field',
|
||||
],
|
||||
'hide_configurations' => [
|
||||
'name' => 'Hide the Configurations Button',
|
||||
'instructions' => 'Hide the Configurations Button in the Ad Preview Page',
|
||||
],
|
||||
'make_map_required' => [
|
||||
'name' => 'Make Map Required',
|
||||
'instructions' => 'Require the user to place a pin on the map when creating an ad',
|
||||
],
|
||||
'hide_listing_standard_price' => [
|
||||
'name' => 'Hide Listing Standard Price',
|
||||
],
|
||||
'enabled_currencies' => [
|
||||
'name' => 'Enabled Currencies',
|
||||
],
|
||||
|
||||
@ -21,11 +21,13 @@
|
||||
<div class="col-md-3 text-left justify-content-center align-self-center">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<p class="theme-price-old small mb-0"><del>
|
||||
{{ adv.standard_price != adv.price and adv.standard_price != '0'
|
||||
? adv.standard_price.currency()
|
||||
: '' }}
|
||||
</del></p>
|
||||
{% if not setting_value('visiosoft.module.advs::hide_listing_standard_price') %}
|
||||
<p class="theme-price-old small mb-0"><del>
|
||||
{{ adv.standard_price != adv.price and adv.standard_price != '0'
|
||||
? adv.standard_price.currency()
|
||||
: '' }}
|
||||
</del></p>
|
||||
{% endif %}
|
||||
<b>{{ adv.price != '0'
|
||||
? adv.price.currency()
|
||||
: trans('visiosoft.module.advs::field.free') }}</b>
|
||||
|
||||
@ -206,6 +206,13 @@
|
||||
var pick_option = "{{ trans('visiosoft.module.location::field.pick_option.name') }}"
|
||||
</script>
|
||||
|
||||
{% if setting_value('visiosoft.module.advs::make_map_required') %}
|
||||
<script>
|
||||
let selectLocationAlert = "{{ trans('visiosoft.module.advs::message.select_location_error') }}"
|
||||
</script>
|
||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/required-map.js") }}
|
||||
{% endif %}
|
||||
|
||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/new-create.js") }}
|
||||
{{ asset_add("scripts.js", "streams::js/form/form.js") }}
|
||||
{{ asset_add("scripts.js", "streams::js/form/translations.js") }}
|
||||
|
||||
@ -16,10 +16,12 @@
|
||||
{% else %}
|
||||
{% set continueLink = url_route('adv_detail_seo', [adv.slug, adv.id]) %}
|
||||
{% endif %}
|
||||
<a href="{{ route('visiosoft.module.advs::user.configrations.create') }}?ad={{ adv.id }}"
|
||||
class="btn btn-warning shadow-sm mr-4 text-white">
|
||||
{{trans('visiosoft.module.advs::button.create_configurations')}}
|
||||
</a>
|
||||
{% if not setting_value('visiosoft.module.advs::hide_configurations') %}
|
||||
<a href="{{ route('visiosoft.module.advs::user.configrations.create') }}?ad={{ adv.id }}"
|
||||
class="btn btn-warning shadow-sm mr-4 text-white">
|
||||
{{trans('visiosoft.module.advs::button.create_configurations')}}
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="{{ url_route('visiosoft.module.advs::edit_adv', [adv.id]) }}"
|
||||
class="btn preview-edit shadow-sm border">
|
||||
{{ trans('visiosoft.module.advs::field.edit') }}
|
||||
@ -33,10 +35,12 @@
|
||||
<div class="preview-overlay position-absolute"></div>
|
||||
</div>
|
||||
<div class="preview-actions text-center">
|
||||
<a href="{{ route('visiosoft.module.advs::user.configrations.create') }}?ad={{ adv.id }}"
|
||||
class="btn btn-warning shadow-sm mr-4 text-white">
|
||||
{{trans('visiosoft.module.advs::button.create_configurations')}}
|
||||
</a>
|
||||
{% if not setting_value('visiosoft.module.advs::hide_configurations') %}
|
||||
<a href="{{ route('visiosoft.module.advs::user.configrations.create') }}?ad={{ adv.id }}"
|
||||
class="btn btn-warning shadow-sm mr-4 text-white">
|
||||
{{trans('visiosoft.module.advs::button.create_configurations')}}
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="{{ url_route('visiosoft.module.advs::edit_adv', [adv.id]) }}" class="btn preview-edit shadow-sm border">
|
||||
{{ trans('visiosoft.module.advs::field.edit') }}
|
||||
</a>
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user