<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
<!-- $Id$ -->
<overlay>
	<template id="mail.index.splitter" height="100%" template="" lang="" group="0" version="1.9.001">
		<split dock_side="bottomDock" id="mailSplitter" style="--min: 30%;--max:70%;">
			<nextmatch id="nm" onselect="app.mail.mail_preview" class="" template="mail.index.rows.vertical" header_left="mail.index.add" header_right="mail.index.header_right" disable_selection_advance="true"/>
            <template id="mail.index.preview"/>
        </split>
    </template>
    <template id="mail.index.preview">
        <toolbar id="toolbar" list_header="short"/>
        <grid id="mailPreview" width="100%">
            <columns>
                <column/>
            </columns>
            <rows>
                <row class="th">

                </row>
                <row>
                    <vbox class="previewWrapper">
                        <box id="blank" disabled="@fromaddress">
                            <image src="email"/>
                            <description value="Select an item to read"/>
                        </box>
                        <hbox class="mailPreviewHeaders">
                            <description id="subject" readonly="true"
                                         hover_action="app.mail.modifyMessageSubjectDialog"
                                         hover_action_title="Modify subject of this message"/>
                            <hbox class="mailPreviewHeaders smimeIcons">
                                <image id="smime_signature" src="smime_sign" statustext="Smime signed message" disabled="!@smime=smime_sign"
                                       align="right" width="24"/>
                                <image id="smime_encryption" src="smime_encrypt" statustext="Smime encrypted message"
                                       disabled="!@smime=smime_encrypt" align="right" width="24"/>
                            </hbox>
                        </hbox>
                        <hbox width="100%" class="mailPreviewHeaders">
                            <lavatar src="@fromavatar" lname="@fromaddress" shape="rounded" size="2.75em"/>
                            <vbox>
                                <hbox>
                                    <et2-details class="details" toggleOnHover="true" hoist="true" toggleAlign="left">
                                        <et2-select-email slot="summary" id="fromaddress" readonly="true" multiple="true"/>
                                        <hbox>
                                            <description value="From" class="firstColumnTitle"/>
                                            <et2-select-email id="additionalfromaddress" readonly="true" multiple="true"></et2-select-email>
                                        </hbox>
                                        <hbox disabled="!@toaddress" width="100%">
                                            <description value="To" class="firstColumnTitle"/>
                                            <et2-select-email id="additionaltoaddress" readonly="true" multiple="true"></et2-select-email>
                                        </hbox>
                                        <hbox disabled="!@ccaddress"  width="100%">
                                            <description value="Cc" class="firstColumnTitle"/>
                                            <et2-select-email id="ccaddress" readonly="true" multiple="true"></et2-select-email>
                                        </hbox>
                                    </et2-details>
                                    <date-time-today align="right" id="date" readonly="true"/>
                                </hbox>
                                <et2-details  toggleAlign="left" title="@attachmentsBlockTitle" toggleOnHover="true" hoist="true" class="attachments" disabled="!@attachmentsBlock">
                                    <hbox slot="summary">
                                        <grid class="previewAttachmentArea egwGridView_grid" >
                                            <columns>
                                                <column disabled="!@showtempname"/>
                                                <column disabled="!@showtempname"/>
                                                <column disabled="!@showtempname"/>
                                                <column disabled="!@showtempname"/>
                                                <column width="70%" />
                                                <column width="11%" />
                                                <column width="10%"/>
                                            </columns>
                                            <rows>
                                                <row class="row attachmentRow">
                                                    <description id="attachmentsBlock[0][attachment_number]" />
                                                    <description id="attachmentsBlock[0][partID]" />
                                                    <description id="attachmentsBlock[0][type]" />
                                                    <description id="attachmentsBlock[0][winmailFlag]" />
                                                    <description class="et2_link useEllipsis" id="attachmentsBlock[0][filename]" no_lang="1" expose_view="true" mime="@attachmentsBlock[0][type]" mime_data="@attachmentsBlock[0][mime_data]" href="@attachmentsBlock[0][mime_url]"/>
                                                    <description align="right" id="attachmentsBlock[0][size]"/>
                                                </row>
                                            </rows>
                                        </grid>
                                    </hbox>

                                    <grid id="attachmentsBlock" class="previewAttachmentArea egwGridView_grid">
                                        <columns>
                                            <column disabled="!@showtempname"/>
                                            <column disabled="!@showtempname"/>
                                            <column disabled="!@showtempname"/>
                                            <column disabled="!@showtempname"/>
                                            <column width="70%" />
                                            <column width="11%" />
                                            <column width="10%"/>
                                        </columns>
                                        <rows>
                                            <row class="row attachmentRow" id="${row}">
                                                <description id="${row}[attachment_number]" />
                                                <description id="${row}[partID]" />
                                                <description id="${row}[type]" />
                                                <description id="${row}[winmailFlag]" />
                                                <description class="et2_link useEllipsis" id="${row}[filename]" no_lang="1" expose_view="true" mime="$row_cont[type]" mime_data="$row_cont[mime_data]" href="$row_cont[mime_url]"/>
                                                <description align="right" id="${row}[size]"/>
                                                <et2-dropdown-button id="${row}[actions]" label="$row_cont[actionsDefaultLabel]" onchange="app.mail.attachmentsBlockActions" onclick="app.mail.attachmentsBlockActions"/>
                                            </row>
                                        </rows>
                                    </grid>
                                </et2-details>
                            </vbox>

                        </hbox>


                    </vbox>
                </row>
            </rows>
        </grid>
        <box id="mailPreviewContainer">
            <iframe frameborder="1" id="messageIFRAME" scrolling="auto"/>
        </box>
    </template>
    <template id="mail.index.nosplitter" template="" lang="" group="0" version="1.9.001">
        <nextmatch id="nm" onselect="app.mail.mail_preview" template="mail.index.rows.horizental" header_left="mail.index.add"
                   header_right="mail.index.header_right"/>
    </template>
    <template id="mail.index.add" template="" lang="" group="0" version="1.9.001">
        <buttononly id="button[mailcreate]" onclick="app.mail.mail_compose(false);" label="Compose" image="add"/>
    </template>
    <template id="mail.index.header_right" template="" lang="" group="0" version="1.9.001">
        <et2-details id="mail.index.vacationnotice" disabled="true" summary="on vacation" toggleOnHover="true"
                     hoist="true" class="vacationnotice" onclick="app.mail.edit_vacation">
            <description id="nm[vacationnotice]" class="@nm[vacationclass]"/>
            <description id="nm[vacationrange]" class="@nm[vacationrangeclass]"/>
        </et2-details>

        <hbox id="mail.index.datefilter" class="mail-index_datefilter">
            <date id="startdate" label="Start" onchange="app.mail.mail_refreshMessageGrid(false,true);"/>
            <date id="enddate" label="End" onchange="app.mail.mail_refreshMessageGrid(false,true);"/>
        </hbox>
        <hbox id="mail.index.quotabox" class="mail-index_quotabox">
            <progress id="nm[quotainpercent]" label="@nm[quota]" class="@nm[quotaclass]"/>
        </hbox>
    </template>
    <template id="mail.index" template="" lang="" group="0" version="1.9.001">
        <tree autoloading="mail.mail_ui.ajax_foldertree" id="nm[foldertree]" onclick="app.mail.mail_changeFolder"
              parent_node="mail-tree_target" onopenstart="app.mail.subscription_autoloadingStart"
              onopenend="app.mail.subscription_autoloadingEnd" highlighting="true"/>
        <template id="splitter" height="100%" template="mail.index.splitter"/>
        <iframe frameborder="1" id="extra_iframe" scrolling="auto" disabled="true"/>
    </template>
</overlay>