mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#3835 add optional
This commit is contained in:
parent
de41bba043
commit
13718021bb
@ -5,16 +5,13 @@
|
||||
<table class="w-100 text-center">
|
||||
<thead>
|
||||
<tr class="text-white">
|
||||
<th class="text-nowrap" colspan="2">{{ trans('visiosoft.module.advs::field.ad_title') }}</th>
|
||||
<th class="text-nowrap" colspan="3">{{ trans('visiosoft.module.advs::field.ad_title') }}</th>
|
||||
{% if listLocation %}
|
||||
<th class="text-nowrap">
|
||||
{{ trans('visiosoft.module.advs::field.city.name') }}
|
||||
/ {{ trans('visiosoft.module.advs::field.district.name') }}
|
||||
</th>
|
||||
{% 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>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -7,6 +7,7 @@ return [
|
||||
'general_setting' => [
|
||||
'title' => 'visiosoft.module.profile::section.general_setting',
|
||||
'fields' => [
|
||||
'show_extends_actions',
|
||||
'required_district',
|
||||
'show_my_ads',
|
||||
'upload_avatar',
|
||||
|
||||
@ -76,4 +76,10 @@ return [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'show_extends_actions' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => true,
|
||||
]
|
||||
],
|
||||
];
|
||||
@ -48,6 +48,11 @@ return [
|
||||
'instructions' => 'Hides the register type field in the profile edit page.',
|
||||
],
|
||||
'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.',
|
||||
],
|
||||
];
|
||||
|
||||
@ -48,6 +48,12 @@ return [
|
||||
'instructions' => 'Profil düzenleme sayfasındaki kayıt türü alanını gizler.',
|
||||
],
|
||||
'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.',
|
||||
],
|
||||
];
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<i class="fas fa-plus-circle"></i>
|
||||
{{ trans("visiosoft.theme.base::button.post_ad.name") }}
|
||||
</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">
|
||||
{{ trans('visiosoft.module.profile::button.extend_all') }}
|
||||
</a>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user