mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-08 22:36:06 -06:00
maabir file upload error fixed
This commit is contained in:
parent
017360f22b
commit
b0fbb3cf68
@ -179,17 +179,17 @@
|
|||||||
<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>
|
||||||
{% for docs in form.fields.doc_files.value %}
|
|
||||||
<div class="doc_list small">
|
<div class="doc_list small">
|
||||||
{{ docs.name }}
|
{% 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)" onclick="deleteDocs({{ docs.id }})" class="text-dark">
|
||||||
|
{{ docs.name }}
|
||||||
<i class="fa fa-trash text-danger pl-2"></i>
|
<i class="fa fa-trash text-danger pl-2"></i>
|
||||||
</a><br>
|
</a><br>
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if custom_fields and count(custom_fields) %}
|
{% if custom_fields and count(custom_fields) %}
|
||||||
<h5 class="mt-5 pb-1 border-bottom">
|
<h5 class="mt-5 pb-1 border-bottom">
|
||||||
|
|||||||
@ -91,8 +91,8 @@ $(function () {
|
|||||||
$('input[name="doc_files"]').val(docsUploaded.join(','))
|
$('input[name="doc_files"]').val(docsUploaded.join(','))
|
||||||
|
|
||||||
$('.doc_list').append(`
|
$('.doc_list').append(`
|
||||||
${ response.name }
|
|
||||||
<a id="${ response.id }" href="javascript:void(0)" onclick="deleteDocs(${ response.id })" class="text-dark">
|
<a id="${ response.id }" href="javascript:void(0)" onclick="deleteDocs(${ response.id })" class="text-dark">
|
||||||
|
${ response.name }
|
||||||
<i class="fa fa-trash text-danger"></i>
|
<i class="fa fa-trash text-danger"></i>
|
||||||
</a><br>
|
</a><br>
|
||||||
`)
|
`)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user