From 9deee510ea9d4424426db4baea67559367db8bab Mon Sep 17 00:00:00 2001 From: vedatakd Date: Fri, 19 Mar 2021 17:42:49 +0300 Subject: [PATCH] fixed addBlock orher fields --- .../resources/views/new-ad/new-create.twig | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 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 9faa16334..17e8aadd8 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 @@ -103,11 +103,13 @@ {% set PriceValue = form.fields.price.value|split('.') %}
- +
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
-
{% endif %} @@ -135,11 +137,13 @@ {{ trans('visiosoft.module.advs::field.options') }}
- @@ -177,25 +181,28 @@
{{ form.fields.files.input |raw }} - +
{% for docs in form.fields.doc_files.value %} - - {{ docs.name }} - -
+ + {{ docs.name }} + +
{% endfor %}
- - {% if custom_fields and count(custom_fields) %} + {% set other_fields = addBlock('new-ad/other-fields',{'custom_fields':custom_fields}) %} + {% if other_fields or (custom_fields and count(custom_fields)) %}
{{ trans('visiosoft.module.advs::field.additional_fields') }}
- {{ addBlock('new-ad/other-fields',{'custom_fields':custom_fields})|raw }} + {{ other_fields|raw }}
{% endif %}