* Fix the grid display of images (use the column property) * Use Dialog class * Allow removing a cover image * Add image selection before choosing it (or double click to choose) + add less mixins in web for columns property
10 lines
627 B
XML
10 lines
627 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
<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 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>
|