summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 961c11cdc90..5470a721805 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -3,6 +3,21 @@
<!-- Owl Templates -->
+<t t-name="CustomFileInput" owl="1">
+ <span class="o_file_input" aria-atomic="true">
+ <span class="o_file_input_trigger" t-on-click.prevent="_onTriggerClicked">
+ <t t-slot="default">
+ <button class="btn btn-primary">Choose File</button>
+ </t>
+ </span>
+ <input type="file" name="ufile" class="o_input_file d-none"
+ t-att="{multiple: props.multi_upload, accept: props.accepted_file_extensions}"
+ t-ref="file-input"
+ t-on-change="_onFileInputChange"
+ />
+ </span>
+</t>
+
<t t-name="DialogButton.tooltip" owl="1">
<div class="oe_tooltip_string" role="tooltip">
<div class="tooltip-inner">