fixed finish and publish date

This commit is contained in:
vedatakd 2021-05-12 02:57:38 +03:00
parent ae29380e83
commit fb8d2dca1a
4 changed files with 99 additions and 88 deletions

View File

@ -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',

View File

@ -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'
],
];

View File

@ -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'
],
];

View File

@ -2,7 +2,8 @@
{% block styles %}
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<style>
{{ asset_inline("visiosoft.module.advs::css/new-create.css") }}
@ -96,7 +97,8 @@
<div class="d-flex">
{% set PriceValue = form.fields.price.value|split('.') %}
<input type="text" class="mt-3 border-0 text-right priceField whole-price flex-fill"
<input type="text"
class="mt-3 border-0 text-right priceField whole-price flex-fill"
placeholder="0" value="{{ PriceValue|first }}">
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
<input class="mt-3 border-0 ml-2 text-center priceDecimalField decimal-price"
@ -122,7 +124,8 @@
placeholder="0" value="{{ standardPriceValue|first }}" type="text">
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
<input class="mt-3 border-0 ml-2 text-center standard-price-decimal decimal-price"
placeholder="00" type="text" value="{{ standardPriceValue[1] }}" maxlength="2">
placeholder="00" type="text" value="{{ standardPriceValue[1] }}"
maxlength="2">
{% endif %}
<select name="currency" class="mt-3 border-0 ml-2" id="currency" required>
{% for currency in config_get('streams::currencies.enabled') %}
@ -134,7 +137,7 @@
</div>
</div>
</div>
{% if setting_value("visiosoft.module.advs::show_finish_and_publish_date") %}
<div class="row mx-0 my-3">
<div class="col-6 px-0">
<label>
@ -222,6 +225,7 @@
</style>
</div>
{% endif %}
{% if not setting_value('visiosoft.module.advs::hide_options_field') %}