diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php index fa22e92a1..4ce7e632f 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php @@ -24,6 +24,7 @@ return [ 'ads' => [ 'title' => 'visiosoft.module.advs::section.ads', 'fields' => [ + 'show_finish_and_publish_date', 'latest-limit', 'popular_ads_limit', 'ads_image_limit', diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php index d0419b05c..dd64714e4 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php @@ -455,4 +455,11 @@ return [ 'default_value' => false, ] ], + + 'show_finish_and_publish_date' => [ + 'type' => 'anomaly.field_type.boolean', + 'config' => [ + 'default_value' => false, + ], + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/css/new-create.css b/addons/default/visiosoft/advs-module/resources/css/new-create.css index a61a3beef..1ab14a941 100644 --- a/addons/default/visiosoft/advs-module/resources/css/new-create.css +++ b/addons/default/visiosoft/advs-module/resources/css/new-create.css @@ -1,3 +1,66 @@ .editContact { font-size: 13px; +} + +.input-group { + position: relative; + width: 100%; + display: flex; +} + +.input-group .form-control { + position: relative; + z-index: 2; + flex: 1; + margin-bottom: 0; +} + +.input-group .form-control:focus, .input-group .form-control:active, .input-group .form-control:hover { + z-index: 3; +} + +.input-group-addon:not(:first-child):not(:last-child), +.input-group-btn:not(:first-child):not(:last-child), +.input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; +} + +.input-group-addon, +.input-group-btn { + white-space: nowrap; + vertical-align: middle; +} + +.input-group-addon { + padding: 0.5rem 0.75rem; + margin-bottom: 0; + font-size: 1rem; + font-weight: normal; + line-height: 1.25; + color: #55595c; + text-align: center; + background-color: #eceeef; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 0.1rem; +} + +.input-group-addon.form-control-sm, +.input-group-sm > .input-group-addon, +.input-group-sm > .input-group-btn > .input-group-addon.btn { + padding: 0.25rem 0.5rem; + font-size: 0.875rem; + border-radius: 0.1rem; +} + +.input-group-addon.form-control-lg, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .input-group-addon.btn { + padding: 0.75rem 1.5rem; + font-size: 1.25rem; + border-radius: 0.25rem; +} + +.input-group-addon input[type=radio], +.input-group-addon input[type=checkbox] { + margin-top: 0; } \ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js b/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js index 2eb662a00..07a186a57 100644 --- a/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js +++ b/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js @@ -44,12 +44,12 @@ $('.editInformationUser').on('click', function () { success: function (response) { if (response.status == "success") { var profile = response.data; - $('input[name="first_name"]').val(profile.first_name) - $('input[name="last_name"]').val(profile.last_name) - intlTelInput(document.querySelector("input[name='gsm_phone']")).setNumber(profile.gsm_phone) - intlTelInput(document.querySelector("input[name='office_phone']")).setNumber(profile.office_phone) - intlTelInput(document.querySelector("input[name='land_phone']")).setNumber(profile.land_phone) + $('input[name="first_name"]').val(profile.first_name); + $('input[name="last_name"]').val(profile.last_name); + intlTelInput(document.querySelector("input[name='gsm_phone']")).setNumber(profile.gsm_phone); + intlTelInput(document.querySelector("input[name='office_phone']")).setNumber(profile.office_phone); + intlTelInput(document.querySelector("input[name='land_phone']")).setNumber(profile.land_phone); } } }); -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/field.php b/addons/default/visiosoft/advs-module/resources/lang/en/field.php index 6719a34bf..b362df662 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/field.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/field.php @@ -108,7 +108,7 @@ return [ 'name' => 'Unpublished' ], 'finish_at' => [ - 'name' => 'Finish At' + 'name' => 'Finish Date' ], 'cover_photo' => [ 'name' => 'Cover Photo' @@ -370,4 +370,7 @@ return [ 'name' => 'Old Price' ], 'save_search' => 'Save Search', + 'publish_at' => [ + 'name' => 'Publish Date' + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php index 58201c5c2..eea84435b 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php @@ -27,7 +27,7 @@ return [ 'favicon' => [ 'name' => 'Favicon', ] - ,'map_coordinates_long' => [ + , 'map_coordinates_long' => [ 'name' => 'Map Long Coordinate', ], 'map_coordinates_lat' => [ @@ -41,7 +41,7 @@ return [ ], 'ogImage' => [ 'name' => 'Social Share Logo', - 'warning' => 'It should be at a resolution of 1200 x 630. ', + 'warning' => 'It should be at a resolution of 1200 x 630. ', ], 'currencies' => [ @@ -52,7 +52,7 @@ return [ ], 'site_address' => [ 'name' => 'Site address', - 'warning' => 'Auto added www. www.sitename.com ', + 'warning' => 'Auto added www. www.sitename.com ', ], 'google_map_key' => [ 'name' => 'Google Map Api Key', @@ -134,9 +134,9 @@ return [ 'market_place' => [ 'name' => 'Market Place', ], - 'price_area_hidden' => [ - 'name' => 'Price Area Hidden', - ], + 'price_area_hidden' => [ + 'name' => 'Price Area Hidden', + ], 'hide_price_filter' => [ 'name' => 'Hide Price Filter', ], @@ -215,18 +215,18 @@ return [ 'name' => 'Hide Created Date', 'instructions' => 'Hide created date in ads detail page', ], - 'hide_listing_header' => [ - 'name' => 'Hide Listing Header', - 'instructions' => 'Hiding to ordering and view types', - ], - 'hide_filter_section' => [ - 'name' => 'Hide Filter Section', - 'instructions' => 'Hiding to left filter area in listing page', - ], - 'hide_seller_info' => [ - 'name' => 'Hide Seller Information', - 'instructions' => 'Hiding to seller infos in ads detail page', - ], + 'hide_listing_header' => [ + 'name' => 'Hide Listing Header', + 'instructions' => 'Hiding to ordering and view types', + ], + 'hide_filter_section' => [ + 'name' => 'Hide Filter Section', + 'instructions' => 'Hiding to left filter area in listing page', + ], + 'hide_seller_info' => [ + 'name' => 'Hide Seller Information', + 'instructions' => 'Hiding to seller infos in ads detail page', + ], 'show_post_ad_agreement' => [ 'name' => 'Show Post Ad Agreement', 'instructions' => 'Turn this on if you want to display a privacy policy agreement on the ad creation page', @@ -251,9 +251,9 @@ return [ 'name' => 'GET Categories', 'instructions' => 'It represents the categories in which the GET property will be valid.' ], - 'disable_sentry' => [ - 'name' => 'Disable Sentry' - ], + 'disable_sentry' => [ + 'name' => 'Disable Sentry' + ], 'watermark' => [ 'name' => 'Watermark', 'instructions' => 'Is watermark active?' @@ -265,11 +265,15 @@ return [ 'show_subcats_mobile' => [ 'name' => 'Show subcategories on mobile view', ], - 'show_price_to_members_only' => [ - 'name' => 'Show Price To Members Only', - ], - 'hide_ad_cat' => [ - 'name' => 'Hide Categories', - 'instructions' => 'Hide categories in ads list' - ] + 'show_price_to_members_only' => [ + 'name' => 'Show Price To Members Only', + ], + 'hide_ad_cat' => [ + 'name' => 'Hide Categories', + 'instructions' => 'Hide categories in ads list' + ], + 'show_finish_and_publish_date' => [ + 'name' => 'Show Finish Date And Publish Date For Create', + 'instructions' => 'Displays the publish_at and finish_at fields on the ad creation page.' + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/lang/tr/field.php b/addons/default/visiosoft/advs-module/resources/lang/tr/field.php index 66bf10dae..7f299bba1 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/tr/field.php +++ b/addons/default/visiosoft/advs-module/resources/lang/tr/field.php @@ -108,7 +108,7 @@ return [ 'name' => 'Yayınlanmamış' ], 'finish_at' => [ - 'name' => 'Bitiş Saati' + 'name' => 'Bitiş Tarihi' ], 'cover_photo' => [ 'name' => 'Kapak Fotoğrafı' @@ -371,4 +371,7 @@ return [ 'name' => 'Eski fiyat' ], 'save_search' => 'Aramayı Kaydet', + 'publish_at' => [ + 'name' => 'Publish Date' + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig index ae4e1403f..a82a57656 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig @@ -2,7 +2,8 @@ {% block styles %} - +