Merge pull request #1067 from openclassify/vedat

Optional Settings
This commit is contained in:
Dia Shalabi 2021-05-04 11:31:46 +03:00 committed by GitHub
commit 016a0496e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 6 deletions

View File

@ -5,6 +5,7 @@
<table class="w-100 text-center"> <table class="w-100 text-center">
<thead> <thead>
<tr class="text-white"> <tr class="text-white">
<th class="text-nowrap" colspan="3">{{ trans('visiosoft.module.advs::field.ad_title') }}</th>
<th class="text-nowrap" colspan="2">{{ trans('visiosoft.module.advs::field.ad_title') }}</th> <th class="text-nowrap" colspan="2">{{ trans('visiosoft.module.advs::field.ad_title') }}</th>
{% for cF in listingCFs %} {% for cF in listingCFs %}
@ -17,9 +18,6 @@
/ {{ trans('visiosoft.module.advs::field.district.name') }} / {{ trans('visiosoft.module.advs::field.district.name') }}
</th> </th>
{% endif %} {% endif %}
{% if setting_value('visiosoft.module.advs::market_place') %}
<th class="text-nowrap">{{ trans('visiosoft.module.advs::field.listing_date') }}</th>
{% endif %}
<th class="text-nowrap">{{ trans('visiosoft.module.advs::field.price.name') }}</th> <th class="text-nowrap">{{ trans('visiosoft.module.advs::field.price.name') }}</th>
</tr> </tr>
</thead> </thead>

View File

@ -7,6 +7,7 @@ return [
'general_setting' => [ 'general_setting' => [
'title' => 'visiosoft.module.profile::section.general_setting', 'title' => 'visiosoft.module.profile::section.general_setting',
'fields' => [ 'fields' => [
'show_extends_actions',
'required_district', 'required_district',
'show_my_ads', 'show_my_ads',
'upload_avatar', 'upload_avatar',

View File

@ -76,4 +76,10 @@ return [
'default_value' => false, 'default_value' => false,
] ]
], ],
'show_extends_actions' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => true,
]
],
]; ];

View File

@ -48,6 +48,11 @@ return [
'instructions' => 'Hides the register type field in the profile edit page.', 'instructions' => 'Hides the register type field in the profile edit page.',
], ],
'required_district' => [ 'required_district' => [
'name' => 'Required District' 'name' => 'Required District',
'instructions' => 'Adding an address represents the district obligation.',
],
'show_extends_actions' => [
'name' => 'Show Extends Actions',
'instructions' => 'Represents the Extends options available on the my profile Ads page.',
], ],
]; ];

View File

@ -48,6 +48,12 @@ return [
'instructions' => 'Profil düzenleme sayfasındaki kayıt türü alanını gizler.', 'instructions' => 'Profil düzenleme sayfasındaki kayıt türü alanını gizler.',
], ],
'required_district' => [ 'required_district' => [
'name' => 'Zorunlu Bölge' 'name' => 'İlçe Zorunluluğu',
'instructions' => 'Adres kayıtta ilçe zorunluluğunu temsil eder.',
],
'show_extends_actions' => [
'name' => 'Süre Uzatma Seçeneklerini Göster',
'instructions' => 'Profilim İlanlar sayfasında bulunan Süre uzatma seçeneklerini temsil eder.',
], ],
]; ];

View File

@ -31,7 +31,7 @@
<i class="fas fa-plus-circle"></i> <i class="fas fa-plus-circle"></i>
{{ trans("visiosoft.theme.base::button.post_ad.name") }} {{ trans("visiosoft.theme.base::button.post_ad.name") }}
</a> </a>
{% if auth_user().hasRole('admin') %} {% if auth_user().hasRole('admin') and setting_value('visiosoft.module.profile::show_extends_actions') %}
<a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary"> <a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary">
{{ trans('visiosoft.module.profile::button.extend_all') }} {{ trans('visiosoft.module.profile::button.extend_all') }}
</a> </a>