summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/attachment_list/attachment_list.xml
blob: 394992852fdc5da27f3ceabb9dc451f32598c8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

    <t t-name="mail.AttachmentList" owl="1">
        <div class="o_AttachmentList">
            <div class="o_AttachmentList_partialList o_AttachmentList_partialListImages">
                <t t-foreach="imageAttachments" t-as="attachment" t-key="attachment.localId">
                    <Attachment
                        class="o_AttachmentList_attachment o_AttachmentList_imageAttachment"
                        attachmentLocalId="attachment.localId"
                        attachmentLocalIds="viewableAttachments.map(attachment => attachment.localId)"
                        detailsMode="props.attachmentsDetailsMode"
                        imageSize="props.attachmentsImageSize"
                        isDownloadable="props.areAttachmentsDownloadable"
                        isEditable="props.areAttachmentsEditable"
                        showExtension="props.showAttachmentsExtensions"
                        showFilename="props.showAttachmentsFilenames"
                    />
                </t>
            </div>
            <div class="o_AttachmentList_partialList o_AttachmentList_partialListNonImages">
                <t t-foreach="nonImageAttachments" t-as="attachment" t-key="attachment.localId">
                    <Attachment
                        class="o_AttachmentList_attachment o_AttachmentList_nonImageAttachment"
                        attachmentLocalId="attachment.localId"
                        attachmentLocalIds="viewableAttachments.map(attachment => attachment.localId)"
                        detailsMode="'card'"
                        imageSize="props.attachmentsImageSize"
                        isDownloadable="props.areAttachmentsDownloadable"
                        isEditable="props.areAttachmentsEditable"
                        showExtension="props.showAttachmentsExtensions"
                        showFilename="props.showAttachmentsFilenames"
                    />
                </t>
            </div>
        </div>
    </t>

</templates>