mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-24 14:17:45 -06:00
[IMP] attachment_preview: Split screen
This commit is contained in:
@@ -7,6 +7,29 @@
|
||||
t-att-data-id="item.id"
|
||||
t-att-data-url="item.url"
|
||||
t-attf-title="Preview #{item.name}"/>
|
||||
|
||||
<span t-if="section.name == 'files' and widget.options.editable and !item.callback and item.url"
|
||||
class="fa fa-external-link o_sidebar_preview_attachment o_sidebar_preview_attachment_new_tab"
|
||||
data-target="new"
|
||||
t-att-data-id="item.id"
|
||||
t-att-data-url="item.url"
|
||||
t-attf-title="Open preview #{item.name} in a new tab"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<t t-name="attachment_preview.AttachmentPreviewWidget">
|
||||
<div class="attachment_preview_widget hidden">
|
||||
<div class="attachment_preview_buttons">
|
||||
<div class="button-group pull-left">
|
||||
<button class="btn btn-sm btn-default attachment_preview_previous"><i class="fa fa-chevron-left"/></button>
|
||||
<button class="btn btn-sm btn-default disabled attachment_preview_current">1 / 5</button>
|
||||
<button class="btn btn-sm btn-default attachment_preview_next"><i class="fa fa-chevron-right"/></button>
|
||||
</div>
|
||||
<button class="btn btn-sm btn-default pull-left ml8 attachment_preview_popout"><i class="fa fa-external-link"/></button>
|
||||
|
||||
<button class="btn btn-sm btn-default pull-right attachment_preview_close"><i class="fa fa-times"/></button>
|
||||
</div>
|
||||
<iframe class="attachment_preview_iframe"></iframe>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user