summaryrefslogtreecommitdiff
path: root/addons/project/static/src/xml/project.xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-02-02 14:55:52 +0100
committerChristophe Simonis <chs@odoo.com>2016-02-02 14:55:52 +0100
commit04416a5a6f1a3b4cf1a8bed8e9aee9c30c91a03e (patch)
tree1fd974be09d12c53ed02a221de553f6f83efc253 /addons/project/static/src/xml/project.xml
parent7e3d6e92b6a7af27d8c2ebb0dbbecba28c9f1877 (diff)
parent469e04e97c2aa60d9d41bd430e0aeba77ee6f9dd (diff)
[MERGE] forward port of branch saas-9 up to 469e04e
Diffstat (limited to 'addons/project/static/src/xml/project.xml')
-rw-r--r--addons/project/static/src/xml/project.xml31
1 files changed, 5 insertions, 26 deletions
diff --git a/addons/project/static/src/xml/project.xml b/addons/project/static/src/xml/project.xml
index f27c8fd4c5b..d9c4f3fa675 100644
--- a/addons/project/static/src/xml/project.xml
+++ b/addons/project/static/src/xml/project.xml
@@ -1,30 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
-
-<div t-name="project.SetCoverModal" class="modal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true">
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&amp;times;</button>
- <h4 class="modal-title">Set a Cover Image</h4>
- </div>
- <div class="modal-body">
- <div class="container-fluid">
- <div t-if="attachment_ids.length > 0" class="row">
- <t t-foreach="attachment_ids" t-as="attachment">
- <div class="col-sm-3 o_image" style="height: 100%">
- <img style="cursor: pointer; width: 100%" t-att-src="'/web/image/' + attachment['id'] + '?unique=1'" t-att-data-id="attachment['id']"/>
- </div>
- </t>
- </div>
- <div t-if="attachment_ids.length == 0">
- There is no available image to be set as cover. Send a message on the task with an attached image.
- </div>
- </div>
- </div>
- <div class="modal-footer"><button type="button" class="btn btn-primary" data-dismiss="modal">Close</button></div>
+ <t t-name="project.SetCoverModal">
+ <div t-if="attachment_ids.length > 0" class="o_kanban_task_cover_image">
+ <img t-foreach="attachment_ids" t-as="attachment" t-attf-class="img-responsive#{cover_id == attachment['id'] ? ' o_selected' : ''}" t-attf-src="/web/image/#{attachment['id']}?unique=1" t-att-data-id="attachment['id']"/>
</div>
- </div>
-</div>
-
+ <div t-if="attachment_ids.length == 0">There is no available image to be set as cover. Send a message on the task with an attached image.</div>
+ </t>
</templates>