Files
public/dms/static/src/js/views/file_kanban_renderer.xml

53 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2024 Subteno - Timothée Vannier (https://www.subteno.com).
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<templates xml:space="preserve">
<t
t-name="dms.KanbanRenderer"
t-inherit="web.KanbanRenderer"
t-inherit-mode="primary"
>
<xpath expr="//div[hasclass('o_kanban_renderer')]" position="before">
<div t-if="dragState.showDragZone" class="o_dropzone">
<i class="fa fa-cloud-upload fa-10x" />
</div>
</xpath>
</t>
<t
t-name="dms.KanbanButtons"
t-inherit="web.KanbanView.Buttons"
t-inherit-mode="primary"
>
<xpath expr="." position="inside">
<t t-if="props.archInfo.activeActions.create">
<button
type="button"
class="d-inline d-md-none btn btn-primary mx-1"
t-on-click.prevent="uploadDocument"
>
Scan
</button>
<input
type="file"
name="ufile"
class="d-none"
t-ref="fileInput"
multiple="1"
accept="*"
t-on-change="onChangeFileInput"
/>
<button
type="button"
class="d-none d-md-inline btn btn-primary mx-1"
t-on-click.prevent="uploadDocument"
>
Upload
</button>
</t>
</xpath>
</t>
</templates>