From f6737325a4b368af0cf4cf37c03d0a31d6b4423d Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Mon, 12 Oct 2020 17:06:00 +0300 Subject: [PATCH] #2253 Do not show GET if it's off --- .../resources/views/new-ad/new-create.twig | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 062321ad7..4ccfbcfda 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 @@ -58,6 +58,11 @@ {{ form.fields.slug|raw }} +
+ {{ form.fields.standard_price.setAttributes({ + 'required' :true, + }).input|raw }} +
{% if setting_value('visiosoft.module.advs::market_place') %} {{ addBlock('new-ad/fields', {'adv': adv})|raw }} @@ -66,14 +71,11 @@ {{ form.fields.standard_price.label|raw }} * -
- {{ form.fields.standard_price.setAttributes({ - 'required' :true, - }).input|raw }} -
+ {% set standardPriceValue = form.fields.standard_price.value|split('.') %}
- +