Pablo Fuentes
6 years ago
committed by
Enric Tobella
7 changed files with 91 additions and 24 deletions
-
5web_drop_target/README.rst
-
4web_drop_target/__manifest__.py
-
0web_drop_target/static/src/css/web_drop_target.css
-
68web_drop_target/static/src/js/web_drop_target.js
-
19web_drop_target/static/src/less/web_drop_target.less
-
17web_drop_target/static/src/xml/widgets.xml
-
2web_drop_target/views/templates.xml
@ -0,0 +1,19 @@ |
|||
.o_content { |
|||
.o_drag_over{ |
|||
position: fixed; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: rgba(255,255,255,0.6); |
|||
border: 1px dashed #4c4c4c; |
|||
pointer-events: none; |
|||
.o_drag_over_content{ |
|||
position: relative; |
|||
top: 50%; |
|||
transform: translate(0%, -50%); |
|||
width: 100%; |
|||
text-align: center; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
|
|||
<template> |
|||
<t t-name="web_drop_target.drop_overlay"> |
|||
<div class="o_drag_over"> |
|||
<div class="o_drag_over_content"> |
|||
<div> |
|||
<i class="fa fa-file-o fa-5x" aria-hidden="true"></i> |
|||
</div> |
|||
<div> |
|||
<h2>Drop your files here</h2> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</template> |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue