image preview working
This commit is contained in:
parent
981af372f6
commit
e4f5ae123a
1 changed files with 11 additions and 1 deletions
|
|
@ -53,7 +53,7 @@
|
||||||
<!-- Main Document Contents -->
|
<!-- Main Document Contents -->
|
||||||
<div id="document_content"
|
<div id="document_content"
|
||||||
class="col-12 col-lg justify-content-end w-100 h-100">
|
class="col-12 col-lg justify-content-end w-100 h-100">
|
||||||
<div t-if="document.attachment_type == 'image'"
|
<div t-if="'image' in document.mimetype"
|
||||||
class="o_attachment_preview_img">
|
class="o_attachment_preview_img">
|
||||||
<img id="attachment_img"
|
<img id="attachment_img"
|
||||||
class="img img-fluid d-block"
|
class="img img-fluid d-block"
|
||||||
|
|
@ -73,6 +73,16 @@
|
||||||
<t t-call="documents.format_file_size"/>
|
<t t-call="documents.format_file_size"/>
|
||||||
</strong>
|
</strong>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="list-group-item flex-grow-1 b-0">
|
||||||
|
<strong class="text-muted">File Type:
|
||||||
|
<t t-esc="document.mimetype"/>
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item flex-grow-1 b-0">
|
||||||
|
<strong class="text-muted">Attachment Type:
|
||||||
|
<t t-esc="document.attachment_type"/>
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue