mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge pull request #998 from openclassify/vedatakd
fixed addBlock other fields
This commit is contained in:
commit
57af2e332b
@ -103,11 +103,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{% set PriceValue = form.fields.price.value|split('.') %}
|
{% set PriceValue = form.fields.price.value|split('.') %}
|
||||||
<div class="col-6 col-sm-7 pr-0 col-md-3">
|
<div class="col-6 col-sm-7 pr-0 col-md-3">
|
||||||
<input class="form-control priceField whole-price" value="{{ PriceValue|first }}">
|
<input class="form-control priceField whole-price"
|
||||||
|
value="{{ PriceValue|first }}">
|
||||||
</div>
|
</div>
|
||||||
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
|
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
|
||||||
<div class="col-4 col-md-1">
|
<div class="col-4 col-md-1">
|
||||||
<input class="form-control priceDecimalField decimal-price" placeholder="00" maxlength="2"
|
<input class="form-control priceDecimalField decimal-price" placeholder="00"
|
||||||
|
maxlength="2"
|
||||||
value="{{ PriceValue[1] }}">
|
value="{{ PriceValue[1] }}">
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -135,11 +137,13 @@
|
|||||||
{{ trans('visiosoft.module.advs::field.options') }}
|
{{ trans('visiosoft.module.advs::field.options') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select id="selectOptions" class="form-control options-tags" multiple="multiple"
|
<select id="selectOptions" class="form-control options-tags"
|
||||||
|
multiple="multiple"
|
||||||
name="options[]">
|
name="options[]">
|
||||||
{% if count(options) %}
|
{% if count(options) %}
|
||||||
{% for option in options %}
|
{% for option in options %}
|
||||||
<option id="advOption{{ option.id }}" selected="selected">{{ option.name }}</option>
|
<option id="advOption{{ option.id }}"
|
||||||
|
selected="selected">{{ option.name }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</select>
|
</select>
|
||||||
@ -177,25 +181,28 @@
|
|||||||
<div class="row form-group images">
|
<div class="row form-group images">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{{ form.fields.files.input |raw }}
|
{{ form.fields.files.input |raw }}
|
||||||
<input name="doc_files" value="{{ form.fields.doc_files.value.pluck('id').all()|join(',') }}" hidden>
|
<input name="doc_files"
|
||||||
|
value="{{ form.fields.doc_files.value.pluck('id').all()|join(',') }}"
|
||||||
|
hidden>
|
||||||
<div class="doc_list small">
|
<div class="doc_list small">
|
||||||
{% for docs in form.fields.doc_files.value %}
|
{% for docs in form.fields.doc_files.value %}
|
||||||
<a id="{{ docs.id }}" href="javascript:void(0)" onclick="deleteDocs({{ docs.id }})" class="text-dark">
|
<a id="{{ docs.id }}" href="javascript:void(0)"
|
||||||
{{ docs.name }}
|
onclick="deleteDocs({{ docs.id }})" class="text-dark">
|
||||||
<i class="fa fa-trash text-danger pl-2"></i>
|
{{ docs.name }}
|
||||||
</a><br>
|
<i class="fa fa-trash text-danger pl-2"></i>
|
||||||
|
</a><br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% set other_fields = addBlock('new-ad/other-fields',{'custom_fields':custom_fields}) %}
|
||||||
{% if custom_fields and count(custom_fields) %}
|
{% if other_fields or (custom_fields and count(custom_fields)) %}
|
||||||
<h5 class="mt-5 pb-1 border-bottom">
|
<h5 class="mt-5 pb-1 border-bottom">
|
||||||
{{ trans('visiosoft.module.advs::field.additional_fields') }}
|
{{ trans('visiosoft.module.advs::field.additional_fields') }}
|
||||||
</h5>
|
</h5>
|
||||||
<div class="bg-light p-4">
|
<div class="bg-light p-4">
|
||||||
{{ addBlock('new-ad/other-fields',{'custom_fields':custom_fields})|raw }}
|
{{ other_fields|raw }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user