egroupware_official/mail/templates/default/compose.xet
nathan 72057cb78d Mail: Fix adding file share via download link into an already open mail does not always work
Select options were not right, and sometimes the updated value would be reset by the browser
2024-07-16 15:47:45 -06:00

160 lines
11 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2.0//EN" "https://www.egroupware.org/etemplate2.0.dtd">
<overlay>
<template id="mail.compose" template="" lang="" group="0" version="23.1">
<et2-vbox class="mailCompose mailComposeHeaderSection" width="100%">
<toolbar id="composeToolbar" width="et2_fullWidth" view_range="7" flat_list="false" list_header="short"/>
<et2-vfs-select-dialog class="$cont[vfsNotAvailable] compose_egw_icons" title="Attach files" buttonLabel="attach" id="selectFromVFSForCompose" multiple="true" onchange="app.mail.vfsUploadForCompose"/>
<et2-hbox class="mail-compose_toolbar_assist" width="100%">
<file class="mail-compose_fileselector" statustext="Select file to attach to message" multiple="true" progress="attachments" onFinish="app.mail.uploadForCompose" onStart="app.mail.composeUploadStart" id="uploadForCompose" drop_target="mail-compose"/>
<et2-checkbox statustext="check to save as infolog on send" id="to_infolog" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-checkbox statustext="check to save as tracker entry on send" id="to_tracker" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-checkbox statustext="check to save as calendar event on send" id="to_calendar" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-checkbox statustext="check to receive a notification when the message is read (note: not all clients support this and/or the receiver may not authorize the notification)" id="disposition" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-checkbox statustext="check to sign the message on send" id="smime_sign" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-checkbox statustext="check to encrypt the message on send" id="smime_encrypt" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-textbox id="appendix_data" autocomplete="off"></et2-textbox>
<et2-password id="smime_passphrase"></et2-password>
<et2-select id="to_integrate_ids" multiple="true" allowFreeEntries="true" editModeEnabled="true" searchUrl="EGroupware\Api\Etemplate\Widget\Taglist::ajax_search"></et2-select>
<et2-select id="priority"></et2-select>
</et2-hbox>
<grid width="100%" resize_ratio="0">
<columns>
<column width="10%"/>
<column width="70%"/>
<column width="20%"/>
</columns>
<rows>
<row class="mailComposeHeaders" >
<et2-description value="From"></et2-description>
<et2-select id="mailaccount" onchange="app.mail.submitOnChange"></et2-select>
<et2-vbox class="expanderFirstRow">
<et2-description id="replyto_expander" value="Reply to" class="et2_button_text" onclick="app.mail.compose_fieldExpander"></et2-description>
<et2-description id="folder_expander" value="Folder" class="et2_button_text" onclick="app.mail.compose_fieldExpander"></et2-description>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="composeID"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="serverID"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="processedmail_id"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="mode"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" id="lastDrafted"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="references"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="in-reply-to"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="thread-topic"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="thread-index"></et2-textbox>
<et2-textbox class="mail-index_quotaDisplayNone" readonly="true" id="list-id"></et2-textbox>
</et2-vbox>
</row>
<row class="mailComposeHeaders mailComposeJQueryReplyto">
<et2-description value="Reply to"></et2-description>
<et2-email id="replyto" width="100%" onclick="app.mail.address_click" multiple="true"
searchUrl="EGroupware\Api\Etemplate\Widget\Taglist::ajax_email" allowPlaceholder="true"></et2-email>
<et2-description></et2-description>
</row>
<row class="mailComposeHeaders mailComposeJQueryFolder">
<et2-description value="Folder"></et2-description>
<et2-select id="folder" allowFreeEntries="false" onclick="app.mail.address_click" multiple="true" searchUrl="mail.mail_compose.ajax_searchFolder" searchOptions=""></et2-select>
<et2-description></et2-description>
</row>
<row class="mailComposeHeaders" >
<et2-description value="To"></et2-description>
<et2-email id="to" width="100%" onclick="app.mail.address_click" autofocus="true"
onchange="app.mail.recipients_onchange"
placeholder="select or insert email address" includeLists="true" allowPlaceholder="true"></et2-email>
<et2-hbox>
<et2-description id="cc_expander" value="Cc" class="et2_button_text" onclick="app.mail.compose_fieldExpander"></et2-description>
<et2-description id="bcc_expander" value="Bcc" class="et2_button_text" onclick="app.mail.compose_fieldExpander"></et2-description>
</et2-hbox>
</row>
<row class="mailComposeHeaders mailComposeJQueryCc">
<et2-description value="Cc"></et2-description>
<et2-email id="cc" width="100%" onclick="app.mail.address_click"
onchange="app.mail.recipients_onchange" searchUrl="EGroupware\Api\Etemplate\Widget\Taglist::ajax_email"
placeholder="select or insert email address" includeLists="true" allowPlaceholder="true"></et2-email>
<et2-description></et2-description>
</row>
<row class="mailComposeHeaders mailComposeJQueryBcc">
<et2-description value="Bcc"></et2-description>
<et2-email id="bcc" width="100%" onclick="app.mail.address_click"
onchange="app.mail.recipients_onchange" searchUrl="EGroupware\Api\Etemplate\Widget\Taglist::ajax_email"
placeholder="select or insert email address" includeLists="true" allowPlaceholder="true"></et2-email>
<et2-description></et2-description>
</row>
<row class="mailComposeHeaders">
<et2-description value="Subject"></et2-description>
<et2-textbox align="left" width="100%" id="subject" height="25" onchange="app.mail.subject2title"></et2-textbox>
<et2-hbox align="left">
<et2-checkbox statustext="Change editor type" label="HTML" id="mimeType" onchange="app.mail.submitOnChange" tabindex="7" roTrue=" " roFalse="disable"></et2-checkbox>
</et2-hbox>
</row>
</rows>
</grid>
</et2-vbox>
<et2-vbox class="mailComposeBodySection">
<et2-vbox class="et2_file mailUploadSection" disabled="@no_griddata">
<et2-details toggleAlign="left" title="@attachmentsBlockTitle" toggleOnHover="true" class="attachments" hoist="true" disabled="!@attachments">
<et2-hbox slot="summary">
<grid class="previewAttachmentArea egwGridView_grid">
<columns>
<column width="3%"/>
<column disabled="!@showtempname" width="10%"/>
<column width="85%"/>
<column width="8%"/>
</columns>
<rows>
<row class="row attachmentRow">
<et2-image src="@attachments[0][filemode_icon]" statustext="@attachments[0][filemode_title]"></et2-image>
<et2-description id="attachments[0][tmp_name]"></et2-description>
<et2-description class="useEllipsis et2_link" value="@attachments[0][name]" id="0[name]" onclick="app.mail.displayUploadedFile" noLang="1"></et2-description>
<vfs-size align="right" id="attachments[0][size]"/>
</row>
</rows>
</grid>
</et2-hbox>
<grid id="attachments" class="previewAttachmentArea egwGridView_grid">
<columns>
<column width="3%"/>
<column disabled="!@showtempname" width="10%"/>
<column width="85%"/>
<column width="8%"/>
<column width=""/>
</columns>
<rows>
<row class="row attachmentRow">
<et2-image src="$row_cont[filemode_icon]" statustext="$row_cont[filemode_title]"></et2-image>
<et2-description id="${row}[tmp_name]"></et2-description>
<et2-description class="useEllipsis et2_link" id="${row}[name]" onclick="app.mail.displayUploadedFile" noLang="1"></et2-description>
<vfs-size align="right" id="${row}[size]" />
<et2-button-icon id="delete[$row_cont[tmp_name]]" value="Delete" image="delete"></et2-button-icon>
</row>
</rows>
</grid>
</et2-details>
<et2-hbox>
<et2-select id="filemode" label="Send files as" onchange="app.mail.check_sharing_filemode"></et2-select>
<et2-hbox>
<et2-description value="Expiration"></et2-description>
<et2-date id="expiration" placeholder="@expiration_blur" dataFormat="Y-m-d"></et2-date>
</et2-hbox>
<et2-password id="password" statustext="Only makes sense, if you transport password through a different channel / outside of this mail to recipients!" placeholder="password protect"></et2-password>
</et2-hbox>
</et2-vbox>
<et2-hbox disabled="@is_plain" class="mailComposeBody mailComposeHtmlContainer">
<htmlarea name="mail_htmltext" id="mail_htmltext" statusbar="false" menubar="false" toolbar="@html_toolbar"
imageUpload="link_to" expand_toolbar="true" width="100%" resize_ratio="0" applyDefaultFont="true"/>
</et2-hbox>
<et2-hbox disabled="@is_html" class="mailComposeBody mailComposeTextContainer">
<et2-textarea span="all" name="mail_plaintext" id="mail_plaintext" noLang="1" resizeRatio="0"></et2-textarea>
</et2-hbox>
</et2-vbox>
<styles>
#mail-compose > div {
display: flex;
flex-direction: column;
}
#mail-compose .mailComposeBodySection, #mail-compose .mailComposeBody {
flex: 1 1 auto;
}
</styles>
</template>
</overlay>