[FIX] prevent drop when no record id is found

[UPD] Update web_drop_target.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-13.0/web-13.0-web_drop_target
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_drop_target/
This commit is contained in:
Adrià Gil Sorribes
2020-03-18 15:32:30 +01:00
committed by Jasmin Solanki
parent 9826b68eb9
commit eb001751af
8 changed files with 146 additions and 100 deletions

View File

@@ -1,14 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<?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>
<i class="fa fa-file-o fa-5x" aria-hidden="true" />
</div>
<div>
<h2>Drop your files here</h2>
<t t-if="id">
<h2>Drop your files here</h2>
</t>
<t t-else="">
<h2>Please save the record before dropping a file</h2>
</t>
</div>
</div>
</div>