mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] prevent drop when no record id is found
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user