Merge remote-tracking branch 'origin/master'

This commit is contained in:
vedatakd 2021-07-01 10:23:27 +03:00
commit c3b005f48c
5 changed files with 66 additions and 53 deletions

View File

@ -53,6 +53,7 @@ return [
'create_ad' => [ 'create_ad' => [
'title' => 'visiosoft.module.advs::section.create_ad', 'title' => 'visiosoft.module.advs::section.create_ad',
'fields' => [ 'fields' => [
'hide_contact_created_at',
'show_tax_field', 'show_tax_field',
'detailed_product_options', 'detailed_product_options',
'steps_color', 'steps_color',

View File

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

View File

@ -133,6 +133,9 @@ return [
], ],
'market_place' => [ 'market_place' => [
'name' => 'Market Place', 'name' => 'Market Place',
'instructions' => 'If the marketplace is down, your site will act as ecommerce. For example,
some fields in the profile such as ads, dopings, messages, sale, packages and store are not visible and
removes corporate membership.'
], ],
'price_area_hidden' => [ 'price_area_hidden' => [
'name' => 'Price Area Hidden', 'name' => 'Price Area Hidden',
@ -280,4 +283,7 @@ return [
'name' => 'Show Tax Field', 'name' => 'Show Tax Field',
'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.' 'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.'
], ],
'hide_contact_created_at' => [
'name' => 'Hide Contact Fields For in Create New Ad'
]
]; ];

View File

@ -1,40 +1,42 @@
<div id="contactInfo" class="mb-3"> {% if (setting_value('visiosoft.module.advs::hide_contact_created_at') != true) %}
<h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3> <div id="contactInfo" class="mb-3">
<div id="reachInfo"> <h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3>
{% set showPhoneNumber = form.fields.show_phone_number.value %} <div id="reachInfo">
<p>{{ trans('visiosoft.module.advs::field.how_can_you_be_contacted') }}</p> {% set showPhoneNumber = form.fields.show_phone_number.value %}
<div> <p>{{ trans('visiosoft.module.advs::field.how_can_you_be_contacted') }}</p>
<label class="mr-3"> <div>
<input type="radio" class="mr-1" name="show_phone_number" value="1" {{ showPhoneNumber ? 'checked' }}> <label class="mr-3">
{{ trans('visiosoft.module.advs::field.with_my_phone_numbers') }} <input type="radio" class="mr-1" name="show_phone_number" value="1" {{ showPhoneNumber ? 'checked' }}>
{{ trans('visiosoft.module.advs::field.with_my_phone_numbers') }}
</label>
<label>
<input type="radio" class="mr-1" name="show_phone_number" value="0" {{ not showPhoneNumber ? 'checked' }}>
{{ trans('visiosoft.module.advs::field.not_with_my_phone_numbers') }}
</label>
</div>
</div>
<div id="contactSummary" class="d-flex justify-content-between flex-wrap">
<label>
{{ trans('visiosoft.module.profile::field.name.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoName" value="{{ auth_user().name }}"
disabled>
</label> </label>
<label> <label>
<input type="radio" class="mr-1" name="show_phone_number" value="0" {{ not showPhoneNumber ? 'checked' }}> {{ trans('visiosoft.module.profile::field.gsm_phone.name') }}
{{ trans('visiosoft.module.advs::field.not_with_my_phone_numbers') }} <input type="text" class="d-block mt-3 w-100 border-0 bg-white infoGsmPhone" disabled
value="{{ auth_user().gsm_phone }}">
</label>
<label>
{{ trans('visiosoft.module.profile::field.office_phone.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoOfficePhone" disabled
value="{{ auth_user().office_phone }}">
</label> </label>
</div> </div>
<div id="editContact">
<button type="button" class="d-flex ml-auto align-items-center border-0 editInformationUser">
{{ img('visiosoft.module.advs::images/create/contact-edit.svg').data|raw }}
<span>{{ trans('visiosoft.module.advs::field.update_my_contact_info') }}</span>
</button>
</div>
</div> </div>
<div id="contactSummary" class="d-flex justify-content-between flex-wrap"> {% endif %}
<label>
{{ trans('visiosoft.module.profile::field.name.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoName" value="{{ auth_user().name }}"
disabled>
</label>
<label>
{{ trans('visiosoft.module.profile::field.gsm_phone.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoGsmPhone" disabled
value="{{ auth_user().gsm_phone }}">
</label>
<label>
{{ trans('visiosoft.module.profile::field.office_phone.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoOfficePhone" disabled
value="{{ auth_user().office_phone }}">
</label>
</div>
<div id="editContact">
<button type="button" class="d-flex ml-auto align-items-center border-0 editInformationUser">
{{ img('visiosoft.module.advs::images/create/contact-edit.svg').data|raw }}
<span>{{ trans('visiosoft.module.advs::field.update_my_contact_info') }}</span>
</button>
</div>
</div>

View File

@ -1,20 +1,18 @@
(function (window, document) { /* Offline */
/* Offline */ window.addEventListener('offline', () => {
window.addEventListener('offline', () => { $('body > *').hide();
$('body > *').hide(); $('#offline').show();
$('#offline').show(); });
});
$('#offline button').click(function () { $('#offline button').click(function () {
$('.spinner-border', this).css('display', 'inline-block') $('.spinner-border', this).css('display', 'inline-block')
setTimeout(() => { setTimeout(() => {
if (window.navigator.onLine) { if (window.navigator.onLine) {
window.location.reload(); window.location.reload();
} else { } else {
$('.spinner-border', this).hide() $('.spinner-border', this).hide()
} }
}, 250) }, 250)
}) })
/* End Offline */ /* End Offline */
})(window, document);