summaryrefslogtreecommitdiff
path: root/addons/project/static/src/xml/project.xml
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2015-09-01 15:25:10 +0200
committerMartin Geubelle <mge@odoo.com>2015-09-07 14:19:12 +0200
commitc5a36b522f6f022e4f224bae252f7a52fdf8c11c (patch)
tree3b7d710382ca06669646e19d1aecbfa154549775 /addons/project/static/src/xml/project.xml
parent2f4ea812080190a39525e23c20394171adaed872 (diff)
[IMP] project: displayed image on task not computed anymore
We don't want the dispayed image to be set to the last attached image but we want to be able to choose it.
Diffstat (limited to 'addons/project/static/src/xml/project.xml')
-rw-r--r--addons/project/static/src/xml/project.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/addons/project/static/src/xml/project.xml b/addons/project/static/src/xml/project.xml
new file mode 100644
index 00000000000..f27c8fd4c5b
--- /dev/null
+++ b/addons/project/static/src/xml/project.xml
@@ -0,0 +1,30 @@
+<?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>
+ </div>
+ </div>
+</div>
+
+</templates>