Pablo Fuentes
7 years ago
7 changed files with 90 additions and 26 deletions
-
2web_drop_target/README.rst
-
6web_drop_target/__manifest__.py
-
0web_drop_target/static/src/css/web_drop_target.css
-
70web_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