Merge pull request #752 from openclassify/dia

#2492 emlak24 free ads button text change
This commit is contained in:
Fatih Alp 2020-10-28 14:45:39 +03:00 committed by GitHub
commit 9b7137f956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 22 deletions

View File

@ -29,6 +29,7 @@ return [
'default_published_time',
'default_GET',
'hide_standard_price_field',
'hide_options_field',
'listing_page_image',
],
],

View File

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

View File

@ -97,6 +97,9 @@ return [
'hide_standard_price_field' => [
'name' => 'Hide Standard Price Field',
],
'hide_options_field' => [
'name' => 'Hide Options Field',
],
'enabled_currencies' => [
'name' => 'Enabled Currencies',
],

View File

@ -122,30 +122,32 @@
</div>
</div>
<div class="row form-group select-options">
<label for="selectOptions" class="col-sm-2">
{{ trans('visiosoft.module.advs::field.options') }}
</label>
<div class="col-sm-10">
<select id="selectOptions" class="form-control options-tags" multiple="multiple"
name="options[]">
{% if count(options) %}
{% for option in options %}
<option id="advOption{{ option.id }}" selected="selected">{{ option.name }}</option>
{% endfor %}
{% endif %}
</select>
{% if not setting_value('visiosoft.module.advs::hide_options_field') %}
<div class="row form-group select-options">
<label for="selectOptions" class="col-sm-2">
{{ trans('visiosoft.module.advs::field.options') }}
</label>
<div class="col-sm-10">
<select id="selectOptions" class="form-control options-tags" multiple="multiple"
name="options[]">
{% if count(options) %}
{% for option in options %}
<option id="advOption{{ option.id }}" selected="selected">{{ option.name }}</option>
{% endfor %}
{% endif %}
</select>
</div>
</div>
</div>
<div class="row form-group product-options">
<label for="productOptions" class="col-sm-2">
{{ trans('visiosoft.module.advs::field.product_option.name') }}
</label>
<div class="col-sm-10">
{{ form.fields.product_options_value.input|raw }}
<div class="row form-group product-options">
<label for="productOptions" class="col-sm-2">
{{ trans('visiosoft.module.advs::field.product_option.name') }}
</label>
<div class="col-sm-10">
{{ form.fields.product_options_value.input|raw }}
</div>
</div>
</div>
{% endif %}
<div class="row form-group brand-name">
<div class="col-md-12">

View File

@ -2,7 +2,7 @@
return [
'post_ad' => [
'name' => 'Ücretsiz İlan Ver',
'name' => 'İlan Ver',
],
'login' => 'Giriş Yap',
'register' => 'Üye Ol',