Public release from ruodoo-project: 19.0 - 2026-05-10 21:19:01 UTC
This commit is contained in:
52
dms/static/src/js/views/file_kanban_renderer.xml
Normal file
52
dms/static/src/js/views/file_kanban_renderer.xml
Normal file
@ -0,0 +1,52 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user