Enric Tobella
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 168 additions and 50 deletions
-
2web_drop_target/README.rst
-
6web_drop_target/__manifest__.py
-
24web_drop_target/i18n/fr.po
-
4web_drop_target/readme/CONTRIBUTORS.rst
-
2web_drop_target/readme/DEVELOP.rst
-
2web_drop_target/readme/ROADMAP.rst
-
5web_drop_target/readme/USAGE.rst
-
BINweb_drop_target/static/description/screenshot.png
-
0web_drop_target/static/src/css/web_drop_target.css
-
135web_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,24 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * web_drop_target |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 11.0+e\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-07-10 14:31+0000\n" |
|||
"PO-Revision-Date: 2018-07-10 14:31+0000\n" |
|||
"Last-Translator: <>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: \n" |
|||
|
|||
#. module: web_drop_target |
|||
#. openerp-web |
|||
#: code:addons/web_drop_target/static/src/xml/widgets.xml:10 |
|||
#, python-format |
|||
msgid "Drop your files here" |
|||
msgstr "Déposez les fichiers ici" |
|||
|
@ -1,2 +1,4 @@ |
|||
* Holger Brunn <hbrunn@therp.nl> |
|||
* Akim Juillerat <akim.juillerat@camptocamp.com> |
|||
* Pablo Fuentes <pablo@studio73.es> |
|||
* Akim Juillerat <akim.juillerat@camptocamp.com> |
|||
* Enric Tobella <etobella@creublanca.es> |
@ -1,3 +1,3 @@ |
|||
**Libraries** |
|||
|
|||
* `base64js <https://raw.githubusercontent.com/beatgammit/base64-js>`_. |
|||
* `base64js <https://raw.githubusercontent.com/beatgammit/base64-js>`_. |
@ -1,4 +1,7 @@ |
|||
To use this module, you need to: |
|||
|
|||
#. drag a file from your local computer onto an Odoo form view |
|||
#. it should become an attachment of the currently opened record |
|||
#. it should become an attachment of the currently opened record |
|||
|
|||
.. image:: /web_drop_target/static/description/screenshot.png |
|||
:alt: Screenshot |
After Width: 1376 | Height: 983 | Size: 220 KiB |
@ -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